2Leds

Dependencies:   mbed

Committer:
mpickl
Date:
Thu Mar 26 12:35:29 2015 +0000
Revision:
1:8dbdcd41a812
Parent:
0:a688e3381853
de_Bertl

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mpickl 0:a688e3381853 1 #include "mbed.h"
mpickl 0:a688e3381853 2 #include "ur_Bertl.h"
mpickl 0:a688e3381853 3 #include "de_Bertl.h"
mpickl 1:8dbdcd41a812 4 #include "Led_Bertl.h"
mpickl 1:8dbdcd41a812 5
mpickl 1:8dbdcd41a812 6 //class de_Bertl : public ur_Bertl
mpickl 0:a688e3381853 7
mpickl 0:a688e3381853 8 void de_Bertl :: Bewege() // Definieren
mpickl 0:a688e3381853 9 {
mpickl 0:a688e3381853 10 Move();
mpickl 0:a688e3381853 11 }
mpickl 0:a688e3381853 12
mpickl 1:8dbdcd41a812 13 void de_Bertl :: DreheLinks()
mpickl 1:8dbdcd41a812 14 {
mpickl 1:8dbdcd41a812 15 TurnLeft();
mpickl 1:8dbdcd41a812 16 }
mpickl 1:8dbdcd41a812 17
mpickl 0:a688e3381853 18 void de_Bertl :: Turn2LedsOn()
mpickl 0:a688e3381853 19 {
mpickl 1:8dbdcd41a812 20 TurnLedOn(LED_FL1 | LED_FR1); // OR-Verknüpfung
mpickl 1:8dbdcd41a812 21 // 0000 0001
mpickl 1:8dbdcd41a812 22 // 0000 0100 OR
mpickl 1:8dbdcd41a812 23 // 0000 0101 5 oder 0x5
mpickl 0:a688e3381853 24 }