![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
working code of bae with i2c
Fork of all_combined_week6 by
Diff: beacon.h
- Revision:
- 6:82153349cc9b
diff -r c7cd684d25a8 -r 82153349cc9b beacon.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/beacon.h Tue Jul 15 10:04:38 2014 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" + +void writereg(uint8_t reg,uint8_t val); +uint8_t readreg(uint8_t reg); +void beacon_func(); +/*struct ShortBeacon { + char Voltage[1]; + char AngularSpeed[2]; + char SubsystemStatus[1]; + char Temp[3]; + char ErrorFlag[1]; +} +Shortbeacon = {{0x22}, {0x22, 0x33} , {0x00},{0x00,0x00,0x00}, {0x01}};*/ \ No newline at end of file