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.
Fork of prosjektoppgave_alarm by
main.cpp@0:0aa2d9849f98, 2017-01-17 (annotated)
- Committer:
- mathimat
- Date:
- Tue Jan 17 18:29:57 2017 +0000
- Revision:
- 0:0aa2d9849f98
- Child:
- 1:fbad5dc82abd
Prosjektoppgave i Programmering og Mikrokontrollere
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mathimat | 0:0aa2d9849f98 | 1 | #include "mbed.h" |
mathimat | 0:0aa2d9849f98 | 2 | |
mathimat | 0:0aa2d9849f98 | 3 | DigitalOut myled(LED1); |
mathimat | 0:0aa2d9849f98 | 4 | |
mathimat | 0:0aa2d9849f98 | 5 | int main() { |
mathimat | 0:0aa2d9849f98 | 6 | while(1) { |
mathimat | 0:0aa2d9849f98 | 7 | myled = 1; |
mathimat | 0:0aa2d9849f98 | 8 | wait(0.2); |
mathimat | 0:0aa2d9849f98 | 9 | myled = 0; |
mathimat | 0:0aa2d9849f98 | 10 | wait(0.2); |
mathimat | 0:0aa2d9849f98 | 11 | } |
mathimat | 0:0aa2d9849f98 | 12 | } |