-
Notifications
You must be signed in to change notification settings - Fork 16
Major python code change #116
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
Conversation
Do NOT merge yet :) |
…-esp32 into rstd-batterymanagement
esp32/modules/splash.py
Outdated
@@ -192,360 +74,221 @@ def draw_helper_battery(percent,cstate): | |||
else: | |||
ugfx.string(5,5,"empty","Roboto_Regular12",header_bg) | |||
else: | |||
ugfx.string(2,5,"no batt","Roboto_Regular12",header_bg) | |||
|
|||
ugfx.string(2,5,"no batt","Roat_status = boto_Regular12",header_bg) |
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.
A stray at_status =
appeared :)
So, this now is flashable and kinda usable... |
esp32/modules/appglue.py
Outdated
if (app==""): | ||
ugfx.string(0, 25, "Returning to homescreen...","Roboto_Regular12",ugfx.BLACK) | ||
else: | ||
ugfx.string(0, 25, "Starting "+app+"...","Roboto_Regular12",ugfx.BLACK) | ||
ugfx.set_lut(ugfx.LUT_FASTEST) |
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.
You don't have to set_lut
separately, you can pass ugfx.LUT_FASTEST
to ugfx.flush()
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.
Will do!
Hmm, I misunderstood bpp then. We do need a way to set the maximum time bpp will be active though. |
Please make sure the badge does not go to sleep when plugged in through USB, this makes the REPL a bit difficult to use |
The splash may take a bit longer refreshing after a reset, it can be a bit ugly when exiting an app. Have you thought about doing a nice and slow refresh before going to auto-sleep? |
Pressing "B" to launch the OTA update does not work. Change label "[B: OTA]" --> "[B: Update]" |
Tiny bug, it appears that my battery is a bit full. LOL. (At 100% or 4.2V) Unplugging charger reports a voltage of 4.31V |
Refractoring splash code