read TI TMP102 temperature and display on SSD1306 OLED

Dependencies:   Adafruit_GFX TMP102 mbed

Fork of DisplayOled by Frank Girald

Files at this revision

API Documentation at this revision

Comitter:
poushen
Date:
Sun Jun 17 07:28:51 2018 +0000
Parent:
2:8d76b62373dd
Commit message:
a test program read TMP102's temperature and display on OLED SSD1306.

Changed in this revision

Adafruit_GFX.lib Show annotated file Show diff for this revision Revisions of this file
TMP102.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 8d76b62373dd -r 6fd4514ca28c Adafruit_GFX.lib
--- a/Adafruit_GFX.lib	Tue Jun 12 03:37:57 2018 +0000
+++ b/Adafruit_GFX.lib	Sun Jun 17 07:28:51 2018 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/users/kaizen/code/Adafruit_GFX/#25d3e39e8b13
+https://os.mbed.com/users/poushen/code/Adafruit_GFX/#25d3e39e8b13
diff -r 8d76b62373dd -r 6fd4514ca28c TMP102.lib
--- a/TMP102.lib	Tue Jun 12 03:37:57 2018 +0000
+++ b/TMP102.lib	Sun Jun 17 07:28:51 2018 +0000
@@ -1,1 +1,1 @@
-TMP102#dd209ce90298
+https://os.mbed.com/users/poushen/code/TMP102/#d4774de8a3be
diff -r 8d76b62373dd -r 6fd4514ca28c main.cpp
--- a/main.cpp	Tue Jun 12 03:37:57 2018 +0000
+++ b/main.cpp	Sun Jun 17 07:28:51 2018 +0000
@@ -57,7 +57,9 @@
  };
 };
  
-I2CPreInit myI2C(PB_9,PB_8);
+//I2CPreInit myI2C(PB_9,PB_8);
+I2CPreInit myI2C(I2C_SDA, I2C_SCL);
+//I2CPreInit myI2C(dp5, dp27);
 Adafruit_SSD1306_I2c myOled(myI2C,NC,0x78,64,128);
 
 test_TMP102 temp1(myI2C);