Smart Home Controller
Dependencies: TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG sMotor
Diff: main.cpp
- Revision:
- 0:dfbc18a77337
- Child:
- 1:7f6f6627aacd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Jan 08 11:22:52 2019 +0000 @@ -0,0 +1,28 @@ +#include "mbed.h" +#include "TS_DISCO_F746NG.h" +#include "LCD_DISCO_F746NG.h" + +LCD_DISCO_F746NG lcd; +TS_DISCO_F746NG ts; + +int main() +{ + // Variables + TS_StateTypeDef TS_State; + uint16_t x, y; + uint16_t status; + + //Initial conf + status = ts.Init(lcd.GetXSize(), lcd.GetYSize()); + lcd.Clear(LCD_COLOR_RED); + lcd.SetBackColor(LCD_COLOR_RED); + lcd.SetTextColor(LCD_COLOR_WHITE); + lcd.SetFont(&Font24); + + //Start screen + lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"Test String", CENTER_MODE); + wait(2); + + + +}