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

Auto backlight logic #60

Merged
merged 2 commits into from
Nov 2, 2023
Merged

Auto backlight logic #60

merged 2 commits into from
Nov 2, 2023

Conversation

Ptosiek
Copy link
Contributor

@Ptosiek Ptosiek commented Nov 2, 2023

Hi,
2nd part from the display-conf refactor:

I think it keeps the actual logic well (the looping over the brightness table + auto backlight setting).
I've removed the scripts for piTfT, no need for manually copying script (though the set brightness 0 will happen before in the shutdown process)

I've noticed that set_brightness for MIP does check for current brightness status in python code, but not in cpp. the code should be aligned (either doing in both or removing it from the python code)

drop g_quit
display backlight logic
fix as we need to check v["I2C"]["light"] first (for ant+ light)

Ptosiek and others added 2 commits November 2, 2023 10:06
display backlight logic
fix as we need to check v["I2C"]["light"] first
set brightness
@hishizuka hishizuka merged commit 47417ad into hishizuka:master Nov 2, 2023
1 check passed
@Ptosiek Ptosiek deleted the display-conf-2 branch November 4, 2023 14:20
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.

2 participants