微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 硬件工程师文库 > 在410c上玩breakerball游戏具体实现

在410c上玩breakerball游戏具体实现

时间:02-28 来源:互联网 点击:

移动。

图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

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top