![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
jkjkjkjk
Fork of all_combined_week6 by
slave.h@7:5cf19bfdbacd, 2014-07-17 (annotated)
- Committer:
- viswachaitanya
- Date:
- Thu Jul 17 11:22:41 2014 +0000
- Revision:
- 7:5cf19bfdbacd
- Parent:
- 3:9b597ed04ef4
i2c test slave
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
harshit_felicity | 0:cbe0ea884289 | 1 | #include "mbed.h" |
greenroshks | 3:9b597ed04ef4 | 2 | #define WriteGeneral 3 |
greenroshks | 3:9b597ed04ef4 | 3 | #define ReadAddressed 1 |
greenroshks | 3:9b597ed04ef4 | 4 | #define slave_address 0x20 |
harshit_felicity | 0:cbe0ea884289 | 5 | void write_to_master(char); //function to write data to master |
viswachaitanya | 7:5cf19bfdbacd | 6 | void FUNC_I2C_SLAVE_MAIN(int iterations); |
viswachaitanya | 7:5cf19bfdbacd | 7 | struct SensorData { |
viswachaitanya | 7:5cf19bfdbacd | 8 | char voltage[10]; |
viswachaitanya | 7:5cf19bfdbacd | 9 | char current[10]; |
viswachaitanya | 7:5cf19bfdbacd | 10 | char temp[10]; |
viswachaitanya | 7:5cf19bfdbacd | 11 | //float Battery[2]; |
viswachaitanya | 7:5cf19bfdbacd | 12 | }; |