Skip to content
Arnd edited this page Dec 3, 2016 · 2 revisions

get(address,data)

This get function retrieves data from the address specified into the variable data. The data parameter may be any type of standard or user constructed variable, the size of the element is computed at run time and the appropriate amount of data is read. If the memory read goes past the end of physical memory it automatically overflows back to the beginning of memory.


###Example

const uint8_t CS_PIN = 8;   // define the CS/SS Pin used for SPI
MicrochipSRAM sram(CS_PIN); // Instantiate the class
char myText[32];            // Text string to read from memory
sram.get(128,myText);       // Read 32 characters from memory address 128

Overview

Overview
Installation
Class Instantiation

Public Functions

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

Public Variables

SRAMBytes

Example Program

sram_read_write_test

Clone this wiki locally