einfaches Lauflicht

Dependencies:   mbed

https://os.mbed.com/teams/ABELI2019/code/Robin-Handy/wiki/Homepage#ledfunc

Committer:
rob117
Date:
Fri Dec 06 19:50:49 2019 +0000
Revision:
0:f07819054cc6
test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rob117 0:f07819054cc6 1 #include "mbed.h"
rob117 0:f07819054cc6 2
rob117 0:f07819054cc6 3 DigitalOut myled(LED1);
rob117 0:f07819054cc6 4 DigitalOut myled2(LED2);
rob117 0:f07819054cc6 5 DigitalOut myled3(LED3);
rob117 0:f07819054cc6 6 DigitalOut myled4(LED4);
rob117 0:f07819054cc6 7
rob117 0:f07819054cc6 8 int main() {
rob117 0:f07819054cc6 9 while(1) {
rob117 0:f07819054cc6 10 myled = 1;
rob117 0:f07819054cc6 11 wait(0.2);
rob117 0:f07819054cc6 12 myled = 0;
rob117 0:f07819054cc6 13 myled2 = 1;
rob117 0:f07819054cc6 14 wait(0.2);
rob117 0:f07819054cc6 15 myled2 = 0;
rob117 0:f07819054cc6 16 myled3 = 1;
rob117 0:f07819054cc6 17 wait(0.2);
rob117 0:f07819054cc6 18 myled3 = 0;
rob117 0:f07819054cc6 19 myled4 = 1;
rob117 0:f07819054cc6 20 wait(0.2);
rob117 0:f07819054cc6 21 myled4 = 0;
rob117 0:f07819054cc6 22
rob117 0:f07819054cc6 23
rob117 0:f07819054cc6 24 }
rob117 0:f07819054cc6 25 }