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 BUTTON_GROUP
Diff: my_classes/button.hpp
- Revision:
- 1:27bfb11afcff
- Parent:
- 0:9a78f27b84a4
--- a/my_classes/button.hpp Tue Nov 03 05:44:41 2015 +0000
+++ b/my_classes/button.hpp Thu Nov 05 04:38:28 2015 +0000
@@ -1,7 +1,7 @@
//-----------------------------------------------------------
// Button class -- Header
//
-// 2015/11/03, Copyright (c) 2015 MIKAMI, Naoki
+// 2015/11/05, Copyright (c) 2015 MIKAMI, Naoki
//-----------------------------------------------------------
#ifndef F746_BUTTON_HPP
@@ -29,6 +29,10 @@
void ReDraw(uint32_t textColor = LCD_COLOR_WHITE)
{ Draw(COLOR_, textColor); }
+ // Erase button with selected color
+ void Erase(uint32_t color)
+ { Draw(color, color); }
+
// Check touch detected
bool Touched();