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

led_set "adding" brightness with "-" to default brightness #98

Closed
seededplyr opened this issue Jan 11, 2018 · 1 comment
Closed

led_set "adding" brightness with "-" to default brightness #98

seededplyr opened this issue Jan 11, 2018 · 1 comment

Comments

@seededplyr
Copy link

https://www.consoletuner.com/forum/viewtopic.php?f=27&t=7616

@J2Kbr
Copy link
Owner

J2Kbr commented Jan 25, 2018

I initially thought this issue was related with another. But after debugging the cause is indeed the constant calling of led_set while the button is pressed (get_val). led_set when called resets the duty cycle that dims the leds from the Titan Two's lightbar, not allowing enough time for off period, resulting is brighter color.

The solution is use event_active and event_release to call the LED() function, where is led_set.

@J2Kbr J2Kbr closed this as completed Jan 25, 2018
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

No branches or pull requests

2 participants