a demo of GUI on DISCOF7 consisting of a few buttons and feeders

Dependencies:   ADXL345 BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG

Files at this revision

API Documentation at this revision

Comitter:
habiburrahman
Date:
Sun Aug 07 23:09:29 2016 +0000
Parent:
5:bb525217a976
Commit message:
upgraded to mbed-os 3.0

Changed in this revision

ESP8266NodeMCUInterface.lib Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show diff for this revision Revisions of this file
diff -r bb525217a976 -r 2fb08b64e051 ESP8266NodeMCUInterface.lib
--- a/ESP8266NodeMCUInterface.lib	Sat Aug 06 03:28:06 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://developer.mbed.org/teams/ESP8266/code/ESP8266NodeMCUInterface/#6031f70e3914
diff -r bb525217a976 -r 2fb08b64e051 main.cpp
--- a/main.cpp	Sat Aug 06 03:28:06 2016 +0000
+++ b/main.cpp	Sun Aug 07 23:09:29 2016 +0000
@@ -1,8 +1,7 @@
 #include "mbed.h"
+#include "rtos.h"
 #include "TS_DISCO_F746NG.h"
 #include "LCD_DISCO_F746NG.h"
-#include "ESP8266.h"
-#include "TCPSocketConnection.h"
 #include <string>
 using namespace std;
  
@@ -154,7 +153,7 @@
     uint8_t status;
     
     lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"WOLLONGONG UNIVERSITY", CENTER_MODE);
-    wait(1);
+    Thread::wait(1000);
 
     status = ts.Init(lcd.GetXSize(), lcd.GetYSize());
     if (status != TS_OK) {
@@ -183,7 +182,7 @@
     lcd.FillRect(hFeed1pos.x, hFeed1pos.y, hFeed1pos.width, hFeed1pos.height);
     lcd.FillRect(hFeed2pos.x, hFeed2pos.y, hFeed2pos.width, hFeed2pos.height);
     
-    wait(1);
+    Thread::wait(1000);
 
 
     while(1){
diff -r bb525217a976 -r 2fb08b64e051 mbed-os.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Sun Aug 07 23:09:29 2016 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os/#0712b8adf6bbc7eb796d5dac26f95d79d40745ef
diff -r bb525217a976 -r 2fb08b64e051 mbed.bld
--- a/mbed.bld	Sat Aug 06 03:28:06 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/aae6fcc7d9bb
\ No newline at end of file