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

Implement brightness regulation for T-Display S3 #191

Merged
merged 3 commits into from
Mar 14, 2024

Conversation

Coscolin
Copy link
Contributor

I have added funtionality to brightness regulation for T-Display S3 about your TODO roadmap:
https://github.com/users/melkati/projects/3/views/1?pane=issue&itemId=52285771

@melkati melkati added the enhancement New feature or request label Mar 13, 2024
CO2_Gadget_Menu.h Outdated Show resolved Hide resolved
platformio.ini Outdated Show resolved Hide resolved
CO2_Gadget_TFT.h Outdated Show resolved Hide resolved
Copy link
Owner

@melkati melkati left a comment

Choose a reason for hiding this comment

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

Please, adjust also the preferences initialization to initialize DisplayBrightness to 10 (for example, the value you think is better) when compiling for LILYGO_T_DISPLAY_S3.

Something like:

#ifdef LILYGO_T_DISPLAY_S3
     DisplayBrightness = preferences.getUInt("DisplayBright", 10);
#else
     DisplayBrightness = preferences.getUInt("DisplayBright", 100);
#endif

https://github.com/melkati/CO2-Gadget/blob/82d3df362e4a9d8c121de1bab251735c3a584fe7/CO2_Gadget_Preferences.h#L104C5-L104C67

@melkati melkati merged commit 465df08 into melkati:development Mar 14, 2024
@Coscolin Coscolin deleted the s3-background-brightness branch March 14, 2024 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

2 participants