v2 i2c slave sending 4 bit sensor data to master

Dependencies:   mbed

Fork of xslave by Chaitanya Viswa

Revision:
1:255616146873
Parent:
0:acc1f8a1b321
diff -r acc1f8a1b321 -r 255616146873 slave.h
--- a/slave.h	Sat Jul 05 06:38:13 2014 +0000
+++ b/slave.h	Mon Jul 07 07:28:35 2014 +0000
@@ -1,4 +1,6 @@
 #include "mbed.h"
-
+#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(int slave_address,int iterations);
+void FUNC_I2C_SLAVE_MAIN(int iterations);