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

Update the docs on how to use interrupts to match examples #93

Open
shampeon opened this issue May 17, 2024 · 0 comments
Open

Update the docs on how to use interrupts to match examples #93

shampeon opened this issue May 17, 2024 · 0 comments
Assignees
Labels

Comments

@shampeon
Copy link

There's a mismatch between how interrupts are documented and how they are used in the example code.

The docs describe how to use the function attachInterrupt(digitalPinToInterrupt(BUTTON_PIN), buttonPressed, FALLING); to enable interrupts on a button. This function is encapsulated by the enableInterrupt() function, used in the examples. While it might be useful to document the lower level attachInterrupt() function, the docs should show how to use enableInterrupt() first, and then show what's happening within enableInterrupt().

@evert-arias evert-arias self-assigned this Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants