-
Notifications
You must be signed in to change notification settings - Fork 1
memSize()
Arnd edited this page Sep 4, 2017
·
2 revisions
This function will return the total number of bytes available on the memory_number index, which starts at 0. Any invalid index results in a size of 0 being returned.
###Example
MB85_FRAM_Class FRAM;
...
uint8_t chips_detected = FRAM.begin(); // return number of memories
Serial.print("Found ");
Serial.print(chips_detected);
Serial.println(" MB85nnn memory chips");
for(uint8_t i=0;i<chips_detected;i+) {
Serial.print("Memory ");
Serial.print(i);
Serial.print(" has ");
Serial.print(FRAM.memSize(i));
Serial.println(" bytes capacity.");
} // of for-next each memory
...