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
Diff: main.cpp
- Revision:
- 1:e40e981acbf1
- Parent:
- 0:3ea1bbfbeaae
- Child:
- 2:d8a552d1d33a
diff -r 3ea1bbfbeaae -r e40e981acbf1 main.cpp --- a/main.cpp Mon Sep 24 15:20:12 2018 +0000 +++ b/main.cpp Tue Sep 25 14:08:24 2018 +0000 @@ -9,21 +9,13 @@ 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); - } +int main(){ + + pin5.period_us(60); + while (true){ + pin4 = 1; + pin5 = u; + }