Welcome to the DFRobot blog
:
www.dfrobot.com/blog-tag-microbit.html
28
/
86
STEP 4: By putting together all the functions mentioned as above, we will have the following
program. What the program does is to detect the status of the button, and lights up the LED when
the button is pressed.
Task 2
;
Knob controlled LED
Goal: in the part, we will not only control the LED from on to off, but also use the knob to change its
brightness.
STEP 1: Connect the circuit as below. The button module used in task1 is now replaced by the knob
module.