19 #include "Driver/MC23LC1024.h" 23 #define USE_HARDWARE_SPI 25 #if defined(USE_SOFTWARE_SPI) 26 #include "Software/SPI.h" 27 Software::SPI<BOARD::D11, BOARD::D12, BOARD::D13>
spi;
28 #elif defined(USE_HARDWARE_SPI) 29 #include "Hardware/SPI.h" 54 Serial.print(F(
"sram.SIZE = "));
55 Serial.println(
sram.SIZE);
56 Serial.print(F(
"vector.MSIZE = "));
58 Serial.print(F(
"vector.NMEMB = "));
60 Serial.print(F(
"vector.SIZE = "));
70 sample.
value = analogRead(A0);
75 uint16_t min = UINT16_MAX;
96 Serial.print(F(
"us/sample = "));
98 Serial.print(F(
"samples/s = "));
99 Serial.println(1000000 / usps);
100 Serial.print(F(
"min = "));
102 Serial.print(F(
"max = "));
104 Serial.print(F(
"avg = "));
MC23LC1024< BOARD::D10 > sram(spi)
Storage::Cache vector(sram,&sample, sizeof(sample), NMEMB)