a

Dependencies:   TS_F746 LCD_746 LbBSP746NG GUI_746

Revision:
3:451a7e2f7928
Parent:
2:e11266cb3ba5
--- a/main.cpp	Wed Oct 09 12:24:16 2019 +0000
+++ b/main.cpp	Tue Dec 10 14:35:22 2019 +0000
@@ -1,9 +1,3 @@
-//---------------------------------------------------------------
-//
-//  Demo program for 
-//  F746_Button and Slider library
-//
-//---------------------------------------------------------------
 #include "mbed.h"
 #include "F746_BUTTON.hpp"
 
@@ -38,13 +32,13 @@
     lcd_.Clear(LCD_COLOR_WHITE);                                        // Set LCD Background colour
    
     Button btn1(lcd_, ts_, 20, 50, 80, 40,           
-                 LCD_COLOR_BLUE, LCD_COLOR_YELLOW, 1, "BUTTON1", Font12);  // Define btn1 button            
+                 LCD_COLOR_BLUE, LCD_COLOR_YELLOW, 1, "NUTNHAN", Font12);  // Define btn1 button            
     btn1.Render();                                                         // Draw btn1 button
     button1.fall(callback(button1_onpressed_cb)); // Attach ISR to handle button press event
 
     int idx = 0; // Just for printf below
     while (true)                                                    // Main program loop
-    {                                                                                         // End sld1 instructions
+    {                                                                                      
   
         if (btn1.Press())                                         // Check if btn1 button was touched and run instructions if true
         {    
@@ -52,7 +46,7 @@
             lcd_.SetTextColor(LCD_COLOR_BLACK);
             led = !led;
             wait(0.5); 
-            lcd_.DisplayStringAt(5, 110, (uint8_t *)"                                        ", LEFT_MODE);
+            lcd_.DisplayStringAt(5, 110, (uint8_t *)"", LEFT_MODE);
         }                                                           // End btn1 button instructions
         if (button1_pressed) { // Set when button is pressed
             button1_pressed = false;
@@ -64,7 +58,7 @@
             
             lcd_.DisplayStringAt(5, 160, (uint8_t *)tmp, LEFT_MODE);
             wait(0.5);
-        }                                            // End 3D button instructions
+        }                                            
         wait(0.02f);   
-    }                                                               // End Main program loop
-}                                                                   // End Main program 
+    }                                                              
+}