Public bug reported:
With Focal running on a Pi 4B accessing any GPIO over 26 causes an
exception:
$ python3
Python 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import RPi.GPIO as gpio
>>> print(gpio.VERSION)
0.6.5
>>> gpio.setmode(gpio.BOARD)
>>> gpio.setup(22, gpio.IN)
>>> gpio.setup(24, gpio.IN)
>>> gpio.setup(26, gpio.IN)
>>> gpio.setup(32, gpio.IN)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: The channel sent is invalid on a Raspberry Pi
Note that the above works fine on a Pi 3A+. Also, works fine on a Pi 4B
after installing python3-rpi.gpio from Groovy:
$ python3
Python 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import RPi.GPIO as gpio
>>> gpio.setmode(gpio.BOARD)
>>> print(gpio.VERSION)
0.7.0
>>> gpio.setmode(gpio.BOARD)
>>> gpio.setup(22, gpio.IN)
>>> gpio.setup(24, gpio.IN)
>>> gpio.setup(26, gpio.IN)
>>> gpio.setup(32, gpio.IN)
>>> gpio.setup(36, gpio.IN)
>>> gpio.setup(38, gpio.IN)
>>> gpio.setup(40, gpio.IN)
** Affects: rpi.gpio (Ubuntu)
Importance: Undecided
Status: New
** Affects: rpi.gpio (Ubuntu Focal)
Importance: Undecided
Status: New
** Also affects: rpi.gpio (Ubuntu Focal)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1901826
Title:
Accessing GPIOs over pin 26 causes an exception on a Pi 4B
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rpi.gpio/+bug/1901826/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs