Skip to content

Commit b069a46

Browse files
authored
Update README.md to reflect Pi 5 channels
1 parent 7e84c17 commit b069a46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Access the hardware PWM of a Raspberry Pi with Python. More lightweight than alt
88

99
1. On the Raspberry Pi, add `dtoverlay=pwm-2chan` to `/boot/config.txt`. This defaults to `GPIO_18` as the pin for `PWM0` and `GPIO_19` as the pin for `PWM1`.
1010
- Alternatively, you can change `GPIO_18` to `GPIO_12` and `GPIO_19` to `GPIO_13` using `dtoverlay=pwm-2chan,pin=12,func=4,pin2=13,func2=4`.
11+
- On the Pi 5, use channels 0 and 1 to control GPIO_12 and GPIO13, respectively; use channels 2 and 3 to control GPIO_18 and GPIO_19, respectively
12+
- On all other models, use channels 0 and 1 to control GPIO-18 and GPIO_19, respectively
1113
2. **Reboot your Raspberry Pi**.
1214
- You can check everything is working on running `lsmod | grep pwm` and looking for `pwm_bcm2835`
1315
3. Install this library: `sudo pip3 install rpi-hardware-pwm`

0 commit comments

Comments
 (0)