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@0:a4507a30f549, 2016-11-22 (annotated)
- Committer:
- elektro101
- Date:
- Tue Nov 22 09:00:27 2016 +0000
- Revision:
- 0:a4507a30f549
- Child:
- 1:1dbd572488f7
- Child:
- 2:ff5abf6d887c
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" |
| elektro101 | 0:a4507a30f549 | 3 | |
| elektro101 | 0:a4507a30f549 | 4 | DigitalIn knop(KNOB1); |
| elektro101 | 0:a4507a30f549 | 5 | DigitalOut myled(LED1); |
| elektro101 | 0:a4507a30f549 | 6 | |
| elektro101 | 0:a4507a30f549 | 7 | int main() { |
| elektro101 | 0:a4507a30f549 | 8 | while(1) { |
| elektro101 | 0:a4507a30f549 | 9 | myled = 1; |
| elektro101 | 0:a4507a30f549 | 10 | wait(0.2); |
| elektro101 | 0:a4507a30f549 | 11 | myled = 0; |
| elektro101 | 0:a4507a30f549 | 12 | wait(0.2); |
| elektro101 | 0:a4507a30f549 | 13 | } |
| elektro101 | 0:a4507a30f549 | 14 | } |