Hi,
Within DS3231.cpp, there is no possibility to update the "century" bit at adress 0x05h, bit 7.
You can read it with getMonth(¢ury) but using decToBcd(month) in the setMonth(month) routine doesn't allow to write it with for example setMonth( 0x80h OR month ).
A standalone function setCentury(bool Century) could be useful to complete the library :)
Yes... I know... the "century" bit is not very useful ;)
Best regards
Hi,
Within DS3231.cpp, there is no possibility to update the "century" bit at adress 0x05h, bit 7.
You can read it with getMonth(¢ury) but using decToBcd(month) in the setMonth(month) routine doesn't allow to write it with for example setMonth( 0x80h OR month ).
A standalone function setCentury(bool Century) could be useful to complete the library :)
Yes... I know... the "century" bit is not very useful ;)
Best regards