Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG mbed
Fork of F746NG_TIMER by
Revision 3:a99d1624ff73, committed 2016-02-28
- Comitter:
- emcu
- Date:
- Sun Feb 28 17:43:40 2016 +0000
- Parent:
- 2:a448d80c91b5
- Child:
- 4:0d9d4ea58fdb
- Commit message:
- SM32F7-Discovery Countdown Timer; V.1.0.4
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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
