third commit

Dependencies:   mbed

Fork of i2c_slave by Chaitanya Viswa

Revision:
1:37d4026fa600
Parent:
0:ad4485166cfe
--- 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;