目标
通过sensehat的手柄移动光标,led点阵相当于屏幕,按下按键,切换颜色,摇动树莓派清屏。
Etch a sketch
Press the joystick button to cycle through colors (at least red, green, blue, white, unlit). Move thejoystick to draw with the chosen color. Shake the Pi to erase the screen (using the accelerometer).
效果
sensehat C语言 库
https://download.csdn.net/download/renzemingcsdn/54851536