Welcome to the DFRobot blog
:
www.dfrobot.com/blog-tag-microbit.html
30
/
86
STEP 4
:
Now, all what we need is to link the input directly to the output so that the LED will be under
control of the knob. Put the “analog read” function inside the “analog write” function, then put
them all inside the “forever” loop, and we are done. The final program is shown as bellow.
Exercise:
Make your LED more like a real lamp!