green rosh
/
i2c_slave_chaitanya
third commit
Fork of i2c_slave by
Diff: slave.cpp
- Revision:
- 1:37d4026fa600
- Parent:
- 0:ad4485166cfe
diff -r ad4485166cfe -r 37d4026fa600 slave.cpp --- a/slave.cpp Mon Jun 30 11:59:30 2014 +0000 +++ b/slave.cpp Tue Jul 01 07:25:58 2014 +0000 @@ -1,4 +1,8 @@ #include "slave.h" + + SensorData Sensor; +I2CSlave slave(p28,p27); //configuring pins p27, p28 as I2Cslave +Serial pc (USBTX,USBRX); void write_to_master(char send) //function to write data to master { int acknowledge;