Clara Keng / Mbed 2 deprecated FreeFlyerROS_clarakhl

Dependencies:   mbed ros_lib_kinetic

Revision:
5:864709d3eb76
Parent:
1:40bdbe1a93b7
--- a/utilities.cpp	Fri Jun 29 02:30:38 2018 +0000
+++ b/utilities.cpp	Fri Jun 29 17:49:40 2018 +0000
@@ -23,5 +23,14 @@
         else
             return b;
     }
+    
+    void printBits(char myByte, Serial &pc) {
+        for (char mask = 0x80; mask; mask >>= 1) {
+            if(mask  & myByte)
+                pc.putc('1');
+            else
+                pc.putc('0');
+        }
+    }
 
 } // end utils namespace
\ No newline at end of file