Skip to content

Use gpiod in OLED script #8

@xoseperez

Description

@xoseperez

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions