树莓派sensehat画图游戏 Etch a sketch

114 阅读1分钟

目标

通过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语言 库

download.csdn.net/download/re…

源码

download.csdn.net/download/re…