110_robot_H_Bridge8835_UserButton_DIR_PWM

main.cpp

Committer:
itbusch
Date:
2022-02-24
Revision:
2:5d1d6ad41669
Parent:
1:2849454dd0ab

File content as of revision 2:5d1d6ad41669:

/* mbed BuschA*/

#include "mbed.h"

DigitalIn User_Button(PC_13); //PullUp auf Board, PC13
PwmOut M1_PWM(D9);          
DigitalOut M1_DIR(D7);


int main()
{
  M1_PWM.period_ms(10);        // PWM-Periode
    while (1) 
    {
    if (User_Button == false)
        {
        //Ergänzen Sie
        }
    else
        {
       //Ergänzen Sie
        }
    }
}