Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
- Committer:
- itbusch
- Date:
- 2022-01-31
- Revision:
- 0:b779bcf836fa
- Child:
- 1:9607517715ab
File content as of revision 0:b779bcf836fa:
/* mbed BuschA
*/
#include "mbed.h"
DigitalIn CableSwitch(D2); //PullUp auf Board, PA_10
DigitalOut M1_DIR(D7);
DigitalOut M1_PWM(D9);
int main()
{
while (1)
{
if (CableSwitch == false)
{
M1_DIR = 1;
M1_PWM = 1;
}
else
{
M1_DIR = 0;
M1_PWM = 1;
}
}
}