TioRuben / TTGO-T-Wristband

First steps with TTGO T-Wristband
MIT License
65 stars 23 forks source link

Add IMU_SKIP option to save power and add two time-zones #6

Closed johnheenan closed 4 years ago

johnheenan commented 4 years ago

Add in IMU_SKIP option to prevent wake up by IMU and to lower IMU power usage while asleep

Add in code for AEST and AEDT time zones

Enabling IMU_SKIP will lower power usage as discussed in https://github.com/TioRuben/TTGO-T-Wristband/issues/5#issue-601598702

Enabling TZ_AEDT or TZ_AEST will use another time zone to the default CEST/CET and can be used to help add other time-zones by searching in code for TZ_AEDT.

The code also fixes an issue identified in https://github.com/TioRuben/TTGO-T-Wristband/issues/4#issue-601589323

The code has no effect unless comment enablers are removed in platformio.ini:

;  -DIMU_SKIP         # remove comment to keep IMU (accelerometer, gyrometer and magnetometer) shut down
;  -DTZ_AEDT          # AEDT Australian Eastern Daylight Time. Defaults to CEST/CET if no TZ (Time Zone) defined
;  -DTZ_AEST          # AEST Australian Eastern Standard Time (QLD only)
johnheenan commented 4 years ago

Withdrawing this pull request to replace with two others

  1. IMU_SKIP
  2. Improved time zone handling