Welcome to the DFRobot blog
:
www.dfrobot.com/blog-tag-microbit.html
78
/
86
1
×
USB cable
Connection
Connect the RGB LED strip to P1.
Program
STEP 1: First, we will need to let micro:bit randomly generate some movements to simulate the
maze. Also, micro:bit should be able to know which way it tilts. If the two directions match, 1 point
will be added to the final score, which means that we are 1 step closer from escaping the maze.
The following flow chart may be helpful in explaining how the program works.