Story
This project uses the Unihiker K10’s built-in accelerometer to move a dot on the screen depending on how the device is tilted.
The accelerometer’s X and Y values are mapped to screen coordinates, and the dot shifts smoothly as you rotate the device.
How it works:
-
Read accelerometer X/Y values each loop.
-
Convert them into screen positions (
mind_n_moveX,mind_n_moveY). -
Draw a green circle at the new position.
-
Immediately erase the old one by drawing a white circle behind it.
This creates a simple yet interactive tilt-control demo, perfect for learning IMU basics, motion-based UI, or game mechanics on the Unihiker K10.






