![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
working code of bae with i2c
Fork of all_combined_week6 by
beacon.h@6:82153349cc9b, 2014-07-15 (annotated)
- Committer:
- greenroshks
- Date:
- Tue Jul 15 10:04:38 2014 +0000
- Revision:
- 6:82153349cc9b
BAE RTOS final
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
greenroshks | 6:82153349cc9b | 1 | #include "mbed.h" |
greenroshks | 6:82153349cc9b | 2 | |
greenroshks | 6:82153349cc9b | 3 | void writereg(uint8_t reg,uint8_t val); |
greenroshks | 6:82153349cc9b | 4 | uint8_t readreg(uint8_t reg); |
greenroshks | 6:82153349cc9b | 5 | void beacon_func(); |
greenroshks | 6:82153349cc9b | 6 | /*struct ShortBeacon { |
greenroshks | 6:82153349cc9b | 7 | char Voltage[1]; |
greenroshks | 6:82153349cc9b | 8 | char AngularSpeed[2]; |
greenroshks | 6:82153349cc9b | 9 | char SubsystemStatus[1]; |
greenroshks | 6:82153349cc9b | 10 | char Temp[3]; |
greenroshks | 6:82153349cc9b | 11 | char ErrorFlag[1]; |
greenroshks | 6:82153349cc9b | 12 | } |
greenroshks | 6:82153349cc9b | 13 | Shortbeacon = {{0x22}, {0x22, 0x33} , {0x00},{0x00,0x00,0x00}, {0x01}};*/ |