From 4971e86d05c714ff3630ada8851938614128b412 Mon Sep 17 00:00:00 2001 From: Abel Tim Date: Sat, 22 Jun 2024 09:17:50 +0200 Subject: update repo structure update poster add code flowchart --- debug/comm/deg_to_byte.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 debug/comm/deg_to_byte.py (limited to 'debug/comm/deg_to_byte.py') diff --git a/debug/comm/deg_to_byte.py b/debug/comm/deg_to_byte.py new file mode 100644 index 0000000..196d4a5 --- /dev/null +++ b/debug/comm/deg_to_byte.py @@ -0,0 +1,5 @@ +deg = 40 +sbinary = format(deg, 'b') +print(sbinary) +binary = "".join(("01", sbinary)) +print(binary) \ No newline at end of file -- cgit v1.2.3