member initializer list

Dependencies:   MyLed mbed

Files at this revision

API Documentation at this revision

Comitter:
bulmecisco
Date:
Tue Oct 06 15:32:30 2020 +0000
Child:
1:724f43e0a624
Commit message:
First program with member initializer lists

Changed in this revision

MyLed.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MyLed.lib	Tue Oct 06 15:32:30 2020 +0000
@@ -0,0 +1,1 @@
+MyLed#6a370b8037bf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Oct 06 15:32:30 2020 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "MyLed.h"
+
+// Objekt instanziieren
+MyLed myled(LED1);
+
+int main() {
+    while(1) {
+        // Aufruf der Methoden
+        myled.ledOn();
+        myled.printStatus();
+        wait(0.2);
+        myled.ledOff();
+        myled.printStatus();
+        wait(0.2);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Oct 06 15:32:30 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file