-
Notifications
You must be signed in to change notification settings - Fork 112
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
How to turn the power off when there is a 18650 battery installed? #52
Comments
I have the same version and it turns off when you hold it down.. what do you mean it doesn't turn off? |
Here with board version 20210222 holding the power button down for 6 seconds turns it off when powered by the battery and/or USB, however, the blue CHG (charging) LED stays on even when there is no USB power source. |
You need to do this, so it is off when there is power supplied by the battery. I think the axp chip is always on, so when there is power it wakes up and turns on the led, also waits for the turn on button.
|
Thanks all. I learned that the AXP chip is quite configurable - and somehow it also persists the configuration once they're set, I still haven't quite figured out the exact mechanism of the persistence. What I think happened was that the program preinstalled before delivery did not configure the power button to perform power-off, or it may have misconfigured the button to do nothing at all. To power off the entire board regardless of whether it's powered by a battery alone or USB, I just had to use a couple of lines of code to configure the AXP chip:
(See also https://github.com/HouzuoGuo/hzgl-lora-communicator/blob/master/src/power_management.cpp) |
Thanks for the hint. It helped. |
Hello, I have a simple generic sketch running on the TTGo T-Beam (board revision v1.1, 20191212). The sketch displays an image on OLED and that's about it.
When T-Beam is only powered by USB, I can turn the board off by pressing the power button for ~6.5 seconds. However, this does not turn the board off when the board is only powered by a 18650 cell.
So how does the power button work when there's a battery installed?
The text was updated successfully, but these errors were encountered: