-
-
Notifications
You must be signed in to change notification settings - Fork 19.6k
Fix: Ensure brightness >0 in ExtUI #17644
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
Fix: Ensure brightness >0 in ExtUI #17644
Conversation
|
ops. sometimes vscode and "cntrl+S" not works together :/ sorry for the noise value 1 seems is too low with some screens (no backlight). with 11 (with 10 also no backlight) seems is the minimun value |
|
Do you have an example for a screen that would not turn on the backlight with a value below 11? |
|
i not mean not turn on with value below 11, simply i say the screen is completely dark with 1 to 10 (no ligth, no not possible saw the interface), but with 11 the light is darker, and can able to see the interface |
|
Same thing - but with what display is that happening? |
|
the fysetc TFT81050 touch eve 5" |
|
I checked the schematic or the TFT81050 and it uses a MP3202. My display is using an IS31BL3506A which has in its Datasheet: Well, if 11 works with this display, go ahead and change the value, I guess a little brighter than the allowable minimum on some displays still is better than ending up with a complete dark backlight for other displays. |
|
sic tested with the audio defaults, the brightness dimer in this TFT is not a option (for the sound). also the bightness level with 11 is highest than before (more ligth). so, should be back to 1 if work in the most TFT EVE in the market. but not in this @GerogeFu any troughts? |
|
Hmm.
Is this just me or limits this the value to 1...11? |
|
the brightness dim has been disabled for the fysetc panel so the PWM can be leave to the default, so the level 11 can be rid and set to 1 unles anyone do any for solve the sound problem when dim withour damage the light in near future (by seting the pwm value over the electronics can handle) greetings |
|
Just go with: max(11, (value * 128UL) / 0xFFFF); |
Co-authored-by: Scott Lahteine <[email protected]>
Co-authored-by: Scott Lahteine <[email protected]>
Co-authored-by: Scott Lahteine <[email protected]>
Requirements
Extui Display
Description
This is a fix for the previous pull request, sorry.
This time the code below really is what I entered to be included here.
And of course I tried it before committing it.
Benefits
Prevents a blacked-out display buy making sure the brightness level is at least 1.
Related Issues
None.