Meowbit’s Accelerometer

Meowbit has a built-in accelerometer for measuring rotation and acceleration of the device, as well as detecting different gestures.


MakeCode Arcade Coding Tutorial


Load Controller Extension

Loading Extensions



Blocks for Controller Extension


Detecting rotation


The rotation value ranges from 0 to 1023.

Sample Code Link

Detecting gestures


Sample Code Link

Kittenblock Coding Tutorial


Blocks for onboard sensors


Getting the acceleration


Getting the rotational acceleration


Getting the tilting degree


../_images/accel7.png ../_images/accel8.png

Detecting gestures

The gestures can be detected in 2 ways.