-
Notifications
You must be signed in to change notification settings - Fork 2
clearMemory()
Arnd edited this page Dec 2, 2016
·
3 revisions
The clearMemory function will fill the complete memory with 0x00 unless the optional parameter is specified, in which case that byte value is used.
###Example
const uint8_t CS_PIN = 8; // define the CS/SS Pin used for SPI
MicrochipSRAM sram(CS_PIN); // Instantiate the class
sram.clearMemory(32); // Write value 32 to all memory locations
char test;
sram.get(123,test); // Read from memory
Serial.print("Data @ 123 is \""); // Display results
Serial.print(test);
Serial.println("\"");