Main

Dependencies:   mbed

Revision:
3:f80e65dd4ee3
Parent:
2:47d9c6c7eb9e
Child:
4:9e935689c3c4
--- a/main.cpp	Mon Jan 13 17:17:58 2020 +0000
+++ b/main.cpp	Mon Jan 13 17:20:26 2020 +0000
@@ -52,4 +52,11 @@
         anz++;
     }
     return anz;
+}
+
+void printb(uint8_t x)
+{
+    for(int i=sizeof (x) << 3; i; i--)
+        putchar('0' + ((x>>(i-1))&1));
+    printf("\n");
 }
\ No newline at end of file