-
Notifications
You must be signed in to change notification settings - Fork 25
Installation and Usage
Allison edited this page May 6, 2019
·
6 revisions
Explicitly importing R64.GPIO (recommended):
- Download the entire "R64" folder from the repo.
- Place the "R64" folder in "/usr/local/lib/python2.7/dist-packages/"
- Mark all .py files within the "R64" folder, and subfolders, as executable (
chmod +x
). - Within your script, substitute "
import R64.GPIO as GPIO
" in place of "import RPi.GPIO as GPIO
".
Spoofing RPi.GPIO:
- Symlink the "R64" folder to "RPi" (
ln -s /usr/local/lib/python2.7/dist-packages/R64 /usr/local/lib/python2.7/dist-packages/RPi
) - Importing via "
import RPi.GPIO as GPIO
" should now work as expected.
Once imported, syntax for implemented functions should be identical to RPi.GPIO.