7. Case 05: Colorful Car¶
Build a colorful Wonder Rugged Kit with the rainbow LEDs.
micro:bit Wonder Rugged Kit
7.3. Background Knowledge¶
Click “Advanced” in the drawer of MakeCode to see more choices.
For programming, we need to add a package. Click “Extensions” at the bottom of the drawer and then search “Wukong” in the dialogue box to download it.
Note：If you get a warning indicating some packages will be removed because of incompatibility issues, you can follow the prompts or create a new project in the menu.
Wukong to choose
set light mode into
on start block and set the connection for servos accordingly, set the light mode as breath and initialize the LEDs.
Set the car to move forward with the variable
i ascending by 5; set the LEDs to show rainbow with the parameter in
The car moves forward after starting with the light mode in breath and rainbow LEDs changing color.