Commit Graph

109 Commits (master)

Author SHA1 Message Date
SQFMI fdfe7ee2be
Merge pull request #177 from DarkZeros/SPI20MHz
SPI set to 20MHz
2022-08-27 16:05:25 -04:00
ITCactus 819606e892 fix "LibVer" info on "About Watchy" screen 2022-08-05 15:07:56 +02:00
Daniel Ansorregui 04126ce5f6 Tentative fixes for 2.0.3+
* Found that the Resets were caused
  by the timer wakeup being set
* Also, some pins will crash the
  device if we access them.
  Maybe they were protected in 2.0.2
  and now they are not.
2022-08-03 18:21:27 +01:00
Daniel Ansorregui 5c27f4721f Optimise GxEPD2 Display
* This change implements certain
  speed improvements on top of
  upstream GxEPD2 that are not fully
  accepted by the upstream maintainer.
* The change Adds a new WatchyDisplay class
  and implements the mods in there.

* Using transactions for SPI communication
* Remove extra delays for yield()
* Remove 10ms active waits in resets

* This reduces (874ms -> 657ms) the display
  update. Making it more responsive and
  Saving 21mJ/update or 2.6mAh/day
2022-08-03 17:08:12 +01:00
Daniel Ansorregui 561673927c Set SPI to 20MHz
* Speed up SPI transfer to the display
  by using 20Mhz instead of default 4Mhz
  This saves around 16ms = 1.5mJ/refresh
  or 2160mJ/day = 0.6mWh/day = 0.2mAh/day
  (890ms -> 874ms)
2022-08-03 11:52:52 +01:00
Stuart P. Bentley 37ea6135da
PCF8563: Call rtc_pcf.getDateTime in WatchyRTC::read
Fixes #128 as noted by @neaket
2022-05-17 11:22:54 -07:00
sqfmi 715a0e1bd3 fix include order 2022-05-06 23:58:07 -04:00
SQFMI 4b739afbd0
Merge branch 'master' into fix_missing_defines 2022-05-06 23:54:27 -04:00
Alexandre J. Raymond 170029672a Fix missing defines breaking compilation 2022-05-03 21:41:35 -04:00
Aneesh Durg 8f55e2f694 Format all files 2022-04-28 20:17:00 -05:00
Aneesh Durg 3a6af55a6f Add formatter script 2022-04-28 20:16:09 -05:00
SQFMI 48c796ec27
Merge pull request #160 from sqfmi/dev
Dev
2022-04-25 12:51:24 -04:00
Batchyx 6e9a6a8c05 Fix compilation with latest version of DS3232RTC
The ALARM_2, SQWAVE_NONE and ALM2_EVERY_MINUTE definitions were moved
inside DS3232RTC.
2022-04-20 18:08:11 +02:00
sqfmi ee57707698 Revert "Update config.h"
This reverts commit da92b9d4a1.
2022-01-23 16:15:12 -05:00
SQFMI da92b9d4a1
Update config.h 2022-01-21 17:46:39 -05:00
SQFMI cd743e5ebf
Update config.h 2022-01-19 21:39:43 -05:00
sqfmi 3c9afbb6d2 update to 1.4.0
moved pin definitions to pins_arduino.h
2022-01-19 21:38:26 -05:00
Lyndon Nerenberg 7bd9cf3ab0 Tag lib version with 'dev' for the dev branch and tighten up the
About menu to allow for longer lib version strings.
2022-01-15 19:58:58 -08:00
sqfmi f79f7482c1 use units params so it can be overridden 2022-01-12 19:23:02 -05:00
наб a7637604b4
Properly handle metric temperature w/o wifi 2022-01-11 00:09:58 +01:00
sqfmi c5b43d2eac small tweaks to "About Watchy" 2022-01-06 17:20:57 -05:00
Lyndon Nerenberg bf7425c7dc Add an "About Watchy" menu item.
This replaces "Check Battery" and adds the following info:

  * Firmware version
  * RTC chip type

The firmware version is #defined in Watchy.h.  There might be a
way to do this that's friendlier to the library release process,
but I'll leave that up to the people who actually build the releases.

I plan to extend the About menu with some radio-related info as
I work on getting BLE pairing working with my iPhone.
2022-01-05 00:25:22 -08:00
sqfmi de126cd292 Updated NTP to use NTPClient.h 2022-01-03 21:41:36 -05:00
SQFMI 2bfe297e7b change line endings 2021-12-30 23:16:03 -05:00
sqfmi 9f0ce88057 user definable settings 2021-12-30 22:47:38 -05:00
sqfmi eb89c09a31 moved NTP sync to main Watchy lib 2021-12-30 13:02:40 -05:00
sqfmi a454e65ba2 add NTP to menu 2021-12-30 01:50:13 -05:00
sqfmi 12915a48e6 Native NTP support & bug fixes
- Added native NTP sync support
- Fixed bug with WiFi AP not working due to busy lightsleep callback
- Removed year offsets and use TimeLib macros for consistency
2021-12-29 02:06:38 -05:00
Guðni Þ. Björgvinsson 9434ffd1fc Fixes issue #129 - stops writing over previous text 2021-12-26 20:17:21 +00:00
SQFMI afb2e23dea
Merge branch 'master' into light_sleep_display 2021-12-12 17:12:31 -05:00
SQFMI b794d8ee79
Moved clear alarm function 2021-12-12 16:43:38 -05:00
Daniel Ansorregui 76e202739d Set all pins to INPUT before deep sleep
* Some pins otherwise are left as output
  And their value is kept in deep sleep
  This can cause power usage in deep sleep
* From my measurements 0.13mA
  Or, 3mAh / day extra usage
2021-12-11 16:19:09 +00:00
Daniel Ansorregui d66f848ba6 Optimize display update
* Hibernate should only be called before deep sleep
* Init should only be called once and notify the last init
* Set up init properly with 10ms reset and pulldown
* Use GxEDP2 1.4.0 library new busy callback
  to trigger a lightsleep in the mean time
  Saving 600ms of CPU time per update, (12mAs/minute)
  That is -4mAh per day savings
2021-12-11 14:32:29 +00:00
sqfmi ac82f48c45 fixed freeze bug 2021-12-03 11:11:00 -05:00
sqfmi 8fb1902cbe fixed setting datetime 2021-12-01 22:04:52 -05:00
sqfmi 7a28210b41 fixed bugs and change temp. sensor 2021-12-01 18:34:42 -05:00
sqfmi 6363caeac2 auto switch ADC pin 2021-11-29 17:01:25 -05:00
sqfmi 241f568e71 Fix RTC
- Added RTC scan
- Support for both RTCs in abstraction lib
2021-11-29 02:34:21 -05:00
SQFMI 66b8fe9c8c
Merge pull request #97 from gwilsonOSU/master
Added variable HOUR_12_24 to config.h
2021-08-25 21:24:48 -04:00
SQFMI 2f12a2babd
Merge pull request #87 from clayton-rogers/change-battery-adc-call
Change to more accurate ADC call
2021-08-25 21:20:53 -04:00
Greg Wilson 20ee700d5a Added variable HOUR_12_24 to config.h, for setting a 12-hour or 24-hour time display. Set to 24 by default. 2021-08-21 16:46:51 -07:00
Clayton Rogers d2d4ea4d08 Change to more accurate ADC call 2021-07-31 18:47:13 -04:00
наб 6c2e613e07
Fix "Please [Vv]isit" typo in firmware update screen 2021-07-17 20:29:04 +02:00
SQFMI aabb888069 Add support for ESP RTC 2021-06-13 21:21:37 -04:00
SQFMI 15179cfa0c update version 2021-04-01 15:25:22 -04:00
SQFMI 55cb672cee update weather interval 2021-04-01 15:24:32 -04:00
SQFMI 7d3b899123 experimental fast menu 2021-03-24 17:00:05 -04:00
Eric Doughty-Papassideris 0ed0d0922e Removing some warning and potential undefined behaviours 2021-03-09 23:42:51 +01:00
SQFMI 88e683931c update to 1.2.3 2021-01-30 17:09:24 -05:00
Leon Matthes 2317303522
Correct axes remapping of BMA423
Wrist detection now also works well.
2021-01-29 13:50:36 +01:00
SQFMI ef501c42e0 updated to 1.1.7 2021-01-05 00:03:49 -05:00
sqfmi 03ea538e32 BMA423 added accelerometer support 2020-02-23 13:49:44 -05:00
sqfmi 179f7657e5 updated to use GxEDP2 2020-02-17 17:47:28 -05:00
SQFMI 12c282e7c8
Update GxGDEH0154D67.cpp 2020-02-16 14:24:48 -05:00
SQFMI cd3353da68
updated timing 2020-02-16 14:24:10 -05:00
SQFMI bd8919e2c0
Update GxGDEH0154D67.h 2019-11-18 15:12:29 -05:00
SQFMI ed0815f610
Update GxGDEH0154D67.h 2019-11-18 15:11:59 -05:00
sqfmi fac615443a Added Button Example 2019-11-17 15:51:25 -05:00
sqfmi 80c448c32b Added Watchy basic example 2019-11-16 23:08:17 -05:00