不韋 呂 / Mbed 2 deprecated F746_Mandelbrot

Dependencies:   BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG mbed BUTTON_GROUP

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