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
main.cpp@2:ce0c9da29c7d, 2017-08-29 (annotated)
- Committer:
- Banyrud
- Date:
- Tue Aug 29 11:09:03 2017 +0000
- Revision:
- 2:ce0c9da29c7d
- Parent:
- 1:809739a3f957
- Child:
- 3:e5bb6ffbeef8
?ving1_oppgave_2c
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Banyrud | 0:d03036f0954c | 1 | #include "mbed.h" |
| Banyrud | 0:d03036f0954c | 2 | |
| Banyrud | 1:809739a3f957 | 3 | DigitalOut ledExt1(p21), led2(LED2), led3(LED3), ledExt4(p24); |
| Banyrud | 0:d03036f0954c | 4 | |
| Banyrud | 0:d03036f0954c | 5 | |
| Banyrud | 0:d03036f0954c | 6 | int main() { |
| Banyrud | 2:ce0c9da29c7d | 7 | while(1) { |
| Banyrud | 1:809739a3f957 | 8 | ledExt1 = 1; |
| Banyrud | 0:d03036f0954c | 9 | wait(1.0); |
| Banyrud | 0:d03036f0954c | 10 | led2 = 1; |
| Banyrud | 0:d03036f0954c | 11 | wait(2.0); |
| Banyrud | 1:809739a3f957 | 12 | ledExt1 = 0; |
| Banyrud | 1:809739a3f957 | 13 | ledExt4 = 1; |
| Banyrud | 0:d03036f0954c | 14 | wait(2.0); |
| Banyrud | 1:809739a3f957 | 15 | led2 = ledExt4 = 0; |
| Banyrud | 0:d03036f0954c | 16 | wait(3.0); |
| Banyrud | 1:809739a3f957 | 17 | ledExt1 = led2 = led3 = ledExt4 = 1; |
| Banyrud | 0:d03036f0954c | 18 | wait(2.0); |
| Banyrud | 1:809739a3f957 | 19 | ledExt1 = led2 = led3 = ledExt4 = 0; |
| Banyrud | 2:ce0c9da29c7d | 20 | wait(0.1); |
| Banyrud | 2:ce0c9da29c7d | 21 | } |
| Banyrud | 0:d03036f0954c | 22 | } |