Lehrer Busch
/
100_robot_H_Bridge8835_UserButton_DIR_AA
100_robot_H_Bridge8835_UserButton_DIR_AA
Diff: main.cpp
- Revision:
- 1:9607517715ab
- Parent:
- 0:b779bcf836fa
- Child:
- 2:10ec20267264
--- a/main.cpp Mon Jan 31 06:12:30 2022 +0000 +++ b/main.cpp Fri Feb 04 13:20:59 2022 +0000 @@ -1,10 +1,8 @@ -/* mbed BuschA - */ +/* mbed BuschA*/ #include "mbed.h" -DigitalIn CableSwitch(D2); //PullUp auf Board, PA_10 - +DigitalIn User_Button(PC_13); //PullUp auf Board, PC13 DigitalOut M1_DIR(D7); DigitalOut M1_PWM(D9); @@ -13,7 +11,7 @@ while (1) { - if (CableSwitch == false) + if (User_Button == false) { M1_DIR = 1; M1_PWM = 1;