![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
working code of bae with i2c
Fork of all_combined_week6 by
slave.h
- Committer:
- viswachaitanya
- Date:
- 2014-09-18
- Revision:
- 7:47e07755d9a4
- Parent:
- 3:9b597ed04ef4
File content as of revision 7:47e07755d9a4:
#include "mbed.h" int FUNC_I2C_SLAVE_MAIN(int iterations); void write_to_master(char); //function to write data to master /*#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);*/