lcd

Dependencies:   LCD_DISCO_F469NI TS_DISCO_F469NI F469_GUI BSP_DISCO_F469NI

Files at this revision

API Documentation at this revision

Comitter:
bouaziz
Date:
Wed Feb 20 09:24:35 2019 +0000
Parent:
0:0a8891401c4f
Commit message:
test LCD et tactile qui marche

Changed in this revision

BSP_DISCO_F469NI.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show diff for this revision Revisions of this file
diff -r 0a8891401c4f -r 222362fa4bea BSP_DISCO_F469NI.lib
--- a/BSP_DISCO_F469NI.lib	Sun Oct 23 16:00:40 2016 +0000
+++ b/BSP_DISCO_F469NI.lib	Wed Feb 20 09:24:35 2019 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/ST/code/BSP_DISCO_F469NI/#9e4eb47092ed
+https://developer.mbed.org/teams/ST/code/BSP_DISCO_F469NI/#3cdfcc4f7c9d
diff -r 0a8891401c4f -r 222362fa4bea main.cpp
--- a/main.cpp	Sun Oct 23 16:00:40 2016 +0000
+++ b/main.cpp	Wed Feb 20 09:24:35 2019 +0000
@@ -14,8 +14,8 @@
     Label obj12(400, 32, "SeekBar, SeekbarGroup",
                 Label::CENTER);
 
-    Button button1(10, 54, 50, 40, "1");
-    Button button2(62, 54, 50, 40, "2");
+    Button button1(10, 300, 80, 60, "1");
+    Button button2(95, 300, 80, 60, "2");
 
     const int NUMBER_BUTTONS = 4;
     const string STR1[NUMBER_BUTTONS] = {"Button1", "Button2", "Button3", "Activate"};
@@ -36,7 +36,7 @@
                       LCD_COLOR_DARKGREEN, LCD_COLOR_RED);
 
     // Using default value for argument (Horizontal)
-    SeekBar barH(20, 250, 200, -5, 5, 0, "-5", "", "5");
+    SeekBar barH(20, 250, 200, -5, 5, 0, "-5", "0", "5");
     NumericLabel<float> numLabel1(80, 205, "%5.1f", barH.GetValue());
     NumericLabel<int> numLabel2(130, 205, "%3d", (int)barH.GetValue());
     NumericLabel<int> numLabel3(160, 205);
@@ -54,11 +54,22 @@
     Label leftJustified(420, 54, "ABC", Label::LEFT);
     Label centerJustified(420, 64, "ABC", Label::CENTER);
     Label rightJustified1(420, 74, "ABC", Label::RIGHT);
-
+    unsigned char flag=0;
+    unsigned tab [2]={0x0000FF,0x00FF00};
     while (true)
     {
-        if (button1.Touched()) button2.Draw();
-        if (button2.Touched()) button1.Draw();
+        if (button1.Touched()){
+                if(flag==0){
+                    flag=1;
+                }else{
+                    button1.Draw();
+                    flag=0;
+                }
+        }
+        if (button2.Touched()){
+                 unsigned int v= (unsigned)(((barH.GetValue()+5)*255)/10)<<24;
+                 button2.Draw((unsigned)(tab[flag]+v));
+        }
 
         int num;
         if (bGroup1.GetTouchedNumber(num))
diff -r 0a8891401c4f -r 222362fa4bea mbed-os.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Wed Feb 20 09:24:35 2019 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os/#c05d72c3c005fbb7e92c3994c32bda45218ae7fe
diff -r 0a8891401c4f -r 222362fa4bea mbed.bld
--- a/mbed.bld	Sun Oct 23 16:00:40 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/2241e3a39974
\ No newline at end of file