adafruit / Adafruit_Blinka

Add CircuitPython hardware API and libraries to MicroPython & CPython devices
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux
MIT License
437 stars 327 forks source link

Fix PWM for the Pi 5 #856

Closed makermelissa closed 1 week ago

makermelissa commented 1 week ago

Fixes #847. This fixes PWM for the Pi 5 by using rpi-lgpio for the GPIO instead of libgpiod. To accomplish this, I needed it to install rpi-lgpio for the Pi 5 and RPi.GPIO for the Pi 4, so requirements.txt needed to run setup.py, which is able to determine the CPU model.