a
Dependencies: LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI
Diff: main.cpp
- Revision:
- 5:3c19c3ae6286
- Parent:
- 4:e48aee3e8d09
diff -r e48aee3e8d09 -r 3c19c3ae6286 main.cpp --- a/main.cpp Thu May 21 11:03:32 2020 +0000 +++ b/main.cpp Fri May 22 07:21:44 2020 +0000 @@ -3,11 +3,6 @@ #include "uart.h" #include "stepper.h" - -DigitalOut led_green(LED1); -DigitalOut led_red(LED2); - - int main() { Decoder MyDecoder; Uart MyUart; @@ -27,17 +22,15 @@ MyUart.puts(cIdentifier, BUFFER_SIZE); break; case (CLB): - led_green = !led_green; MyStepper.Callib(); MyUart.puts(cCorrectResponse, BUFFER_SIZE); break; case (GT): - led_red = !led_red; - MyStepper.Goto(4); + MyStepper.Goto(MyDecoder.uiGetNumber(1)); MyUart.puts(cCorrectResponse, BUFFER_SIZE); break; case (ST): - MyStepper.Step(5); + MyStepper.Step(MyDecoder.uiGetNumber(1)); MyUart.puts(cCorrectResponse, BUFFER_SIZE); break; default: