![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
jkjkjkjk
Fork of all_combined_week6 by
slave.h
- Committer:
- viswachaitanya
- Date:
- 2014-07-17
- Revision:
- 7:5cf19bfdbacd
- Parent:
- 3:9b597ed04ef4
File content as of revision 7:5cf19bfdbacd:
#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); struct SensorData { char voltage[10]; char current[10]; char temp[10]; //float Battery[2]; };