![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
jkjkjkjk
Fork of all_combined_week6 by
Diff: slave.cpp
- Revision:
- 4:79b97f9cab00
- Parent:
- 3:9b597ed04ef4
- Child:
- 6:82153349cc9b
diff -r 9b597ed04ef4 -r 79b97f9cab00 slave.cpp --- a/slave.cpp Fri Jul 11 08:54:12 2014 +0000 +++ b/slave.cpp Sat Jul 12 07:26:06 2014 +0000 @@ -1,7 +1,7 @@ #include "slave.h" #include "HK.h" -extern SensorData Sensor; +extern struct SensorData Sensor; I2CSlave slave(p28,p27); //configuring pins p27, p28 as I2Cslave Serial screen (USBTX,USBRX); void write_to_master(char send) //function to write data to master