iwasp.eu
Published

Microbit Projects - Flashing LED by IWASP.EU

Simple Flashing LED. Visit the website for a full list of components, download the circuit diagram and MicroPython code.

BeginnerShowcase (no instructions)737
Microbit Projects - Flashing LED by IWASP.EU

Story

Read more

Schematics

Flashing LED Circuit

Code

Flashing LED Code

Python
# MICROBIT.IWASP.EU PROJECTS COPYRIGHT 2017
# SIMPLE FLASHING LED

from microbit import *

#flashing LED - connect pin 0 to LED & resistor - terminatng to ground

while True:

    pin0.write_digital(1)
    sleep(300)
    pin0.write_digital(0)
    sleep(300)
    

Credits

iwasp.eu
3 projects • 1 follower
Contact

Comments

Please log in or sign up to comment.