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: mbed
Diff: main.cpp
- Revision:
- 1:809739a3f957
- Parent:
- 0:d03036f0954c
- Child:
- 2:ce0c9da29c7d
--- a/main.cpp Tue Aug 29 10:56:53 2017 +0000
+++ b/main.cpp Tue Aug 29 11:02:13 2017 +0000
@@ -1,19 +1,19 @@
#include "mbed.h"
-DigitalOut led1(LED1), led2(LED2), led3(LED3), led4(LED4);
+DigitalOut ledExt1(p21), led2(LED2), led3(LED3), ledExt4(p24);
int main() {
- led1 = 1;
+ ledExt1 = 1;
wait(1.0);
led2 = 1;
wait(2.0);
- led1 = 0;
- led4 = 1;
+ ledExt1 = 0;
+ ledExt4 = 1;
wait(2.0);
- led2 = led4 = 0;
+ led2 = ledExt4 = 0;
wait(3.0);
- led1 = led2 = led3 = led4 = 1;
+ ledExt1 = led2 = led3 = ledExt4 = 1;
wait(2.0);
- led1 = led2 = led3 = led4 = 0;
+ ledExt1 = led2 = led3 = ledExt4 = 0;
}
\ No newline at end of file