5 Commits

Author SHA1 Message Date
sakabin f9953af750 Add power api, Set battery charging init in M5.Power.begin()
1. Reduce  battery charging current to 650ma
2. Set battery charging voltage to 4.2v
2019-08-29 14:31:06 +08:00
Joey Babcock 27f25f243d Grammatical edits for clarity (#180) 2019-07-23 09:12:40 +08:00
nao 317f2a2f4f Add:power related functions (#160)
* Addition: Shutdown time setting
* Add a function to change the time setting register
* Add maximum time (64s) setting at initialization
 (If you prefer short time settings, set them yourself after initialization)

* Add : powerOFF function

* Fix : Adjusted function name
*setLowCurrentShutdownTime -> setLowPowerShutdownTime
*SleepTime -> ShutdownTime
*SLEEP_xxS -> SHUTDOWN_xxS

Add : powerOFF function

* fix:Detailed setting of wakeup factor
If you set the wakeup time, it will be reflected incorrectly even when it is not needed.

* modify : Exclude functions that don't work properly
*setLowPowerShutdown() -> Add attribute
*setKeepLightLoad() -> Add attribute

* add : add Link
*Add a reference to the official document

* Modify sleep.ino comment
2019-05-05 15:36:14 +08:00
sakabin 7b2c8ded7e Fix sleep example
remove M5.Power.setKeepLightLoad()
2019-04-30 11:27:25 +08:00
Mori Naoyuki 24caf60851 Add lightSleep mode / upgrade deepSleep mode
-lightSleep-
*add function for LCD wakeup on LCD class
*add function for lightSleep on Power class

-deepSleep-
*add specification : re-startup time can be specified on deepSleep

-utillity-
*add function :you can get a reason for startup
 isResetbyWatchdog(),isResetbyDeepsleep(),isResetbySoftware(),isResetbyPowerSW();

-other-
*add attribution: deprecated function (because moved to Power class.)
  M5.setPowerBoostKeepOn(),M5.setWakeupButton(),M5.powerOFF()
*add sample scketch for sleep.
2019-03-23 18:52:08 +09:00