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: mbed
Fork of el17ajf by
Diff: Menus/UI/UI.cpp
- Revision:
- 27:2ed9e3c9f4e9
- Parent:
- 26:baa7077449e7
- Child:
- 30:11838cb6979f
--- a/Menus/UI/UI.cpp Thu Apr 04 18:39:45 2019 +0000
+++ b/Menus/UI/UI.cpp Fri Apr 05 17:16:59 2019 +0000
@@ -19,6 +19,7 @@
buttonPressedFrame = false;
nextYPos = PADDING_Y;
buttonCurrentlyDrawing = -1;
+ frame++;
}
void UI::drawTitle(const char * text) {
@@ -29,6 +30,10 @@
Graphics::UI::drawText(PADDING_X, nextY(), text);
}
+ void UI::drawFlashingLabel(const char * text) {
+ Graphics::UI::drawText(PADDING_X, nextY(), (frame % 16) > 8 ? text : "");
+ }
+
void UI::newLine() {
nextY();
}
