Lehrer Busch
/
120_robot_H_Bridge8835_UserButton_DIR_PWM_I2C_LCD
120_robot_H_Bridge8835_UserButton_DIR_PWM_I2C_LCD
Revision 1:821dba977886, committed 2022-02-15
- Comitter:
- itbusch
- Date:
- Tue Feb 15 16:15:14 2022 +0000
- Parent:
- 0:3ace550537fc
- Commit message:
- 120_robot_H_Bridge8835_UserButton_DIR_PWM_I2C_LCD
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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