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

Add base abstraction for pin interrupts #70

Closed
OttoWinter opened this issue Feb 20, 2019 · 0 comments · Fixed by esphome/esphome-core#535
Closed

Add base abstraction for pin interrupts #70

OttoWinter opened this issue Feb 20, 2019 · 0 comments · Fixed by esphome/esphome-core#535

Comments

@OttoWinter
Copy link
Member

Describe the problem you have/What new integration you would like

ESPHome mostly uses attachInterrupt everywhere for interrupts. However the argument that can be given there is only a function with no parameter - so it's very hard to create a component that uses interrupts. Arduino has FunctionalInterrupt for this, however that appears to be broken in recent versions (esphome/esphome-core#511)

ESPHome should provide a similar function in the GPIOPin abstraction - that can then call the appropriate low level functions (like it is done in esphome/esphome-core#511)

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

Successfully merging a pull request may close this issue.

1 participant