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:
- 2:d8a552d1d33a
- Parent:
- 1:e40e981acbf1
- Child:
- 3:d39285fdd103
--- a/main.cpp Tue Sep 25 14:08:24 2018 +0000 +++ b/main.cpp Tue Sep 25 14:08:49 2018 +0000 @@ -4,18 +4,18 @@ Ticker motor; +Ticker motor; FastPWM pin5(D5); -DigitalOut pin4(D4); -float u =0.7f; +AnalogOut pot1(pot1); +AnalogOut pot2(pot2); +float u = pot1 - pot2; + int main(){ pin5.period_us(60); - while (true){ - pin4 = 1; - pin5 = u; - } +