Julien VILLEMEJANE / Mbed 2 deprecated PIMS_VisionIndus_IHM

Dependencies:   F746_GUI_vV mbed Vision_Indus_IHM

Files at this revision

API Documentation at this revision

Comitter:
MikamiUitOpen
Date:
Mon May 30 14:35:25 2016 +0000
Parent:
11:0195d802ab3d
Child:
13:270545d8d62e
Commit message:
13

Changed in this revision

F746_GUI.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.bld Show annotated file Show diff for this revision Revisions of this file
--- a/F746_GUI.lib	Sat Apr 30 06:34:22 2016 +0000
+++ b/F746_GUI.lib	Mon May 30 14:35:25 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/MikamiUitOpen/code/F746_GUI/#687ec6183385
+https://developer.mbed.org/users/MikamiUitOpen/code/F746_GUI/#9ae055fac9cf
--- a/main.cpp	Sat Apr 30 06:34:22 2016 +0000
+++ b/main.cpp	Mon May 30 14:35:25 2016 +0000
@@ -5,7 +5,7 @@
 //      GuiBase, Button, ButtonGroup, Label, NumericLabel, BlinkLabel,
 //      SeekBar, SeekbarGroup
 //
-//  2016/04/30, Copyright (c) 2016 MIKAMI, Naoki
+//  2016/05/30, Copyright (c) 2016 MIKAMI, Naoki
 //--------------------------------------------------------------------------------
 
 #include "NumericLabel.hpp"
@@ -15,15 +15,6 @@
 
 using namespace Mikami;
 
-Ticker timer;
-NumericLabel<float> obj2(10, 116, Label::LEFT, Font16, LCD_COLOR_YELLOW);
-
-void TimerIsr()
-{
-    static int sec = 0;
-    obj2.Draw("%6.1f [s]", (float)(sec++)/10.0f);
-}
-
 int main()
 {
     Label obj10(240, 2, "Dome: GUI parts, 2016/04/30, 15:31", Label::CENTER, Font16);
@@ -62,20 +53,19 @@
     NumericLabel<int> numLabel3(160, 205);
     
     // SeekbarGroup (vertical)
-    SeekbarGroup barV(400, 120, 130, 2, 50, -5, 5, 2,
+    SeekbarGroup barV(410, 130, 121, 2, 45, -6, 6, 2,
                       SeekBar::Vertical, 0xFFA0FFC0);
     NumericLabel<float> **numLabel4;
     numLabel4 = new NumericLabel<float> *[2];
     for (int n=0; n<2; n++) numLabel4[n] =
-        new NumericLabel<float>(400+n*50, 94, "%4.1f", barV.GetValue(n), Label::CENTER);
+        new NumericLabel<float>(410+n*45, 104, "%4.1f", barV.GetValue(n), Label::CENTER);
+    NumericLabel<int> numLabel5(455, 92, "%1d", barV.GetIntValue(0), Label::CENTER);
 
-    // Test of left-, cenrer-, right-justified
+    // Test of left-, cenrer-, and right-justified
     Label leftJustified(420, 52, "ABC", Label::LEFT);
     Label centerJustified(420, 62, "ABC", Label::CENTER);
     Label rightJustified1(420, 72, "ABC", Label::RIGHT);
 
-    timer.attach(&TimerIsr, 0.1f);
-
     while (true)
     {
         if (button1.Touched()) button2.Draw();
@@ -117,8 +107,11 @@
 
         int sbNum;
         if (barV.GetSlidedNumber(sbNum))
-            numLabel4[sbNum]->Draw("%4.1f", barV.GetValue(sbNum));
-
+        {
+            if (sbNum == 0) numLabel4[sbNum]->Draw("%4.1f", barV.GetValue(sbNum));
+            else            numLabel4[sbNum]->Draw("%4.1f", barV.GetValue(sbNum));
+            if (sbNum == 1) numLabel5.Draw("%1d", barV.GetIntValue(sbNum));
+        }
         // If "doNotTouch" button touched, trapped into endless loop
         if (doNotTouch.Touched())
             BlinkLabel warning(250, 200, "You must reset", Label::LEFT, Font16);
--- a/mbed.bld	Sat Apr 30 06:34:22 2016 +0000
+++ b/mbed.bld	Mon May 30 14:35:25 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/082adc85693f
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/6c34061e7c34
\ No newline at end of file