Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of all_combined_week6 by
Diff: slave.h
- Revision:
- 3:9b597ed04ef4
- Parent:
- 0:cbe0ea884289
--- 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