Skip to content

Use gpiozero active_high for inverted output#355

Open
cesaregiannetti wants to merge 5 commits into
borisbu:developfrom
cesaregiannetti:active_high
Open

Use gpiozero active_high for inverted output#355
cesaregiannetti wants to merge 5 commits into
borisbu:developfrom
cesaregiannetti:active_high

Conversation

@cesaregiannetti

Copy link
Copy Markdown

Built-in active_high property of LED (and Output in general) handles the inverted output already, simplifying the access.

Built-in active_high property of LED (and Output in general) handles the inverted output already, simplifying the access.
@RobinTail

Copy link
Copy Markdown
Collaborator

@cesaregiannetti , is it related to the #354 ?

@RobinTail RobinTail changed the base branch from master to develop June 20, 2025 07:59
@cesaregiannetti

Copy link
Copy Markdown
Author

@cesaregiannetti , is it related to the #354 ?

Not really, I mentioned this PR in the issue because I saw the possibility while investigating the issue, but PR 355 does not fix issue 354. I don't know how to fix issue 354 in the right way, I don't know python and web, but I might find some time in the future to do so

@cesaregiannetti

Copy link
Copy Markdown
Author

@RobinTail I found a neat solution for #354, which is setting initial_value=None.
I want to open a pull request, do you like me to base it on develop or on cesaregiannetti:active_high ?

Comment thread tests/test_driver.py
cesaregiannetti and others added 2 commits June 21, 2025 17:46
relay state now reflects pin state.
inversion is now managed by gpiozero.
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 100.0%. remained the same — cesaregiannetti:active_high into borisbu:develop

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

Successfully merging this pull request may close these issues.

4 participants