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: F746_GUI_vV mbed Vision_Indus_IHM
Revision 4:4f73a3054a67, committed 2016-04-12
- Comitter:
- MikamiUitOpen
- Date:
- Tue Apr 12 04:16:13 2016 +0000
- Parent:
- 3:e92615be71c7
- Child:
- 5:75dc1ee62935
- Commit message:
- 5
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 |
--- a/F746_GUI.lib Sun Apr 10 09:26:28 2016 +0000 +++ b/F746_GUI.lib Tue Apr 12 04:16:13 2016 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/MikamiUitOpen/code/F746_GUI/#9c3ea4d4bc6b +https://developer.mbed.org/users/MikamiUitOpen/code/F746_GUI/#b8f197b0012c
--- a/main.cpp Sun Apr 10 09:26:28 2016 +0000
+++ b/main.cpp Tue Apr 12 04:16:13 2016 +0000
@@ -2,9 +2,9 @@
// GuiBase とその派生クラスのデモプログラム
// Demo program for GuiBase class and its derivertive classes
//
-// GuiBase, Button, ButtonGroup, Label, NumericLabel, BlimkButton, SeekBar
+// GuiBase, Button, ButtonGroup, Label, NumericLabel, BlinkLabel, SeekBar
//
-// 2016/04/10, Copyright (c) 2016 MIKAMI, Naoki
+// 2016/04/12, Copyright (c) 2016 MIKAMI, Naoki
//--------------------------------------------------------------------------------
#include "NumericLabel.hpp"
@@ -25,7 +25,7 @@
int main()
{
- Label obj10(240, 4, "Dome: GUI parts", Label::CENTER, Font16);
+ Label obj10(240, 4, "Dome: GUI parts, 2016/04/12", Label::CENTER, Font16);
Label obj11(240, 24, "Label, NumericLabel, BlinkLabel, Button, ButtonGroup, SeekBar",
Label::CENTER);
@@ -52,10 +52,10 @@
LCD_COLOR_DARKGREEN, LCD_COLOR_RED);
// Using default value for argument (Horisontal)
- SeekBar barH(20, 240, 200, -5, 5, 0);
- NumericLabel<float> numLabel1(20, 200, "%5.1f", barH.GetValue());
- NumericLabel<int> numLabel2(90, 200, "%3d", (int)barH.GetValue());
- NumericLabel<int> numLabel3(120, 200);
+ SeekBar barH(20, 250, 200, -5, 5, 0, "-5", "", "5");
+ NumericLabel<float> numLabel1(80, 205, "%5.1f", barH.GetValue());
+ NumericLabel<int> numLabel2(130, 205, "%3d", (int)barH.GetValue());
+ NumericLabel<int> numLabel3(160, 205);
// SeekBar (vertical)
SeekBar barV(440, 100, 150, -5, 5, 2, SeekBar::Vertical, LCD_COLOR_GREEN);
@@ -102,8 +102,16 @@
BlinkLabel warning(250, 200, "You must reset", Label::LEFT, Font16);
// SeekBar active inactive switching
- if (bGroup3.Touched(0)) barH.Activate();
- if (bGroup3.Touched(1)) barH.Inactivate();
+ if (bGroup3.Touched(0))
+ {
+ barH.Activate();
+ barV.Activate();
+ }
+ if (bGroup3.Touched(1))
+ {
+ barH.Inactivate();
+ barV.Inactivate();
+ }
wait(0.02f);
}