This is a simple example sketch showing how to use the multi SPI RAM allocator.
#include <Arduino.h>
#include <SPI.h>
#include <serialram.h>
{
{ true, 1024l * 128l, 9, SerialRam::SPEED_FULL },
{ true, 1024l * 128l, 10, SerialRam::SPEED_FULL }
};
Alloc valloc;
void setup()
{
while (!Serial)
;
Serial.begin(115200);
delay(3000);
}
void loop()
{
*vpi = 42;
Serial.print("*vpi = "); Serial.println(*vpi);
valloc.free(vpi);
delay(1000);
}