Micro:Bit Advent Calendar Day 18 - Use More LEDs with micro:bit

Need help for the Micro:Bit Advent Calendar Day 18 (Use More LEDs with micro:bit )? Just post on this thread and our highly trained team of Micro:Bit ninjas will be able to help you in no time!

I’ve made some code to demonstrate pendulum waves using six LEDs:


https://makecode.microbit.org/_2UM85vTDtJ6A

Note that P3, P4 and P6 are used for the LED display matrix and P5 is button A, so we can’t use those devices at the same time as our LED display. More info on that here:
https://tech.microbit.org/hardware/edgeconnector_ds/