-
Notifications
You must be signed in to change notification settings - Fork 2
get()
Arnd edited this page Dec 3, 2016
·
2 revisions
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