Elecrow on-line store, make your making easier.
https://www.elecrow.com/
Lesson 1,How to use button control LED
This is a easy experiment, everyone will easy handle it. Connect Crowtail- LED to the P2
interface, upload the bellow code to micro:bit, then click the button A on the micro:bit, the LED
will light.
Material:
Micro:bit
x1
Crowtail- Base Shield for Micro:bit
x1
Crowtail- LED
x1
Sofware:
Lesson2, Brightness Measurement
Our eyes can sense the brightness of the light, but it not a accurate value, just a sense, now
let us begin to measure the brightness. Please connect Crowtail- Light sensor to P2 interface,
upload the bellow code to micro:bit. You will see the brightness value on the LED dot matrix.
input.onButtonPressed(Button.A,
() => {
pins.digitalWritePin(DigitalPin.P2,
1)
basic.pause(500)
pins.digitalWritePin(DigitalPin.P2,
0)
basic.pause(500)
})