Nicholas Herriot
/
MMA8452_test
A test utility for mma8452
helperFunctions.h@7:2fa57cf76768, 2013-10-17 (annotated)
- Committer:
- nherriot
- Date:
- Thu Oct 17 09:40:52 2013 +0000
- Revision:
- 7:2fa57cf76768
- Parent:
- 4:489573e65d47
commit bug fix for multiple start bit on IIC bus.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nherriot | 4:489573e65d47 | 1 | #include <stdio.h> |
nherriot | 4:489573e65d47 | 2 | #include "mbed.h" |
nherriot | 4:489573e65d47 | 3 | |
nherriot | 4:489573e65d47 | 4 | // This function will print a 7 bit char as a binary number on the screen |
nherriot | 4:489573e65d47 | 5 | void printbincharpad(char c); |
nherriot | 4:489573e65d47 | 6 | |
nherriot | 4:489573e65d47 | 7 | // This function will take two characters and print formatted as a binary number on the screen |
nherriot | 4:489573e65d47 | 8 | void print2bytebinchar(char *buffer); |
nherriot | 4:489573e65d47 | 9 |