Getting Started
Pre-coding:
Get hold of a Micro:bit Tinker Kit
Download the Mu editor
Before each project, write “from microbit import * ”
LED
Let the LED be connected to pin0CommandUsagepin0.read_digital()Check if LED is lighted or not
pin0.read_digital() = 0 # means LED is not lighted
pin0.read_digital() = 1 # means LED is lightedpin0.write_digital(value)Turn LED on or off
pin0.write_digital(1) # lights LED
pin0.write_digital(0) # turns LED off
Example: Blink
Pin Layout
LED: Pin0
We're Done!
Looking for more projects to tinker and explore? We’re a launch partner for IMDA’s Digital Maker Programme, where we’ve been developing micro:bit kits, apps, and conducting workshops for schools and the public in Singapore. Read more here, and get in touch if you’d like to join our workshops!