Chaser effect
We can prepare a program for the chaser effect. The chaser effect is created by multiple LEDs blinking one after another in rapid succession. Connect LEDs to pins 0, 1, 2, 8, 9, 12, 13, 14, 15, and 16. I won’t give you the circuit diagram this time as I believe that by now, you can comfortably understand how to prepare a simple circuit by following the description. We can blink the LEDs together with the following program:
from microbit import * pins = [pin0, pin1, pin2, pin8, pin9, pin12, pin13, pin14, pin15, pin16] try: while True: for pin in pins: pin.write_digital(1) sleep(1000) ...