
mbed2 pre-final
Dependencies: LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI
Diff: servo_gui.cpp
- Revision:
- 4:a8494b656292
- Parent:
- 2:7dc265489818
--- a/servo_gui.cpp Mon Jun 15 16:26:47 2020 +0000 +++ b/servo_gui.cpp Mon Jun 15 17:31:23 2020 +0000 @@ -1,7 +1,6 @@ #include "servo_gui.h" #define PI 3.14159 -#define SERVO_FREQUENCY 50 extern DigitalIn UserButton; @@ -10,10 +9,6 @@ lcd.Clear(LCD_COLOR_WHITE); DrawServo(); - uiMarkerStartPos = 0; - uiMarkerPos = 0; - ucLedPos = 0; - lcd.SetTextColor(LCD_COLOR_BLACK); unsigned char ucLedXpos = 55; for(unsigned char ucLedCounter = 0; ucLedCounter < 4; ucLedCounter++) { @@ -65,10 +60,8 @@ break; } LedOn(uiLedPoint % 4); - // wait(0.01); uiMarkerPos = uiMarkerPos % 360; DrawServo(); - //wait(0.01); DrawMarker(uiMarkerPos); }