v2i2c master receiving 4 bit data from slave

Dependencies:   mbed

Fork of xmaster by Chaitanya Viswa

Files at this revision

API Documentation at this revision

Comitter:
viswachaitanya
Date:
Mon Jul 07 10:35:37 2014 +0000
Parent:
1:35dee3eff0ab
Commit message:
uint8_t

Changed in this revision

master.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 35dee3eff0ab -r 506318f67496 master.cpp
--- a/master.cpp	Mon Jul 07 07:31:25 2014 +0000
+++ b/master.cpp	Mon Jul 07 10:35:37 2014 +0000
@@ -4,7 +4,7 @@
 {
     int acknowledge1;
     int acknowledge2;
-    int loopvariable1=1,loopvariable2=0;
+    uint8_t loopvariable1=1,loopvariable2=0;
     int addr = slave_address;
     while(loopvariable1)
     {