All date and time values can be stored in a DS1390DateTime
struct. This struct is defined in the header file.
All parameters that can be passed as arguments to functions expect to receive values defined in the header file. Ex: To disable the trickle charger, call the function setTrickleChargerMode
and pass DS1390_TCH_DISABLE
as argument.
A 200ms (min) delay is required after boot. It done inside the constructor.
Century and Hundredths of Seconds registers are ignored in Epoch related functions
Works with DS1391 aswell.
Alarm-related functions not implemented yet.
Renan R. Duarte duarte.renan@hotmail.com
In 12h format, the device do not change the AM/PM bit neither increments the day of the week and day counters. Everything works in 24h mode.
Reading Hundredths of Seconds too often makes the device loose accuracy.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, 1but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.