Lehrer Busch
/
100_robot_H_Bridge8835_UserButton_DIR_AA
100_robot_H_Bridge8835_UserButton_DIR_AA
main.cpp@2:10ec20267264, 2022-02-24 (annotated)
- Committer:
- itbusch
- Date:
- Thu Feb 24 06:38:54 2022 +0000
- Revision:
- 2:10ec20267264
- Parent:
- 1:9607517715ab
100_robot_H_Bridge8835_UserButton_DIR_AA
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
itbusch | 1:9607517715ab | 1 | /* mbed BuschA*/ |
itbusch | 0:b779bcf836fa | 2 | |
itbusch | 0:b779bcf836fa | 3 | #include "mbed.h" |
itbusch | 0:b779bcf836fa | 4 | |
itbusch | 1:9607517715ab | 5 | DigitalIn User_Button(PC_13); //PullUp auf Board, PC13 |
itbusch | 0:b779bcf836fa | 6 | DigitalOut M1_DIR(D7); |
itbusch | 0:b779bcf836fa | 7 | DigitalOut M1_PWM(D9); |
itbusch | 0:b779bcf836fa | 8 | |
itbusch | 0:b779bcf836fa | 9 | int main() |
itbusch | 0:b779bcf836fa | 10 | { |
itbusch | 0:b779bcf836fa | 11 | |
itbusch | 0:b779bcf836fa | 12 | while (1) |
itbusch | 0:b779bcf836fa | 13 | { |
itbusch | 1:9607517715ab | 14 | if (User_Button == false) |
itbusch | 0:b779bcf836fa | 15 | { |
itbusch | 2:10ec20267264 | 16 | //Ergänzen Sie |
itbusch | 0:b779bcf836fa | 17 | } |
itbusch | 0:b779bcf836fa | 18 | else |
itbusch | 0:b779bcf836fa | 19 | { |
itbusch | 2:10ec20267264 | 20 | //Ergänzen Sie |
itbusch | 0:b779bcf836fa | 21 | } |
itbusch | 0:b779bcf836fa | 22 | } |
itbusch | 0:b779bcf836fa | 23 | } |