main

Dependencies:   mbed

Revision:
3:d9c6df85ff68
Parent:
2:4eacbe2fa323
Child:
4:6faa92e1841e
--- a/main.cpp	Mon Jan 13 17:33:31 2020 +0000
+++ b/main.cpp	Mon Jan 13 17:34:00 2020 +0000
@@ -55,4 +55,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