![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
jkjkjkjk
Fork of all_combined_week6 by
Diff: slave.h
- Revision:
- 3:9b597ed04ef4
- Parent:
- 0:cbe0ea884289
- Child:
- 7:5cf19bfdbacd
diff -r 94ca2059f8b2 -r 9b597ed04ef4 slave.h --- a/slave.h Fri Jul 11 05:14:12 2014 +0000 +++ b/slave.h Fri Jul 11 08:54:12 2014 +0000 @@ -1,14 +1,6 @@ #include "mbed.h" - - -void split(float); //function to split 4 bcurrentte data +#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(); - -struct SensorData //HK_data_structure -{ - float voltage[10]; - float current[10]; - float temp[10]; - //float Battery[2]; -}; +void FUNC_I2C_SLAVE_MAIN(int iterations); \ No newline at end of file