Commit Graph

128 Commits (793ff8e61fe07fdd291adcdaad61f7e63bc1f48a)

Author SHA1 Message Date
Andre LaFleur 793ff8e61f Perform next step by pushing WatchyRTC to check in with other variables 2021-12-18 15:26:50 -07:00
Andre LaFleur 3a2974b997 Crossing the Rubicon
* We are now going to make _rtc a pointer, and use that
  process of polymorphism as part of the refactors. Again,
  I worry about memory management, but there does not seem
  to be a very clear way around this
2021-12-18 15:26:50 -07:00
Andre LaFleur 3ca79867b9 Rely on two types with if statements
* I worry about the simple constructors here though. I believe that
  causes things to be instantiated on the stack which is then blown
  away. That would mean that I would need to rely on the heap with
  the new keyword, but if I do that I will need to deallocate later.
* Digging into DS3232RTC, it looks like it has no deallocator, and I
  kind of suspect the same for Rtc_Pcf8563. Either way, we will want
  to ensure that we can delete those classes where we need to. I
  would hate to introduce a memory leak somewhere on something so
  small
2021-12-18 15:26:50 -07:00
Andre LaFleur b7800f0b21 Simplify init() a bit more 2021-12-18 15:26:50 -07:00
Andre LaFleur bac7b4eb51 Setup AbstractRTC, cleanup init(), and add some declarations 2021-12-18 15:26:50 -07:00
Andre LaFleur 715bbaf85d Begin RTC refactor
* My current understanding of the WatchyRTC class is that it came about
  due to the need to ship Watchys with new RTC chips. The class here is
  designed to accomodate both chips
* This class is a good way of doing just that--a single spot that
  hides the implementation details of both chips. The downside to this
  approach in the moment is that we have a bunch of conditionals that
  check if we have this or that chip, and if we ever need to support
  yet another chip, we will have an even more complex WatchyRTC class
* I am going to refactor this to simplify it so that way we will not
  have to worry about modifying this much if we need to support a new
  chip, or if someone else wants to support a new chip
2021-12-18 15:25:05 -07:00
Kyle Potts 2e13952609 Update library.json 2021-12-18 15:23:51 -07:00
Kyle Potts 4a34be5089 Point Rtc_Pcf863 at same library Arduino is using 2021-12-18 15:23:51 -07:00
SQFMI d2ca275658 update links 2021-12-18 15:23:51 -07:00
sqfmi 358439bbcd bump version 2021-12-18 15:23:51 -07:00
SQFMI 768f681c7b Moved clear alarm function 2021-12-18 15:23:51 -07:00
Daniel Ansorregui 81ab3feb94 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-18 15:23:07 -07:00
Daniel Ansorregui d94bf3ac54 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-18 15:20:32 -07:00
sqfmi 6fbb335552 fixed freeze bug 2021-12-18 15:20:32 -07:00
sqfmi 8ec0d046dc fixed wednesday 2021-12-18 15:20:32 -07:00
sqfmi 57725d9793 fixed setting datetime 2021-12-18 15:20:32 -07:00
Metaln00b 98c8ba1562 7_SEG: Add additional weather icons 2021-12-18 15:20:32 -07:00
sqfmi ec26c84da2 fixed bugs and change temp. sensor 2021-12-18 15:20:32 -07:00
sqfmi 7380c6b8f1 auto switch ADC pin 2021-12-18 15:20:32 -07:00
SQFMI 29e767f0f5 Update README.md 2021-12-18 15:20:32 -07:00
elasticdotventures 4dc08403f3 Update README.md
cheers, 🚀
2021-12-18 15:20:32 -07:00
sqfmi 733c1abfb9 Fix RTC
- Added RTC scan
- Support for both RTCs in abstraction lib
2021-12-18 15:20:32 -07:00
sqfmi 47976fa3de update to v1.2.7 2021-10-30 12:53:07 -04: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 d9882ab634 fixed incorrect 12h time conversion 2021-08-22 11:41:47 -07: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
SQFMI 80c4444576
Merge pull request #61 from TomasEkeli/patch-1
step count reset and temperature display bug
2021-08-05 20:33:30 -04:00
SQFMI b0ff996341
Merge branch 'master' into patch-1 2021-08-05 20:32:10 -04:00
SQFMI c34e8812d4
Merge pull request #67 from schodet/fix-temperature-position
Fix temperature position, closes #52
2021-08-05 20:22:27 -04:00
SQFMI 55c46964d8
Merge pull request #75 from nabijaczleweli/master
Fix "Please [Vv]isit" typo in firmware update screen
2021-08-05 20:14:37 -04:00
SQFMI 895a7081db
Merge pull request #94 from sqfmi/dev
Dev
2021-08-05 20:13:01 -04:00
SQFMI 11ba79c4d7
Merge pull request #91 from charlesrocket/contrib
Add CONTRIBUTING.md
2021-08-05 20:12:22 -04:00
-k 4e8f766dad Add Community block 2021-08-04 11:11:20 -07:00
-k 19fad2f9c7 Update CONTRIBUTING.md 2021-08-04 11:11:10 -07:00
-k 6744ff5a5b Create CONTRIBUTING.md 2021-08-03 17:36:52 -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
Nicolas Schodet 2f6cad2fc2 Use smaller font when temperature does not fit, closes #52
This is the case for negative temperatures (-10 for example).
2021-06-22 18:34:58 +02:00
Nicolas Schodet 3680e99634 Fix temperature position, closes #52 2021-06-20 01:55:00 +02:00
Tomas Ekeli 381d08d818
step count reset and temperature display bug
reset step count at midnight, and fix bug with temperature from 10 to 19 overlapping the unit on display
2021-06-16 23:17:58 +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 cf62ec9b3c
Update library.json 2021-03-25 09:42:45 -04:00
SQFMI 3263a162a8
Update library.properties 2021-03-24 17:10:30 -04:00
SQFMI 7d3b899123 experimental fast menu 2021-03-24 17:00:05 -04:00
SQFMI 1ae5fa2654
Merge pull request #34 from ddlsmurf/chore/cleaning_warnings
Removing some warning and potential undefined behaviours
2021-03-24 15:43:47 -04:00
SQFMI 0ea1863c7f
Merge pull request #35 from ddlsmurf/feature/platformio_support
Adding platformio library.json
2021-03-09 21:40:11 -05:00
Eric Doughty-Papassideris 0ed0d0922e Removing some warning and potential undefined behaviours 2021-03-09 23:42:51 +01:00