Welcome to Building:bit Superkit repository
1.Sailing Prelude
Sailing Prelude
Sailing Prelude1. Learning Objectives2. Building Blocks3. Motor Wiring4. Code Analysis5. Write and download the program6. Experimental phenomenon
1. Learning Objectives
In this course, we mainly learn how to use Python programming to make the helicopter propeller rotate while the buzzer plays music.
2. Building Blocks
For the building block steps, please refer to the installation drawings of [Assembly course]-[Airplane] in the materials or the building block installation album.
3. Motor Wiring
Insert the motor wiring on the left side of the car into the M1 interface of the Super:bit expansion board, with the black wire close to the battery side;
As shown in the figure below:

4. Code Analysis
For the program of this course, please refer to the Airplane code.py file.
from microbit import *import musicimport superbitimport microbitimport neopixelFirst, import the libraries needed for this lesson from microbit: the superbit library is dedicated to the superbit expansion board; the music library is used to play music; and the neopixel is used to control the RGB light.