Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4766

Interfacing (DSI, CSI, I2C, etc.) • Re: GPIO not working after upgrade to Bookworm (Pi Zero W)

$
0
0
More information about my environment:

Code:

pi@gpi:~ $ dpkg-query -f '${binary:Package}\n' -W | grep gpiogpiodlibgpiod2:armhfliblgpio1:armhflibpigpio-devlibpigpio1libpigpiod-if-devlibpigpiod-if1libpigpiod-if2-1pigpiopigpio-toolspigpiodpython3-gpiozeropython3-lgpiopython3-libgpiod:armhfpython3-pigpiopython3-rpi-lgpioraspi-gpiorpi.gpio-common:armhf
And I also tried the following python script (taken from a Tom's Hardware article), which uses a different python library, but it also did nothing to the GPIO:

Code:

import gpiodimport timeGPIO_PIN = 24chip = gpiod.Chip('gpiochip0')line = chip.get_line(GPIO_PIN)line.request(consumer="LED", type=gpiod.LINE_REQ_DIR_OUT)try:   line.set_value(1)   time.sleep(2)   line.set_value(0)finally:   line.release()

Statistics: Posted by Hobbieman — Wed May 15, 2024 11:15 pm



Viewing all articles
Browse latest Browse all 4766

Trending Articles