Skip to content

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

@shampeon

Description

@shampeon

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().

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions