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

Branch available with button press to take IMU into and out of deep sleep #8

Closed
johnheenan opened this issue May 5, 2020 · 1 comment

Comments

@johnheenan
Copy link
Contributor

johnheenan commented May 5, 2020

There is a branch available which enables a button press to put the IMU (accelerometer etc) into deep sleep and lower power usage.

When off the watch will not wake up by moving it. There is a discussion of this issue at #5 (comment).

The IMU is toggled on or off by a long press on the battery screen, which used to be used activate OTA. The battery screen also lets you know if the IMU is on or off. The OTA screen can still be used to enable OTA download. The IMU on/off setting is recalled from NVS after wakeup.

When the IMU is turned off two screens are skipped.

The branch is further progress to allow a UTC offset and timezones to be set by button by allowing IMU_SKIP and timezone settings to be set to and recalled from NVS.

The platformio.ino setting -DIMU_SKIP now controls what the initial setting of the IMU is after firmware upload. IMU_SKIP set means leave IMU off by putting into a deep sleep after firmware upload. To force all settings to be reinitialised from firmware settings instead of NVS settings each time with a wake up use -DEEPROM_REINIT. For now this is only relevant to the IMU_SKIP firmware setting.

I am happy to make a PR from the branch, which can be downloaded by:

git clone https://github.com/johnheenan/TTGO-T-Wristband.git
cd TTGO-T-Wristband
git checkout -b origin/poweropts 

Discussions are welcome

John Heenan

johnheenan referenced this issue in johnheenan/TTGO-T-Wristband May 5, 2020
Progress further to allow timezones to be set by button by allowing IMU_SKIP and timezone settings to be set in and recalled from NVS.
@johnheenan
Copy link
Contributor Author

I have tagged a branch at https://github.com/johnheenan/TTGO-T-Wristband/tree/v0.1-alpha which adds menu for UTC Offsets and STD Regions as well as other improvements. There is no point in keeping this issue open any longer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant