Power & Source of Big Ideas

RPi.GPIO

Moderators: chensy, FATechsupport

According to the wiki, there is a package for it, but I cannot find it

Code: Select all

 python 
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import RPi.GPIO
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named RPi.GPIO
I have found the RPi.GPIO in the latest image.

It works for basic usage, but is not correctly implemented for callbacks on pin changes. Where is the source code?


Also, I finally got spi working. There is a maximum write of 64 bytes?! I had no problem writing 504 byts in 1 syscall on the raspberry. Writing repeatedly 64 bytes seemrf to work.


After a while, the sclk pin stopped working. The pin is now completely burned out. It cannot even work for input or output as a gpio. I am now bit-banging spi instead using different pins which works using a lot more cpu.

Who is online

In total there are 21 users online :: 0 registered, 0 hidden and 21 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 21 guests