![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
working code of bae with i2c
Fork of all_combined_week6 by
slave.h@7:47e07755d9a4, 2014-09-18 (annotated)
- Committer:
- viswachaitanya
- Date:
- Thu Sep 18 10:29:33 2014 +0000
- Revision:
- 7:47e07755d9a4
- Parent:
- 3:9b597ed04ef4
working bae code with i2c
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
harshit_felicity | 0:cbe0ea884289 | 1 | #include "mbed.h" |
viswachaitanya | 7:47e07755d9a4 | 2 | |
viswachaitanya | 7:47e07755d9a4 | 3 | int FUNC_I2C_SLAVE_MAIN(int iterations); |
viswachaitanya | 7:47e07755d9a4 | 4 | void write_to_master(char); //function to write data to master |
viswachaitanya | 7:47e07755d9a4 | 5 | |
viswachaitanya | 7:47e07755d9a4 | 6 | |
viswachaitanya | 7:47e07755d9a4 | 7 | |
viswachaitanya | 7:47e07755d9a4 | 8 | |
viswachaitanya | 7:47e07755d9a4 | 9 | |
viswachaitanya | 7:47e07755d9a4 | 10 | |
viswachaitanya | 7:47e07755d9a4 | 11 | |
viswachaitanya | 7:47e07755d9a4 | 12 | |
viswachaitanya | 7:47e07755d9a4 | 13 | |
viswachaitanya | 7:47e07755d9a4 | 14 | |
viswachaitanya | 7:47e07755d9a4 | 15 | |
viswachaitanya | 7:47e07755d9a4 | 16 | |
viswachaitanya | 7:47e07755d9a4 | 17 | |
viswachaitanya | 7:47e07755d9a4 | 18 | /*#include "mbed.h" |
greenroshks | 3:9b597ed04ef4 | 19 | #define WriteGeneral 3 |
greenroshks | 3:9b597ed04ef4 | 20 | #define ReadAddressed 1 |
greenroshks | 3:9b597ed04ef4 | 21 | #define slave_address 0x20 |
harshit_felicity | 0:cbe0ea884289 | 22 | void write_to_master(char); //function to write data to master |
viswachaitanya | 7:47e07755d9a4 | 23 | void FUNC_I2C_SLAVE_MAIN(int iterations);*/ |