Runlight

Committer:
martwerl
Date:
Wed Jun 20 13:40:38 2018 +0000
Revision:
0:1836b0410ef1
Runlight

Who changed what in which revision?

UserRevisionLine numberNew contents of line
martwerl 0:1836b0410ef1 1 #include "mbed.h"
martwerl 0:1836b0410ef1 2 #ifndef LAUFLICHT_H
martwerl 0:1836b0410ef1 3 #define LAUFLICHT_H
martwerl 0:1836b0410ef1 4
martwerl 0:1836b0410ef1 5 class LaufLicht
martwerl 0:1836b0410ef1 6 {
martwerl 0:1836b0410ef1 7 public:
martwerl 0:1836b0410ef1 8 LaufLicht(PinName pin, PinName pin2, PinName pin3, PinName pin4 ) : _pin(pin) , _pin2(pin2), _pin3(pin3), _pin4(pin4) // initialisierungsliste ( muss gleich heissen wie der Konstruktor )
martwerl 0:1836b0410ef1 9 {
martwerl 0:1836b0410ef1 10 _pin=0;
martwerl 0:1836b0410ef1 11 _pin2=0;
martwerl 0:1836b0410ef1 12 _pin3=0;
martwerl 0:1836b0410ef1 13 _pin4=0;
martwerl 0:1836b0410ef1 14 }
martwerl 0:1836b0410ef1 15
martwerl 0:1836b0410ef1 16
martwerl 0:1836b0410ef1 17
martwerl 0:1836b0410ef1 18 void ledOff(void);
martwerl 0:1836b0410ef1 19
martwerl 0:1836b0410ef1 20 void ledOn1(void);
martwerl 0:1836b0410ef1 21
martwerl 0:1836b0410ef1 22 void ledOn2(void);
martwerl 0:1836b0410ef1 23
martwerl 0:1836b0410ef1 24 void ledOn3(void);
martwerl 0:1836b0410ef1 25
martwerl 0:1836b0410ef1 26 void ledOn4(void);
martwerl 0:1836b0410ef1 27
martwerl 0:1836b0410ef1 28 void printStatus(void);
martwerl 0:1836b0410ef1 29 private:
martwerl 0:1836b0410ef1 30 DigitalOut _pin;
martwerl 0:1836b0410ef1 31 DigitalOut _pin2;
martwerl 0:1836b0410ef1 32 DigitalOut _pin3;
martwerl 0:1836b0410ef1 33 DigitalOut _pin4;
martwerl 0:1836b0410ef1 34 };
martwerl 0:1836b0410ef1 35 #endif