a demo of GUI on DISCOF7 consisting of a few buttons and feeders
Dependencies: ADXL345 BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG
Diff: main.cpp
- Revision:
- 6:2fb08b64e051
- Parent:
- 5:bb525217a976
--- 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){