24. Case 22: The Helicopter¶
24.3. Materials Required¶
24.4. Bricks build-up¶
24.5. Hardware Connection¶
Connect a motor to M2 port on Wukong breakout board.
24.7. Coding¶
Add extensions¶
Click “Advanced” in the MakeCode to see more choices.
Search with Wukong in the dialogue box to download it.
Program¶
Result¶
When button A is pressed, the micro:bit displays a heart pattern and the helicopter propeller starts to rotate; when button B is pressed, the micro:bit screen is cleared and the helicopter propeller stops rotating.