-
Notifications
You must be signed in to change notification settings - Fork 22
readRAM()
Function reads any data type from the MCP7940's 64 bytes of SRAM memory. Addressing outside of the 64 byte space results in undefined data being returned. The optional unsigned integer return value is the number of bytes actually read.
...
MCP7940_Class MCP7940; // Create an instance of the MCP7940
...
char buffer[13] = "Hello there!"; // create and fill a character buffer
uint8_t singleByte = 123;
MCP7940.writeRAM(10,buffer); // write it to position 10 in the buffer
MCP7940.readRAM(10,buffer); // read it back from the MCP7940
Serial.print("Buffer is \"");
Serial.print(buffer);
Serial.println("\".");
MCP7940.writeRAM(10,singleByte); // write it to position 10 in the buffer
MCP7940.readRAM(10,singleByte); // read it back from the MCP7940
Serial.print("Buffer is \"");
Serial.print(buffer);
Serial.println("\".");
...
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