since: 2016/01/22
update: 2016/01/22
reference:
1. Raspberry Pi and IOIO Board | PIXEL: LED ART
2. PIXEL Console App | PIXEL: LED ART
3. Overview | Web Enabled PIXEL on Raspberry Pi | Adafruit Learning System
4. Raspberry Pi and PIXEL | PIXEL: LED ART
5. RPiBlog: Installing Oracle JDK 8 on Raspberry Pi
A. Download the udev rules file.
1. 到 Downloads · ytai/ioio Wiki , 下載 Linux 版的檔案: 50-ioio.rules (另存新檔)
其內容為:
ACTION=="add", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="0008", SYMLINK+="IOIO%n", MODE="666"
ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="0008", ENV{ID_MM_DEVICE_IGNORE}="1"
2. 將 50-ioio.rules 上傳到 pi 裡:
$ scp 50-ioio.rules pi@192.168.1.24:/home/pi
3. copy it to your rules directory (one time step)
$ sudo cp 50-ioio.rules /etc/udev/rules.d
4. restart udev
$ sudo restart udev
(or $ sudo /etc/init.d/udev restart)
-----------------------------------------------------------------------------------------------
B. Check IOIO recognized status
1. Plug your IOIO into a free USB port on the Raspberry Pi
2. check if it’s recognized using this command
$ ls /dev/IOIO*
/dev/IOIO0
-----------------------------------------------------------------------------------------------
C. Install Java on your Pi
1. for pi 1:
$ sudo apt-get install openjdk-7-jre
2. for pi 2:
$ sudo apt-get install openjdk-8-jre
3. 備註:
切換使用不同版本的 java 方式: (如果有安裝不同的版本)
$ sudo update-alternatives --config java
-----------------------------------------------------------------------------------------------
D. 安裝 avahi-daemon
$ sudo apt-get install avahi-daemon
-----------------------------------------------------------------------------------------------
E. Check PIXEL recognized status
1.Move the toggle switch on the side of PIXEL from the “Bluetooth” position to the “PC” position
2. Plug PIXEL into a free USB port on your Raspberry Pi using the included USB A-A cable.
3. Then check if it’s recognized using this command:
$ ls /dev/ttyACM0*
/dev/ttyACM0
-----------------------------------------------------------------------------------------------
F. 下載 PIXEL Console App
http://ledpixelart.com/console/
1. 在此使用 PIXEL: Console V2.0 版本
2. 上傳到 pi 裡:
$ scp pixelc_2_0.jar pi@192.168.1.24:/home/pi
-----------------------------------------------------------------------------------------------
G. 測試:
先將 pixelc_2_0.jar 更名成: pixelc.jar
1. $ java -jar -Dioio.SerialPorts=/dev/IOIO0 pixelc.jar --gif=black.gif
2. $ java -jar -Dioio.SerialPorts=/dev/IOIO0 pixelc.jar --gif=black.gif --write
3. $ java -jar -Dioio.SerialPorts=/dev/IOIO0 pixelc.jar -–zip=95050
4. $ java -jar -Dioio.SerialPorts=/dev/ttyACM0 pixelc.jar --gif=black.gif
5. $ java -jar pixelc.jar --gif=fire.gif
6. $ java -jar pixelc.jar -–zip=95050
-----------------------------------------------------------------------------------------------
H. 其他:
套件更新:
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
$ sudo rpi-update
others:
$ sudo apt-cache search openjdk
$ sudo apt-get install openjdk-7-jdk
$ sudo update-alternatives --config javac
沒有留言:
張貼留言
注意:只有此網誌的成員可以留言。