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

Set_Blue_LED_optimisation #189

Merged
merged 1 commit into from Mar 1, 2024
Merged

Conversation

MartinHugh
Copy link

Rather than unconditionally setting or unsetting the LED, it first checks whether it is on or off

@ligenxxxx
Copy link
Member

For freestyle v1/v2 VTX, the LED is controlled by the TC3587 chip. Each time configuring the LED through I2C takes much more time than driving the LED through IO, which will cause other functions in while(1) to not have enough time to run.
So don't control the LED repeatedly in while(1).

@ligenxxxx ligenxxxx merged commit 24cd719 into hd-zero:main Mar 1, 2024
9 checks passed
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.

None yet

2 participants