First class MyLed with member initializer lists

Dependents:   class_blinky

Revision:
0:6a370b8037bf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MyLed.h	Tue Oct 06 15:32:23 2020 +0000
@@ -0,0 +1,20 @@
+#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
\ No newline at end of file