Test
Dependencies: mbed AccelSensor
Diff: main.cpp
- Revision:
- 2:3e6b509d7eca
- Parent:
- 1:60bb79c9a01e
- Child:
- 3:4e4e4d7f6ee1
--- a/main.cpp Mon Jan 14 18:05:34 2013 +0000 +++ b/main.cpp Tue Jan 15 04:19:52 2013 +0000 @@ -1,6 +1,6 @@ #include "mbed.h" -I2C i2c(p28, p27); // sda, scl +I2C i2c(p9, p10); // sda, scl Serial pc(USBTX, USBRX); // tx, rx const int addr = 0x9A; // define the I2C Address for TC74-A0 @@ -13,6 +13,7 @@ wait(1); //Make sure system is fully initialized + while(1) { pc.printf("\r\n\nStart reading the temperature of TC74 on I2C\r\n"); @@ -47,9 +48,10 @@ pc.printf("Method 1 :: %d\n\r", temp); //Prints out the Data from Method 2 - pc.printf("Method 1 :: %d\r\n\n", cmd[0]); + pc.printf("Method 2 :: %d\r\n\n", cmd[0]); + wait(1); } } \ No newline at end of file