在410c上玩breakerball游戏具体实现
移动。
图9
点击scratch的右上角全屏图标进行全屏显示,你有15s时间来执行上面几个步骤,如果超过15s则程序会自动读取rotary传感器的数值,同时会传输"板"的位置信息。
整体效果是这样的,So easy!!!
图10
附录 Install脚本参考
sudo apt-get update
sudo apt-get dist-upgrade -u -y
sudo apt-get install -y man-db manpages manpages-dev
sudo apt-get install -y libpython-dev libpython3-dev python-dev
sudo apt-get install -y arduino-mk arduino
sudo apt-get install -y libmraa-dev libupm-dev libsoc-dev
sudo apt-get install -y scratch python-pip
pip install spidev
sudo apt-get clean
#extract the tar file
tar -vxf ~/breakerball.tar
#attempt t0 install the Arduino program on the Sensors board
cd breakerball_sensor
make upload
#place the appropriate icon on the desktop
if [ "$?" = "0" ]; then
sudo cp pyupm_i2clcd.py /usr/lib/python2.7/dist-packages/pyupm_i2clcd.py
cp ~/breakerball_sensor/go ~/Desktop/BreakerBall_Sensor
else
sudo dd if=~/boot-db410c.img of=/dev/mmcblk0p8
cp ~/breakerball_linker/go ~/Desktop/BreakerBall_Linker
fi
echo Issue the following command manually
echo sudo reboot now
DragonBoard 410c 开发板 相关文章: