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

Support disabling LED/button for #70 #74

Merged
merged 2 commits into from Aug 14, 2020
Merged

Conversation

Gadgetoid
Copy link
Member

This changeset adds disable_button and disable_led arguments to FanShim so that the GPIO setup for these features can be avoided.

This is mostly for issues with HyperPixel raised in #70 but any should be useful for other instances where Fan SHIM might conflict pins with another board.

This will break - #49
Specifically - 058ebc3

But this is intentional, since noled is intended to avoid the LED being set up or written, for compatibility with add-on boards that require the pins. Additionally, writing the LED state once will not guarantee it actually stays that way, since the "smart" LEDs can often interpret random noise as signal and decide to turn themselves another colour.

@Gadgetoid
Copy link
Member Author

Needs rebasing to incorporate the change to APA102, which allows pin setup to be skipped- previously legacy Plasma was setting up the LED pins on import but APA102 does not initialise them until instantiation.

@Gadgetoid Gadgetoid self-assigned this Aug 5, 2020
@Gadgetoid Gadgetoid added the enhancement New feature or request label Aug 5, 2020
This changeset adds disable_button and disable_led arguments to FanShim so that the GPIO setup for these features can be avoided.

This is mostly for issues with HyperPixel raised in #70 but any should be useful for other instances where Fan SHIM might conflict pins with another board.
@Gadgetoid Gadgetoid merged commit 1f9a298 into master Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant