a test program to read temperature from TI TMP102 sensor, and then display on OLED screen.
Dependencies: TMP102 eeprom mbed oled_i2c
Revision 1:8e6b9978a4d0, committed 2018-06-29
- Comitter:
- poushen
- Date:
- Fri Jun 29 22:03:18 2018 +0000
- Parent:
- 0:1b2565997ba9
- Commit message:
- add remark for i2c pin of different mcu
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
oled_i2c.lib | Show annotated file Show diff for this revision Revisions of this file |
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);
diff -r 1b2565997ba9 -r 8e6b9978a4d0 oled_i2c.lib --- a/oled_i2c.lib Tue Jun 19 06:06:05 2018 +0000 +++ b/oled_i2c.lib Fri Jun 29 22:03:18 2018 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/poushen/code/oled_i2c/#e64ae00d801c +https://os.mbed.com/users/poushen/code/oled_i2c/#909dd63644b4