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:
- 19:1d0b25d4d775
- Parent:
- 14:e21cb701ccb8
- Child:
- 20:695140b8db2f
--- a/main.cpp Mon Oct 15 12:56:25 2018 +0000 +++ b/main.cpp Mon Oct 22 14:19:25 2018 +0000 @@ -31,10 +31,12 @@ DigitalOut pin7(D7); // Motor 1 direction //float u1 = pot1; +// Implementing libraries MODSERIAL pc(USBTX, USBRX); Ticker motor; float u3 = 0.0; // Normalised variable for the movement of motor 3 +// Functions void draaibuttons() { /* Pressing button 2 concludes in a change of speed. While button 1 is pressed, the direction of change of speed is reversed. So pressing button 1 and 2 @@ -93,6 +95,7 @@ pin3 = fabs(u3); } +// Main code int main() { pc.baud(115200);