2017 hongo b team

Dependencies:   I2C_slave MotorDriver mbed

Files at this revision

API Documentation at this revision

Comitter:
Komazawa_sun
Date:
Fri Sep 08 08:44:32 2017 +0000
Parent:
0:2c99fa8dad2a
Commit message:
???;

Changed in this revision

I2C.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 2c99fa8dad2a -r d00affd925c2 I2C.lib
--- a/I2C.lib	Fri Sep 08 04:06:59 2017 +0000
+++ b/I2C.lib	Fri Sep 08 08:44:32 2017 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/Komazawa_sun/code/I2C_slave/#1c72b2d82d4a
+https://developer.mbed.org/users/Komazawa_sun/code/I2C_slave/#f9f43ff769b9
diff -r 2c99fa8dad2a -r d00affd925c2 main.cpp
--- a/main.cpp	Fri Sep 08 04:06:59 2017 +0000
+++ b/main.cpp	Fri Sep 08 08:44:32 2017 +0000
@@ -14,6 +14,7 @@
     slave = new I2CSlave(SDA, SCL);
     ApprI2CSlave test(alpha_a::sht_pwr, alpha_a::unsig, alpha_a::s2_addr, slave);
     while(1) {
-        pc.printf("%d",test.read());
+        int buff = test.read();
+        pc.printf("%d\r\n",buff);
     }
 }