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: FastPWM mbed QEI biquadFilter HIDScope MODSERIAL
main.cpp
- Committer:
- Ramonwaninge
- Date:
- 2018-09-24
- Revision:
- 0:3ea1bbfbeaae
- Child:
- 1:e40e981acbf1
File content as of revision 0:3ea1bbfbeaae:
#include "mbed.h" #include "FastPWM.h" Ticker motor; FastPWM pin5(D5); DigitalOut pin4(D4); float u =0.7f; void draai(){ pin4 = u>0.0f; pin5 = fabs(u); } int main() { pin5.period_us(60); motor.attach(draai, 1/16700); while (true){ pin5.write(u); } }