Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use gpiod in OLED script #8

Open
xoseperez opened this issue May 15, 2024 · 0 comments
Open

Use gpiod in OLED script #8

xoseperez opened this issue May 15, 2024 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@xoseperez
Copy link
Contributor

OLED script cannot register GPIO to monitor power outage on a Raspberry Pi 5 since it uses RPi.GPIO.

Traceback (most recent call last):
  File "/home/rak/workspace/rakpios/stage2-rak/03-utils/files/oled", line 345, in <module>
    GPIO.setup(16, GPIO.IN, pull_up_down=GPIO.PUD_UP)
RuntimeError: Cannot determine SOC peripheral base address

Update code to use gpiod instead.

@xoseperez xoseperez self-assigned this May 15, 2024
@xoseperez xoseperez added bug Something isn't working enhancement New feature or request labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant