14. Case 13: Remote Control with micro:bit Accelerometer¶
Programme to control the TPBot with the accelerometer.
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 search 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.
Radio send x which is given by its acceleration dividing 10 in the forever brick.
Radio send y which is given by its acceleration dividing 10 in the forever brick.