-
Notifications
You must be signed in to change notification settings - Fork 23
weekdayWrite()
Function sets the value of the MCP7940's day-of-week setting to a number between 1 and 7, values outside of this range are ignored. This value is user-settable and is set by default in the adjust() function to a value for the date where Monday equates to 1 and Sunday equates to 7. The value can be read using weekdayRead(). Changing this value doesn't affect the RTC's DateTime value as the day-of-week is not used in any calculations.
...
MCP7940_Class MCP7940; // Create an instance of the MCP7940
...
MCP7940.adjust(DateTime(2017,07,23,12,0,0)); // Set clock to 2017-07-23 12:00:00
MCP7940.weekdayWrite(3); // set the day of week to Wed, even though it is Sun
Serial.print("Day of week in RTC for 2017-07-23 is ");
Serial.println(MCP7940.weekdayRead());
...
Overview
Installation
Class Instantiation
DateTime Helper Class
TimeSpan Helper Class
begin()
deviceStatus()
deviceStart()
deviceStop()
now()
adjust()
calibrate()
calibrateOrAdjust()
getCalibrationTrim()
weekdayRead()
weekdayWrite()
readRAM()
writeRAM()
setMFP()
getMFP()
setAlarm()
getAlarm()
setAlarmState()
setAlarmPolarity()
getAlarmState()
clearAlarm()
getSQWSpeed()
setSQWSpeed()
setSQWState()
getPowerFail()
clearPowerFail()
getBattery()
setBattery()
getPowerDown()
getPowerUp()
readEUI() {00/01/02 only}
writEUI() {00/01/02 only}
-none-
SetAndCalibrate.ino
SetAlarms.ino
SquareWave.ino
TestBatteryBackup.ino
SimpleBatteryBackup.ino
AccessMemory.ino
RegressionTests.ino