Smart Home Controller

Dependencies:   TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG sMotor

Committer:
TwinToe
Date:
Tue Jan 08 11:22:52 2019 +0000
Revision:
0:dfbc18a77337
Child:
1:7f6f6627aacd
Initial commit - Libraries

Who changed what in which revision?

UserRevisionLine numberNew contents of line
TwinToe 0:dfbc18a77337 1 #include "mbed.h"
TwinToe 0:dfbc18a77337 2 #include "TS_DISCO_F746NG.h"
TwinToe 0:dfbc18a77337 3 #include "LCD_DISCO_F746NG.h"
TwinToe 0:dfbc18a77337 4
TwinToe 0:dfbc18a77337 5 LCD_DISCO_F746NG lcd;
TwinToe 0:dfbc18a77337 6 TS_DISCO_F746NG ts;
TwinToe 0:dfbc18a77337 7
TwinToe 0:dfbc18a77337 8 int main()
TwinToe 0:dfbc18a77337 9 {
TwinToe 0:dfbc18a77337 10 // Variables
TwinToe 0:dfbc18a77337 11 TS_StateTypeDef TS_State;
TwinToe 0:dfbc18a77337 12 uint16_t x, y;
TwinToe 0:dfbc18a77337 13 uint16_t status;
TwinToe 0:dfbc18a77337 14
TwinToe 0:dfbc18a77337 15 //Initial conf
TwinToe 0:dfbc18a77337 16 status = ts.Init(lcd.GetXSize(), lcd.GetYSize());
TwinToe 0:dfbc18a77337 17 lcd.Clear(LCD_COLOR_RED);
TwinToe 0:dfbc18a77337 18 lcd.SetBackColor(LCD_COLOR_RED);
TwinToe 0:dfbc18a77337 19 lcd.SetTextColor(LCD_COLOR_WHITE);
TwinToe 0:dfbc18a77337 20 lcd.SetFont(&Font24);
TwinToe 0:dfbc18a77337 21
TwinToe 0:dfbc18a77337 22 //Start screen
TwinToe 0:dfbc18a77337 23 lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"Test String", CENTER_MODE);
TwinToe 0:dfbc18a77337 24 wait(2);
TwinToe 0:dfbc18a77337 25
TwinToe 0:dfbc18a77337 26
TwinToe 0:dfbc18a77337 27
TwinToe 0:dfbc18a77337 28 }