Skip to content

clearMemory()

Arnd edited this page Dec 2, 2016 · 3 revisions

clearMemory([clear_value])

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("\"");

Overview

Overview
Installation
Class Instantiation

Public Functions

get()
put()
clearMemory()
fillMemory()

Public Variables

SRAMBytes

Example Program

sram_read_write_test

Clone this wiki locally