Programming Milestone Group 7 BMT M9
Dependencies: FastPWM MODSERIAL mbed
Diff: main.cpp
- Revision:
- 5:92360cb2e0e4
- Parent:
- 4:a4cd6f9c851d
- Child:
- 6:b5fc5007f228
diff -r a4cd6f9c851d -r 92360cb2e0e4 main.cpp --- a/main.cpp Wed Sep 26 16:33:53 2018 +0000 +++ b/main.cpp Wed Sep 26 16:41:28 2018 +0000 @@ -1,7 +1,6 @@ #include "mbed.h" #include "FastPWM.h" #include "MODSERIAL.h" -MODSERIAL pc(USBTX, USBRX); Ticker motor; // Ticker function FastPWM pwmpin1(D5); // SPECIFIC PIN (hoeft niet aangesloten te worden) Tells you how fast the motor has to go (later: pwmpin.write will tell you the duty cycle, aka how much voltage the motor gets)