to verify the position of the LEDs
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.
Diff: main.cpp
- Revision:
- 1:bd2be1824e78
- Parent:
- 0:699a0e5dc3ab
- Child:
- 2:71c7441b477a
--- a/main.cpp Mon Oct 21 03:37:28 2019 +0000 +++ b/main.cpp Mon Oct 21 04:17:54 2019 +0000 @@ -8,16 +8,20 @@ // 21 Oct 2019 DigitalOut col0(P0_4, 0); -DigitalOut myled1(P0_13); -DigitalOut myled2(P0_14); // guessing the layout of the LEDs ATM +//DigitalOut myled3(P0_12); // nothing +DigitalOut myled3(P0_15); // nothing +DigitalOut myled1(P0_13); // something +DigitalOut myled2(P0_14); // guessing the layout of the LEDs ATM int main() { while(1) { myled1 = 1; myled2 = 1; + myled3 = 1; wait(0.2); myled1 = 0; myled2 = 0; + myled3 = 0; wait(0.2); } }