Skip to main content

Case 40: The Bow

Purpose​

To make a bow.

ELECFREAKS micro:bit 32 IN 1 Wonder Building Kit

Materials required​

Assembly Steps​

Hardware Connections​

Programming Platform​

MakeCode

Programming​

Extensions​

Click Advanced in MakeCode's code drawer to see more code options and click on Extensions.

Search for wukong in the search box, click on wukong in the image and add the expansion pack.

Code​

Link: https://makecode.microbit.org/_4U1CcwP1bCXi

Result​

After turning it on, when you press button A on the micro:bit, the crossbow turns left, and when you press button B on the micro:bit, the crossbow turns right. When the logo is touched, the building blocks are fired.