Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use hardware PWM generator for PiFire PWM PCB grill platform #158

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

ghandye
Copy link
Contributor

@ghandye ghandye commented Sep 4, 2023

Updates the PWM implementation for the PiFire PWM PCB grill platform to use the built-in hardware PWM generator on the Raspberry Pi SoC. This resolves #156.

Previous implementation used gpiozero software PWM; this implementation uses rpi_hardware_pwm library.

This is a breaking commit, as the hardware PWM function requires:

  1. Installing the rpi-hardware-pwm library

sudo pip install rpi-hardware-pwm

  1. Adding this line to the end of /boot/config.txt, and rebooting:

dtoverlay=pwm,pin=13,func=4

Once these two changes are done, this commit will enable hardware PWM.

Updates the PWM implementation for the PiFire PWM PCB grill platform to use the built-in hardware PWM generator on the Raspberry Pi SoC. This resolves nebhead#156.

Previous implementation used gpiozero software PWM; this implementation uses rpi_hardware_pwm library.

This is a breaking commit, as the hardware PWM function requires:

1) Installing the rpi-hardware-pwm library

  sudo pip install rpi-hardware-pwm

2) Adding this line to the end of /boot/config.txt, and rebooting:

  dtoverlay=pwm,pin=13,func=4

Once these two changes are done, this commit will enable hardware PWM.
@nebhead nebhead merged commit 4693b6f into nebhead:development Sep 5, 2023
@ghandye ghandye deleted the development_hardware-pwm branch September 5, 2023 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants