树莓派sensehat画图游戏 Etch a sketch

目标

通过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画图游戏 Etch a sketch_第1张图片

sensehat C语言 库

https://download.csdn.net/download/renzemingcsdn/54851536

源码

https://download.csdn.net/download/renzemingcsdn/62579279

你可能感兴趣的:(嵌入式Linux,树莓派,C语言)