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

chapter02 button_pigpio.py and button_gpiozero.py use different debounce times #2

Closed
esmith-oss opened this issue Apr 25, 2021 · 1 comment

Comments

@esmith-oss
Copy link

In chapter02, button_gpiozero.py uses debounce time of 0.1 seconds. button_pigpiozero.py uses debounce time of 10000 microseconds. I think the idea of chapter 2 is to execute the same functionality using pigpio and gpiozero, so this difference in debounce time can be confusing for readers.

10000 microseconds == 0.01 seconds != 0.1 seconds

@garyns
Copy link
Collaborator

garyns commented May 15, 2021

Hi Eric,

Thank you for bringing this discrepancy to our attention.

I have confirmed that there is a type-o on Page 64 where I state that the debounce time is measured milliseconds when it is actually meant to be microseconds.

I have added an Errata section at the following link discussing the misprint and implications.

https://github.com/PacktPublishing/Practical-Python-Programming-for-IoT/tree/master/errata

I hope you are enjoying the book.

Thanks again,
Gary.

@garyns garyns closed this as completed May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants