![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
120_robot_H_Bridge8835_UserButton_DIR_PWM_I2C_LCD
Diff: main.cpp
- Revision:
- 1:821dba977886
- Parent:
- 0:3ace550537fc
--- a/main.cpp Mon Jan 31 17:02:41 2022 +0000 +++ b/main.cpp Tue Feb 15 16:15:14 2022 +0000 @@ -4,7 +4,7 @@ #include "LCD_Bua.h" // Set the LCD address to 0x27 for a 16 chars and 2 line display -DigitalIn CableSwitch(D2); //PullUp auf Board, PA_10 +DigitalIn User_Button(PC_13); //PullUp auf Board, PC13 int main() @@ -14,7 +14,7 @@ while (true) { - if (CableSwitch == false) + if (User_Button == false) { M1_DIR = 1; M1_PWM = 0.5; //Tastgrad 0-1