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.cpp	Tue Oct 06 15:32:23 2020 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "MyLed.h"
+
+// Methoden oder Memberfunktions
+void MyLed::ledOn() {
+    _led = 1;
+}
+
+void MyLed::ledOff() {
+    _led = _wert;
+}
+
+void MyLed::printStatus() {
+    printf("Led is now: %d\n", _led.read());
+}
\ No newline at end of file