Working Menu, additions to be made

Dependencies:   mbed

Revision:
2:d3676e11e2c6
Parent:
1:a87075699085
Child:
3:d1e1de4a712e
--- a/main.cpp	Tue Dec 07 05:01:37 2021 +0000
+++ b/main.cpp	Fri Dec 10 18:18:53 2021 +0000
@@ -1,11 +1,12 @@
 /*
 Code for a IoT Temperature reading device.
-Acknowledgements to xxxxx
+Acknowledgements to Dr Craig A. Evans and Dr Edmond Nurellari.
 **/
 
 #include "mbed.h"
 #include "N5110.h"
 #include "Joystick.h"
+#include "TMP102.h"
 
 //Defines
 AnalogIn pot(PTB2);
@@ -40,12 +41,17 @@
 N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);  // K64F - pwr from 3V3
 //                y     x     button
 Joystick joystick(PTB10,PTB11,PTC16);
+//I2C      SDA   SCL
+TMP102 tmp(PTE24,PTE25);
 
 
 int main() {
     
     //Initialise devices
     lcd.init();
+    joystick.init();
+    tmp.init();
+    
     lcd.setContrast(0.4);
     
     //Set up ticker (time in seconds)