The library defines dayofweek where Monday = 1 . If you expect Sunday = 1, you must offset:
The VirtuabotixRTC library is a lightweight, easy-to-use software library designed specifically for the Arduino IDE. It provides a simple set of commands to communicate with RTC chips. virtuabotixrtch arduino library
| Feature | VirtuabotixRTC | Adafruit RTClib | | :--- | :--- | :--- | | | ~3KB Flash, low RAM | ~7KB+ Flash | | Ease of Use | Very easy (Int variables) | Moderate (DateTime object) | | Timestamp support | No (manual conversion) | Yes (unixtime) | | Alarm features (DS3231) | No | Yes | | Temperature reading | No | Yes (DS3231 only) | | Best for | Beginners, small MCUs | Complex dataloggers | The library defines dayofweek where Monday = 1
| Pin | Function | |------|-----------| | VCC | 5V / 3.3V | | GND | Ground | | CLK | Serial Clock (SCLK) | | DAT | Data (I/O) | | RST | Chip Enable (CE) | | Feature | VirtuabotixRTC | Adafruit RTClib |
Performance will be slower but functional.
To use the library, you must initialize the virtuabotixRTC object with your chosen pins and use specific methods to manage time. Setting the Initial Time