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

Update turbo LED logic #898

Merged
merged 1 commit into from
Mar 19, 2024
Merged

Conversation

FeralAI
Copy link
Contributor

@FeralAI FeralAI commented Mar 17, 2024

My previous Turbo update PR assumed the LED was active low, so the LED current would sink from +V. This caused incorrect and odd LED behavior for the more common use case of connecting LED+ to a GPIO pin.

This PR updates the default logic to use active high to drive the turbo LED, similar to #883, but also cleans up the LED state logic and allows overriding via board config using a define. This wasn't added as a togglable option via web config, but can be added if we think it's beneficial.

I also renamed the slightly ambiguous turboButtonsPressed variable to turboButtonsMask, which @SavageCore brought up when we discussed turbo behavior.

@SavageCore
Copy link
Member

Looks good. I can test tomorrow if needed

Copy link
Contributor

@arntsonl arntsonl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, looks like an easy fix to the Turbo LED logic. Thanks @FeralAI and @SavageCore !!

@arntsonl arntsonl merged commit 95305cf into OpenStickCommunity:main Mar 19, 2024
32 checks passed
@FeralAI FeralAI deleted the bugfix/turbo-led branch March 22, 2024 20:10
This pull request was closed.
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.

3 participants