Repository navigation
GPIO: add active low and bias options - #36376
Merged
Merged
Conversation
“Active low” pins have inverted state, i.e. they're “true” or 1 when they're pulled to the ground and “false”/0 when left floating around VCC. This is very common configuration when building interfaces with semiconductors (like optocouplers), less so with relays where the polarity mostly doesn't matter. With varying polarization it is best to leave the choice of bias to the end user. Signed-off-by: Wojciech Porczyk <wojciech.porczyk@connectpoint.pl>
Contributor
Linked issuesChecked at commit 82f7ed3 #36297 Externe Begrenzung: FNN Steuerbox via GPIO - Abfrage Öffner / Schließer Relais tauschen (invert) · 1 of 1 met
|
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #36297, replaces #28187
Adds active low and internal bias configuration to the GPIO plugin, so FNN control boxes with normally open relay contacts switching to ground can be wired directly. Based on #28187 by @woju, adapted to the shared line requests introduced in #31508.
activelowandbias(pull-up,pull-down,disabled,as-is) optionsactivelowis applied per plugin instance, so read and write instances sharing a pin cannot override each other's polaritybiasis a property of the pin: conflicting values on a shared pin are rejected, an explicit value replaces the default on an already opened lineactivelowfnn-gpiogetsactivelowandbiasfor all inputs,fnn-eebusgetspassthroughactivelowfor the passthrough outputDocs: evcc-io/docs#1261
🤖 Generated with Claude Code