Skip to content

Commit

Permalink
Add Raspberry Pi 5 support (#66)
Browse files Browse the repository at this point in the history
Closes #60.
  • Loading branch information
jamesecc authored Nov 4, 2024
1 parent 4e998a1 commit 9d62e81
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rpi_backlight/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ class BoardType(Enum):

_BACKLIGHT_SYSFS_PATHS = {
BoardType.RASPBERRY_PI: (
"/sys/class/backlight/10-0045/"
"/sys/class/backlight/4-0045/"
if Path("/sys/class/backlight/4-0045/").exists()
else "/sys/class/backlight/6-0045/"
if Path("/sys/class/backlight/6-0045/").exists()
else "/sys/class/backlight/10-0045/"
if Path("/sys/class/backlight/10-0045/").exists()
else "/sys/class/backlight/rpi_backlight/"
),
Expand Down

0 comments on commit 9d62e81

Please sign in to comment.