ELEC2645 (2018/19) / Mbed 2 deprecated el17ajf

Dependencies:   mbed

Fork of el17ajf by Angus Findlay

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();
     }