first lib
Dependents: 17robo_fuzi 17robo_tokyo_kaede
Diff: bit_test.cpp
- Revision:
- 0:81eadcca6267
diff -r 000000000000 -r 81eadcca6267 bit_test.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bit_test.cpp Sun Sep 24 05:24:41 2017 +0000 @@ -0,0 +1,8 @@ +#include "bit_test.h" +#include "mbed.h" + +int bitTest(int dataByte, int bitNumber) { + dataByte = dataByte >> bitNumber; + dataByte = dataByte & 1; + return dataByte; +} \ No newline at end of file