![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
working code of bae with i2c
Fork of all_combined_week6 by
slave.h
- Committer:
- greenroshks
- Date:
- 2014-07-11
- Revision:
- 3:9b597ed04ef4
- Parent:
- 0:cbe0ea884289
- Child:
- 7:47e07755d9a4
File content as of revision 3:9b597ed04ef4:
#include "mbed.h" #define WriteGeneral 3 #define ReadAddressed 1 #define slave_address 0x20 void write_to_master(char); //function to write data to master void FUNC_I2C_SLAVE_MAIN(int iterations);