lab01-led1-flash

Revision:
0:e6e8eca04ce7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Apr 12 09:25:27 2020 +0000
@@ -0,0 +1,22 @@
+/* mbed Microcontroller Library
+ * Copyright (c) 2019 ARM Limited
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+#include "mbed.h"
+
+// Blinking rate in milliseconds
+DigitalOut led1(LED1);
+
+int main()
+{
+    // Initialise the digital pin LED1 as an output
+    
+
+    while (true) {
+        led1 = 0;   //led on == led1.write(0);
+        thread_sleep_for(500);
+        led1 = 1;   //led off
+        thread_sleep_for(500);
+    }
+}