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: MPU9150_DMP MotorControl QuaternionMath SimpleIOMacros mbed
Fork of cool_step_new by
Diff: main.cpp
- Revision:
- 1:7681221d0a5c
- Parent:
- 0:94acd21860e4
- Child:
- 2:182019316acc
diff -r 94acd21860e4 -r 7681221d0a5c main.cpp --- a/main.cpp Mon Apr 20 10:25:08 2015 +0000 +++ b/main.cpp Mon Apr 20 10:32:19 2015 +0000 @@ -1,12 +1,18 @@ #include "mbed.h" -DigitalOut myled(P2_7); +DigitalOut led1(P2_6); +DigitalOut led2(P2_7); +DigitalOut led3(P2_8); -int main() { +Ticker infoTicker; +void infoTask(void) +{ + led1=!led1; +} + +int main() +{ + infoTask.attach(infoTask,0.05f); while(1) { - myled = 1; - wait(0.2); - myled = 0; - wait(0.2); } }