knut kristensen / Mbed 2 deprecated prosjektoppgave_alarm

Dependencies:   mbed

Fork of prosjektoppgave_alarm by PnM_spring17

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?

UserRevisionLine numberNew 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 }