green rosh
/
i2c_slave_chaitanya
third commit
Fork of i2c_slave by
Diff: slave.h
- Revision:
- 1:37d4026fa600
- Parent:
- 0:ad4485166cfe
diff -r ad4485166cfe -r 37d4026fa600 slave.h --- a/slave.h Mon Jun 30 11:59:30 2014 +0000 +++ b/slave.h Tue Jul 01 07:25:58 2014 +0000 @@ -1,9 +1,8 @@ #include "mbed.h" -I2CSlave slave(p28,p27); //configuring pins p27, p28 as I2Cslave -Serial pc (USBTX,USBRX); + void split(float); //function to split 4 bcurrentte data void write_to_master(char); //function to write data to master -void FUNC_I2C_SLAVE_MAIN() +void FUNC_I2C_SLAVE_MAIN(); struct SensorData //HK_data_structure { @@ -11,4 +10,4 @@ float current[10]; float temp[10]; //float Battery[2]; -} Sensor; +} ;