First class MyLed with member initializer lists

Dependents:   class_blinky

MyLed.h

Committer:
bulmecisco
Date:
2020-10-06
Revision:
0:6a370b8037bf

File content as of revision 0:6a370b8037bf:

#include "mbed.h"
#ifndef MYLED_H
#define MYLED_H

// Klasse
class MyLed{
private:
    // Memebervariable
    DigitalOut _led;
    const int _wert;
public:
    // Konstruktor  
    MyLed(PinName led) : _led(led), _wert(0) {
    }
    // Methodenprototyping
    void ledOn();
    void ledOff();
    void printStatus();
};
#endif