Skip to content

Control client button control #54

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
linguini1 opened this issue Mar 16, 2025 · 0 comments
Open

Control client button control #54

linguini1 opened this issue Mar 16, 2025 · 0 comments

Comments

@linguini1
Copy link
Contributor

linguini1 commented Mar 16, 2025

NuttX implementation requires callbacks on GPIO events to send messages over the network. Falling edge = on/arm command, rising edge = off/disarm command. This will be similar to using GPIO for actuators but we're registering interrupt callbacks on them instead. Might need to use work queues since networking will be too much latency in an interrupt handler.

Could be implemented using button driver framework which delivers a signal to the program. Read the example code (not this docs page, it's in examples/buttons): https://nuttx.apache.org/docs/latest/applications/examples/buttons/index.html

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

No branches or pull requests

1 participant