For the original version of this article, click here
Thanks to Anonymous user that has translated it
# Use a web browser to download the file:
# http://downloads.openwrt.org/
# In a Host (Mac/Windows/Linux) Bash shell:
cd {to the directory where you downloaded the *.ipk file}
tar xvfz pyserial_2.4-1_x86.ipk
tar xvfz data.tar.gz
cd ./usr/lib/python2.6/site-
tar -czf serial.tar.gz serial
# Copy the focused *.gz to the Galileo
scp serial.tar.gz root@{Your Galileo IP Address}:/usr/lib/python2.7/
# Log into the Galileo using SSH
ssh root@{Your Galileo IP Address}
cd /usr/lib/python2.7/site-
tar xvf serial.tar.gz
######################
# Test Installation on the Galileo
######################
# Launch Python
python
# Load the Serial libary
import serial
Nessun commento:
Posta un commento