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.
Revision 2:4eb08f46fc91, committed 2014-11-18
- Comitter:
- hjjeon
- Date:
- Tue Nov 18 02:22:12 2014 +0000
- Parent:
- 1:4f47e58cd882
- Commit message:
- Add comments
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 4f47e58cd882 -r 4eb08f46fc91 main.cpp
--- a/main.cpp Tue Nov 18 02:20:03 2014 +0000
+++ b/main.cpp Tue Nov 18 02:22:12 2014 +0000
@@ -3,16 +3,18 @@
#define FORWARD 0
#define BACKWARD 1
-DigitalOut myled(LED1);
int main() {
Serial pc(USBTX, USBRX);
pc.baud(115200);
+ // This program is for NXP LPC1768. If you use other platform, change pin number!! ============
PwmOut mypwm(p21);// NXP 1768 platform PWM output
DigitalOut direction(p5);// NXP 1768 platform GPIO pin #5 output
DigitalOut brake(p6);// NXP 1768 platform GPIO pin #6 output
+ DigitalOut myled(LED1);//For LED blinking.
+ //=============================================================================================
direction = FORWARD;// FORWARD == 0;.