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
Revision 0:d03036f0954c, committed 2017-08-29
- Comitter:
- Banyrud
- Date:
- Tue Aug 29 10:56:53 2017 +0000
- Child:
- 1:809739a3f957
- Commit message:
- ?vning1_oppgave_2a
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Aug 29 10:56:53 2017 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+
+DigitalOut led1(LED1), led2(LED2), led3(LED3), led4(LED4);
+
+
+int main() {
+ led1 = 1;
+ wait(1.0);
+ led2 = 1;
+ wait(2.0);
+ led1 = 0;
+ led4 = 1;
+ wait(2.0);
+ led2 = led4 = 0;
+ wait(3.0);
+ led1 = led2 = led3 = led4 = 1;
+ wait(2.0);
+ led1 = led2 = led3 = led4 = 0;
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Aug 29 10:56:53 2017 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed/builds/e2bfab296f20 \ No newline at end of file