Skip to content

Add ability to set pull direction in PinAlarms #9373

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
Levtastic opened this issue Jun 25, 2024 · 1 comment
Open

Add ability to set pull direction in PinAlarms #9373

Levtastic opened this issue Jun 25, 2024 · 1 comment

Comments

@Levtastic
Copy link

Currently when creating a PinAlarm object you can only set the pull to be opposite what you are alarming on. This makes it impossible to wake on a connection from a pin being severed.

Example:
You have a pin that connects to ground, where this connection can be broken.
Detecting this connection being made is possible because you can pull up while floating, and wake on the signal going down, signalling that you just connected to ground.
However, detecting this connection being broken isn't possible, because you begin grounded, and you want to pull up while also waking on the signal successfully going up when the ground connection is severed. The current PinAlarm object creation doesn't allow you to both pull up and wake on the signal successfully going up, making this impossible.

@bill88t
Copy link

bill88t commented Jun 25, 2024

Note: You can externally pull up, then plug a wire to ground.
Then when the ground wire is severed, it will trigger a "going up" alarm.

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

No branches or pull requests

3 participants