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.
Dependencies: mbed
Motorsteuerung.cpp
- Committer:
- drummer
- Date:
- 2015-06-23
- Revision:
- 13:565aa2c6bd3d
- Parent:
- 12:bad33209d1bb
File content as of revision 13:565aa2c6bd3d:
#include "mbed.h" #include "Prototypen.h" PwmOut mypwm(PWM_OUT); //For output PWM-pin void motoransteuerung(){ mypwm.period_us(PERIODEN_DAUER); while(1) { if(break_value==0) { mypwm.pulsewidth_us(PERIODEN_DAUER*hall_umrechnung()); //How often to change between High and low per Period. } } }