13. Case 12: micro:bit Remote Control¶
Programme to use the mciro:bit to control the TPBot.
Click “Advanced” to see more choices in the MakeCode drawer.
We need to add a package for programming. Click “Extensions” in the bottom of the drawer and seach with “tpbot” in the dialogue box to download it.
Remote Control Part¶
Set the micro:bit showing a set icon and the radio group as 1.
After pressing button A, radio send number 1; after pressing button B, radio send number 2; after pressing button A+B, radio send number 3.