1
0
mirror of https://github.com/xtacocorex/CHIP_IO synced 2025-07-20 04:43:21 +00:00

Fixing the code to handle pulling the right XIO base number due to the change in the CHIP OS 1.1 with the 4.4 kernel, thanks to howientc and fordsfords for their help

This commit is contained in:
Robert Wolterman
2016-06-18 14:34:41 -05:00
parent 133453c57e
commit 818be5202e
3 changed files with 133 additions and 48 deletions

View File

@ -6,7 +6,7 @@ Manual::
sudo ntpdate pool.ntp.org
sudo apt-get update
sudo apt-get install build-essential python-dev python-pip -y
sudo apt-get install git build-essential python-dev python-pip -y
git clone git://github.com/xtacocorex/CHIP_IO.git
cd CHIP_IO
sudo python setup.py install
@ -65,6 +65,12 @@ Detecting events::
if GPIO.event_detected("XIO-P0"):
print "event detected!"
**GPIO Cleanup**
To clean up the GPIO when done, do the following::
GPIO.cleanup()
**PWM**::
import CHIP_IO.PWM as PWM
@ -106,10 +112,7 @@ Use SOFTPWM at low speeds (hundreds of Hz) for the best results. Do not use for
Install py.test to run the tests. You'll also need the python compiler package for py.test.::
opkg update && opkg install python-compiler
#Either pip or easy_install
pip install -U pytest
easy_install -U pytest
sudo apt-get install python-pytest
Execute the following in the root of the project::