Skip to content

Installation and Usage

Allison edited this page May 6, 2019 · 6 revisions

Explicitly importing R64.GPIO (recommended):

  1. Download the entire "R64" folder from the repo.
  2. Place the "R64" folder in "/usr/local/lib/python2.7/dist-packages/"
  3. Mark all .py files within the "R64" folder, and subfolders, as executable (chmod +x).
  4. Within your script, substitute "import R64.GPIO as GPIO" in place of "import RPi.GPIO as GPIO".

Spoofing RPi.GPIO:

  1. Symlink the "R64" folder to "RPi" ( ln -s /usr/local/lib/python2.7/dist-packages/R64 /usr/local/lib/python2.7/dist-packages/RPi )
  2. Importing via "import RPi.GPIO as GPIO" should now work as expected.

Once imported, syntax for implemented functions should be identical to RPi.GPIO.

Clone this wiki locally