STM32F7-Discovery - TFT + Touch and Count down Timer Ver.1.0.5
Dependencies: BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG mbed
Fork of F746NG_TIMER by
Diff: main.cpp
- Revision:
- 3:a99d1624ff73
- Parent:
- 2:a448d80c91b5
- Child:
- 4:0d9d4ea58fdb
--- a/main.cpp Sun Feb 28 17:08:47 2016 +0000 +++ b/main.cpp Sun Feb 28 17:43:40 2016 +0000 @@ -5,7 +5,7 @@ STM32F7-Discovery Demo by www.emcu.it Date: Feb.2016 - Ver.: 1.0.3 + Ver.: 1.0.4 * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software @@ -144,8 +144,12 @@ lcd.DisplayStringAt(0, LINE(3), (uint8_t *)" RIGHT for increase MIN ", CENTER_MODE); lcd.DisplayStringAt(0, LINE(4), (uint8_t *)" REDbox for start TIMER ", CENTER_MODE); lcd.DisplayStringAt(0, LINE(5), (uint8_t *)" ", CENTER_MODE); + lcd.SetBackColor(LCD_COLOR_BLACK); + lcd.SetTextColor(LCD_COLOR_BLACK); lcd.DisplayStringAt(0, LINE(6), (uint8_t *)" ", CENTER_MODE); lcd.DisplayStringAt(0, LINE(7), (uint8_t *)" ", CENTER_MODE); + lcd.SetBackColor(LCD_COLOR_BLUE); + lcd.SetTextColor(LCD_COLOR_WHITE); sprintf((char*)text, " MIN: %d ", _min); lcd.DisplayStringAt(xpos, LINE(7), (uint8_t *)&text, LEFT_MODE); @@ -250,7 +254,11 @@ lcd.SetTextColor(LCD_COLOR_WHITE); sprintf((char*)text, " Minutes that remain: %d ", _min); lcd.DisplayStringAt(xpos, LINE(5), (uint8_t *)&text, LEFT_MODE); - DisplayBigNumber(_min); + if (Count == 0) + // Clear 1° cifra + FillBox(LCD_COLOR_BLACK, 300, 200, 40, 70); + else + DisplayBigNumber(_min); Logo(); } else