a test program to read temperature from TI TMP102 sensor, and then display on OLED screen.
Dependencies: TMP102 eeprom mbed oled_i2c
Diff: main.cpp
- Revision:
- 1:8e6b9978a4d0
- Parent:
- 0:1b2565997ba9
diff -r 1b2565997ba9 -r 8e6b9978a4d0 main.cpp --- a/main.cpp Tue Jun 19 06:06:05 2018 +0000 +++ b/main.cpp Fri Jun 29 22:03:18 2018 +0000 @@ -12,7 +12,9 @@ // ** serial port: 9600, 8, N, 1, N // ************************************* //Serial pc(xp9, xp10); -I2C i2c(dp5, dp27); +I2C i2c(dp5, dp27); // NXP LPC1114 +//I2C i2c(I2C_SDA, I2C_SCL); // ST F401 +//I2C i2c(PA_10, PA_9); // ST L031 oled_i2c oled(i2c); test_TMP102 temp1(i2c);