This Commit depends on the Merge-Request #23 for the Adafruit_Python_Shell https://github.com/adafruit/Adafruit_Python_Shell/pull/23
This commit is contained in:
LostNulide 2024-04-15 19:24:02 +02:00 committed by GitHub
parent 02c6b18f1c
commit b5c25be3bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,7 +56,10 @@ Installing...""")
) )
# Enable I2S overlay # Enable I2S overlay
shell.run_command("sed -i -e 's/#dtparam=i2s/dtparam=i2s/g' /boot/config.txt") if shell.get_raspbian_version() == "bookworm":
shell.run_command("sed -i -e 's/#dtparam=i2s/dtparam=i2s/g' /boot/firmware/config.txt")
else:
shell.run_command("sed -i -e 's/#dtparam=i2s/dtparam=i2s/g' /boot/config.txt")
# Done # Done
print("""DONE. print("""DONE.