Skip to content

Commit 9af1d3f

Browse files
committed
dietpi-software: RPi.GPIO: move to rpi-lgpio compat package
1 parent 01a29d6 commit 9af1d3f

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.update/patches

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2112,7 +2112,9 @@ Patch_9_10()
21122112
fi
21132113
}
21142114

2115-
Patch_9_11()
2115+
Patch_9_11(){ :; }
2116+
2117+
Patch_9_12()
21162118
{
21172119
# Software updates, migrations and patches
21182120
if [[ -f '/boot/dietpi/.installed' ]]
@@ -2172,6 +2174,14 @@ Patch_9_11()
21722174
fi
21732175
fi
21742176
fi
2177+
2178+
# RPi.GPIO => rpi-lgpio migration
2179+
if grep -q '^[[:blank:]]*aSOFTWARE_INSTALL_STATE\[69\]=2' /boot/dietpi/.installed
2180+
then
2181+
G_DIETPI-NOTIFY 2 'Migrating from legacy RPi.GPIO to modern compatible rpi-lgpio Python 3 library ...'
2182+
G_AGI python3-rpi-lgpio
2183+
G_AGP python3-rpi.gpio
2184+
fi
21752185
fi
21762186
}
21772187

CHANGELOG.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ v9.12
44
Enhancements:
55
- DietPi-Software | WiringPi: Added support for Orange Pi boards, using the wiringOP sources from Xunlong: https://github.com/orangepi-xunlong/wiringOP
66
- DietPi-Software | Spotifyd: Added support for ARMv8 and x86_64 Bookworm/Trixie systems, supported with the latest Spotifyd release.
7+
- DietPi-Software | RPi.GPIO: Since the modern Raspberry Pi kernel removed support for the legacy GPIO API, python3-rpi-lgpio will now be installed instead, providing an RPi.GPIO compatibility layer for the modern lgpio library.
78

89
Bug fixes:
910
- DietPi-Config | Resolved an issue where enabling the waveshare32 LCD panel failed on Raspberry Pi with new kernel/firmware stack. Many thanks to @guiksign for fixing this bug: https://github.com/MichaIng/DietPi/pull/7462

dietpi/dietpi-software

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6197,7 +6197,7 @@ See the manual below for instructions on how to do this.
61976197

61986198
if To_Install 69 # Python 3 RPi.GPIO
61996199
then
6200-
G_AGI python3-rpi.gpio
6200+
G_AGI python3-rpi-lgpio
62016201
fi
62026202

62036203
if To_Install 70 # WiringPi
@@ -13272,7 +13272,7 @@ _EOF_
1327213272

1327313273
if To_Uninstall 69 # Python 3 RPi.GPIO
1327413274
then
13275-
G_AGP python3-rpi.gpio
13275+
G_AGP python3-rpi-lgpio
1327613276
fi
1327713277

1327813278
if To_Uninstall 72 # I2C

0 commit comments

Comments
 (0)