1 Uebung

Dependencies:   mbed

Revision:
0:928e720c71da
Child:
1:851c54e0d307
diff -r 000000000000 -r 928e720c71da main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Oct 06 15:22:13 2020 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+
+DigitalOut led(LED1);
+
+class MyClass{
+public:
+    MyClass(double messwert) : _messwert(messwert) {
+        _messwert = 0;
+    }
+private:
+    double _messwert;
+};
+
+
+int main() {
+    while (1) {
+        led = !led;
+        printf("Blink! LED is now %d\n", led.read());
+
+        wait_ms(500);
+    }
+}