pl02

Revision:
0:6f2271b58851
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Feb 23 14:35:55 2021 +0000
@@ -0,0 +1,28 @@
+/* mbed Microcontroller Library
+ * Copyright (c) 2019 ARM Limited
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+#include "mbed.h"   //CGB
+#include <iostream>
+
+// Blinking rate in milliseconds
+
+extern "C" void delay_asm(void);
+
+int main()
+
+{
+    set_time(0);
+    
+    time_t seconds = time(NULL);
+    // Initialise the digital pin LED1 as an output
+    DigitalOut led(LED1);
+
+    while (true) {
+        
+        delay_asm();
+        cout << seconds << "**\n\r";
+        
+    }
+}