My final year project
Dependencies: BSP_DISCO_F746NG F746_GUI LCD_DISCO_F746NG SDFileSystem TS_DISCO_F746NG ResistiveTouchController Map CYS8218Controller MedianFilter
Diff: Screens/AutomaticControlScreen.cpp
- Revision:
- 16:6b553c9008ec
- Parent:
- 15:bc63b55a426d
- Child:
- 17:3b6d66253c97
--- a/Screens/AutomaticControlScreen.cpp Sun Oct 02 09:54:14 2016 +0000 +++ b/Screens/AutomaticControlScreen.cpp Sun Oct 02 10:17:55 2016 +0000 @@ -6,7 +6,7 @@ _btBack( 0, SCREEN_H-30, 100, 30, "Back"), _btSettings(SCREEN_W-100, SCREEN_H-30, 100, 30, "Settings"), _btStart(0, SCREEN_H-65, SCREEN_W, 30, "Start"), //TODO Custom colors and disabled featrure - _btStop(0, SCREEN_H-65, SCREEN_W, 30, "Start"), //TODO Custom colors + //_btStop(0, SCREEN_H-65, SCREEN_W, 30, "Start"), //TODO Custom colors _btMore((SCREEN_W/2)-50, SCREEN_H-30, 100, 30, "More"), _nlbTs( SCREEN_W/2, 26, "Cycle Time (us):%d", *Ts, Label::CENTER), _gXPos( 0, 40, SCREEN_W/2, 158, -170, 170, "X Position (mm)"), @@ -53,11 +53,17 @@ //TODO Add AutomaticMoreScreen } - if( _btStart.Touched() ) + + + if( _btStart.IsActive() ) { - //TODO Add Start logic + if( _btStart.Touched() ) + { + //TODO Add Start logic + } } + if( _btStop.Touched() ) { //TODO Add stop logic