Skip to content

Chapt-8: Add pin_factory - fix error of PWMSoftwareFallback #1 #5

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sanctusgee
Copy link

Hi Danny, thank you for this amazing book!

Justification for request:
Due to changes in gpiozero, adding the pin_factory parameter, the changes resolve the error (below) resulting from original code: PWMSoftwareFallback: For more accurate readings, use the pigpio pin factory.

References are:

https://gpiozero.readthedocs.io/en/stable/api_pins.html#changing-the-pin-factory
https://gpiozero.readthedocs.io/en/stable/api_pins.html#module-gpiozero.pins.pigpio

Hi Danny, thank you for this amazing book!

# Justification for request:
# By adding the pin_factory, the changes resolve the error from original code: "PWMSoftwareFallback: For more accurate readings, use the pigpio pin factory." due to changes in gpiozero
   
# References are:
# -- https://gpiozero.readthedocs.io/en/stable/api_pins.html#changing-the-pin-factory
# -- https://gpiozero.readthedocs.io/en/stable/api_pins.html#module-gpiozero.pins.pigpio
Add pin_factory - fix error of PWMSoftwareFallback
Copy link
Collaborator

@dannystaple dannystaple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this require the user to run the Pigpiod?
You shouldn't see this fault with the existing code if you install RPi.GPIO (pip install RPi.GPIO).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants