![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
working code of bae with i2c
Fork of all_combined_week6 by
slave.h@3:9b597ed04ef4, 2014-07-11 (annotated)
- Committer:
- greenroshks
- Date:
- Fri Jul 11 08:54:12 2014 +0000
- Revision:
- 3:9b597ed04ef4
- Parent:
- 0:cbe0ea884289
- Child:
- 7:47e07755d9a4
Updated with new 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 |
greenroshks | 3:9b597ed04ef4 | 6 | void FUNC_I2C_SLAVE_MAIN(int iterations); |