Welcome to the DFRobot blog
:
www.dfrobot.com/blog-tag-microbit.html
36
/
86
STEP 3: The fan module is now used as an analog output module, and its value is also ranged from
0-1023. The "analog write" function can be found under “Pins”
STEP4
:
Put the “analog read” function into “analog write”, and then place all of them into the
“forever” loop. The final program is as following: