Page 1 of 1

RPi.GPIO

Posted: Sat Jun 10, 2017 4:08 pm
by seandepagnier
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

Re: RPi.GPIO

Posted: Sun Jun 11, 2017 5:08 pm
by seandepagnier
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.