Commit Graph
358 Commits
Author SHA1 Message Date
Tyeth GundryandGitHub 5298434167 Update library.properties - bump version to 2.1.4 2.1.4 2024-04-09 18:49:01 +01:00
Anne BarelaandGitHub 18154ba845 Update README.md 2024-03-20 16:01:43 -04:00
Tyeth GundryandGitHub 7cc68ac48a Merge pull request #294 from tyeth/bump-version-2023-11-14-20-46-31
Update version number to 2.1.3
2.1.3
2023-11-15 12:59:05 +00:00
Tyeth Gundry 7f9f5da0ee Bump version number to 2.1.3 2023-11-14 20:46:32 +00:00
dherrada 33fb0400c8 Update CI action versions 2.1.2 2023-05-12 11:24:14 -04:00
Eva HerradaandGitHub 5dde49bf45 Bump to 2.1.1 2.1.1 2022-08-09 13:19:27 -04:00
Carter NelsonandGitHub a944a787d7 Merge pull request #265 from edgar-bonet/fix-warning
Fix CI failure due to unused variables
2022-08-09 07:51:17 -07:00
Edgar Bonet 1739e2e481 Fix "unused variable" warnings in DS3231_alarm.ino
These unused variables were triggering compiler warnings. As the ESP32
toolchain promotes warnings to errors, this made the CI workflow fail.
2022-08-09 12:08:41 +02:00
Eva HerradaandGitHub 6c257dacde Bump to 2.1.0 2.1.0 2022-08-08 13:25:57 -04:00
Carter NelsonandGitHub ce95623fd2 Merge pull request #257 from justinnewitter/get-alarm-values
DS3231: Add support for fetching alarm values
2022-08-04 11:48:14 -07:00
Eva HerradaandGitHub 223ca36e66 Bump to 2.0.3 2.0.3 2022-05-16 16:00:28 -04:00
Limor "Ladyada" FriedandGitHub 49af24426b Merge pull request #259 from edgar-bonet/use-bool
Replace `boolean` type by `bool`
2022-05-14 11:43:34 -04:00
Edgar Bonet b6936009ff Replace boolean type by bool
The Arduino-specific `boolean' type is being phased out. Use the
standard `bool' type instead.
2022-05-13 21:31:43 +02:00
25964685ca Apply suggestions from code review
Handle edge case where the result of calling getAlarm is used to set the alarm
and the mode is set to "Day"

Co-authored-by: Edgar Bonet <edgar-bonet@users.noreply.github.com>
2022-02-09 21:25:28 -05:00
Justin Newitter f5adeb7526 DS3231: Add support for fetching alarm values
This commit introduces 4 new methods for DS3231 devices:
  - DateTime getAlarm1();
  - DateTime getAlarm2();
  - Ds3231Alarm1Mode getAlarm1Mode();
  - Ds3231Alarm2Mode getAlarm2Mode();

The getAlarm methods assume that the alarms are stored
using 24 hour format since this library doesn't support
storing alarms in 12 hour format (DS3231 hardware supports
this).

Updated the DS3231_alarm example to fetch alarm1. Also
improved the formatting of the serial logging.
2022-02-09 02:26:37 -05:00
Eva HerradaandGitHub 6f73714314 Bump to 2.0.2 2.0.2 2021-12-20 22:59:03 -05:00
Matt GoodrichandGitHub b4791ebcaa Merge pull request #250 from edgar-bonet/more-const
Improve const correctness
2021-12-07 09:42:17 -05:00
Edgar Bonet bc6139e85d Add one missing 'const' 2021-12-06 15:15:48 +01:00
Edgar Bonet efc4eb72e7 Improve const correctness 2021-12-04 14:13:47 +01:00
Dylan HerradaandGitHub 6be8310b82 Bump to 2.0.1 2.0.1 2021-11-08 15:39:46 -05:00
Carter NelsonandGitHub c66b9ec43d Merge pull request #246 from caternuson/misc_fixes
Fix ESP8266 WDT resets and DS3231 century bit issue
2021-11-02 15:08:54 -07:00
caternuson 313472d7c3 misc fixes 2021-11-02 13:59:04 -07:00
Carter NelsonandGitHub 3349ae1e27 Merge pull request #245 from edgar-bonet/fix-pr244
Fix register address and line terminators
2.0.0
2021-10-29 09:57:53 -07:00
Edgar Bonet 6ff0aac9e9 Ensure all files are properly terminated
Since we use Unix text format, all lines, including the last one, should
be terminated by ASCII LF.
2021-10-29 17:40:44 +02:00
Edgar Bonet 3ae553e6e5 Fix register address in RTC_PCF8563::now() 2021-10-29 17:36:38 +02:00
Matt GoodrichandGitHub 27b5be25f4 Merge pull request #244 from caternuson/iss243_busio
Convert to BusIO and refactor
2021-10-29 10:55:40 -04:00
caternuson 3dff7bec2f dox2 2021-10-28 14:30:36 -07:00
caternuson 0d05d5b280 dox 2021-10-28 14:12:22 -07:00
caternuson 237b0d4413 convert and refactor 2021-10-28 13:53:09 -07:00
Dylan HerradaandGitHub 80bae7a0d3 Bump to 1.14.2 1.14.2 2021-10-25 15:50:39 -04:00
Limor "Ladyada" FriedandGitHub b73a07c2d8 Merge pull request #242 from edgar-bonet/no-dead-cpp
Remove vestigial pre-processor code
2021-10-25 10:25:06 -04:00
Edgar Bonet 610c4cb0b7 Remove vestigial pre-processor code
On RTClib 1.13.0, the default TwoWire instance was:

 - TinyWireM on ATtinies
 - Wire1 on Arduino Due
 - Wire on everything else

This was achieved by #defining Wire in RTClib.cpp.

Since commit ae29ca906c, the Wire object
is not directly referenced by RTClib.cpp anymore, hence the default
instance is Wire on all platforms. This is fine, as the user can select
another instance if they wish.

Acknowledge this and remove the now useless pre-processor code.
2021-10-25 14:35:16 +02:00
Dylan HerradaandGitHub b07493a0f9 Bump to 1.14.1 1.14.1 2021-08-03 12:40:25 -04:00
Matt GoodrichandGitHub 4ece412b89 Merge pull request #236 from edgar-bonet/no-static
Make RTC_Millis and RTC_Micros non-static
2021-08-02 10:30:03 -04:00
Matt GoodrichandGitHub 4bb6076374 Merge pull request #235 from edgar-bonet/doc
Small documentation enhancements
2021-08-02 10:28:35 -04:00
Matt GoodrichandGitHub 2a619dc845 Merge pull request #238 from edgar-bonet/fix-doc
Fix the build of reference documen
2021-08-02 10:12:51 -04:00
Edgar Bonet 66efefba7b CI: run Doxygen on the src directory
Now that the sources have moved to src, the script
doxy_gen_and_deploy.sh has to be told where to look for them.
Otherwise we end up with an empty documentation site.
2021-07-31 18:28:18 +02:00
Edgar Bonet 70d356f497 Add missing Doxygen documentation
Pull request #231 added a new member to each RTC class, and a new
parameter to each begin() method. Add the corresponding Doxygen
documentation.
2021-07-31 18:28:18 +02:00
Dylan HerradaandGitHub 33707a6817 Bump to 1.14.0 1.14.0 2021-07-22 11:20:05 -04:00
Edgar Bonet afb5a25390 Make RTC_Millis and RTC_Micros non-static
Their data members and methods are not static anymore, which makes it
possible to create multiple instances.

A few comments have been reworded and moved around.
2021-07-17 23:13:18 +02:00
Edgar Bonet f604a56263 Add RTC_PCF8563 to the list of available classes 2021-07-17 22:02:40 +02:00
Edgar Bonet 9f2a6c43ff Link to Adafruit's tutorial on clang-format 2021-07-17 14:13:26 +02:00
Matt GoodrichandGitHub 0b87d85610 Merge pull request #231 from ubidefeo/master
Added option to initialise lib with custom TwoWire interface
2021-07-16 14:45:56 -04:00
ubi 836a2bcd97 refactored the custom TwoWire * to be a protected member of each class 2021-05-25 16:31:31 +02:00
ubi 753383ee11 Clang-format applied to sources 2021-05-25 00:29:30 +02:00
ubi ae29ca906c refactored begin() methods to default *wireInstance to &Wire as requested by @ladyada 2021-05-23 11:55:29 +02:00
ubi 0f9e19773a limiting example compilation to Metro M4 since other SAMD boards in the tests have SERCOM0 already in use 2021-05-22 23:26:57 +02:00
ubi b150509be6 added example for custom TwoWire bus on SAMD21 2021-05-16 00:37:04 +02:00
ubi 53304211ec moved source files to the src folder for specs compliance 2021-05-15 11:32:45 +02:00
ubi 2b1ec8b3cd fixed library.properties to comply with specifications (Arduino Lint LP036: sentence repeating paragraph) 2021-05-15 11:30:55 +02:00