to verify the position of the LEDs

Dependencies:   mbed

This is an attempt to address all the 25 LEDs. This has been done but only on rows. I need to arrange the column calls in some form of array which can be indexed.

Revision:
0:699a0e5dc3ab
Child:
1:bd2be1824e78
diff -r 000000000000 -r 699a0e5dc3ab main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Oct 21 03:37:28 2019 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+/*
+ * All the LEDs on the micro:bit are part of the LED Matrix,
+ * In order to get simple blinking behaviour, we set column 0
+ * to be permanently at ground. If you want to use the LEDs as
+ * a screen, there is a display driver in the micro:bit 'DAL',
+ */
+// 21 Oct 2019
+DigitalOut col0(P0_4, 0);
+
+DigitalOut myled1(P0_13);
+DigitalOut myled2(P0_14);  // guessing the layout of the LEDs ATM
+int main()
+{
+    while(1) {
+        myled1 = 1;
+        myled2 = 1;
+        wait(0.2);
+        myled1 = 0;
+        myled2 = 0;
+        wait(0.2);
+    }
+}