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.
main.cpp@2:ff5abf6d887c, 2016-11-22 (annotated)
- Committer:
- YTvW
- Date:
- Tue Nov 22 10:59:11 2016 +0000
- Revision:
- 2:ff5abf6d887c
- Parent:
- 0:a4507a30f549
- Child:
- 3:11ab070a3edb
aanmaak indicator.h
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| elektro101 | 0:a4507a30f549 | 1 | #include "mbed.h" |
| elektro101 | 0:a4507a30f549 | 2 | #include "rtos.h" |
| YTvW | 2:ff5abf6d887c | 3 | #include "indicator.h" |
| elektro101 | 0:a4507a30f549 | 4 | |
| YTvW | 2:ff5abf6d887c | 5 | |
| YTvW | 2:ff5abf6d887c | 6 | DigitalIn knop(p8); |
| elektro101 | 0:a4507a30f549 | 7 | DigitalOut myled(LED1); |
| YTvW | 2:ff5abf6d887c | 8 | DigitalOut led2(LED2); |
| YTvW | 2:ff5abf6d887c | 9 | DigitalOut led3(LED3); |
| YTvW | 2:ff5abf6d887c | 10 | |
| YTvW | 2:ff5abf6d887c | 11 | |
| YTvW | 2:ff5abf6d887c | 12 | |
| elektro101 | 0:a4507a30f549 | 13 | |
| elektro101 | 0:a4507a30f549 | 14 | int main() { |
| YTvW | 2:ff5abf6d887c | 15 | Thread indicator(led.indicator_thread(); |
| YTvW | 2:ff5abf6d887c | 16 | Indicator led(LED4); |
| elektro101 | 0:a4507a30f549 | 17 | while(1) { |
| elektro101 | 0:a4507a30f549 | 18 | myled = 1; |
| elektro101 | 0:a4507a30f549 | 19 | wait(0.2); |
| elektro101 | 0:a4507a30f549 | 20 | myled = 0; |
| elektro101 | 0:a4507a30f549 | 21 | wait(0.2); |
| elektro101 | 0:a4507a30f549 | 22 | } |
| elektro101 | 0:a4507a30f549 | 23 | } |