-
Notifications
You must be signed in to change notification settings - Fork 249
Ssd1309 extra screen #937
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
Ssd1309 extra screen #937
Conversation
main/screen.c
Outdated
if (wifi_rssi_value_label) { | ||
char rssi_buf[25]; | ||
|
||
if (module->wifi_rssi < 0 && module->wifi_rssi >= -127) { // Typical RSSI range |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESP docs say it can actually sometimes be positive, for some reason?
} | ||
// If the candidate screen is SCR_WIFI_RSSI AND this is NOT a bigger display, | ||
// then this screen should be skipped, and the loop will continue to find the next one. | ||
} while (next_scr == SCR_WIFI_RSSI && GLOBAL_STATE->DISPLAY_CONFIG.v_res / 8 != 8); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to think about this a bit more. For now I would revert this bit, and just add the new screen for all displays. If we want to have different screen designs for different resolutions, it would make sense to do that in screen_start
, only once.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
F.e. we could make 2 separate designs for the Wi-Fi, and either add one or the other on the SCR_WIFI_RSSI position. Or have a completely dynamic bit of the carousel, that a small screen has 4 screens (as an example), but a larger screen only has 3, with different designs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
builds ontop of #934
adds another screen depending on the resolution that's available to display wifi rssi.
To-Do: