26 lines
580 B
Plaintext
26 lines
580 B
Plaintext
|
#include <ESPMegaPRO_OOP.hpp>
|
||
|
|
||
|
ESPMegaPRO espmega = ESPMegaPRO();
|
||
|
|
||
|
void setup() {
|
||
|
espmega.begin();
|
||
|
//espmega.fram.write8(301, 25);
|
||
|
// Dump FRAM to a prettified table
|
||
|
for (int i = 0; i < 500; i++) {
|
||
|
if (i % 16 == 0) {
|
||
|
Serial.printf("\n%03d: ", i);
|
||
|
}
|
||
|
Serial.printf("%03d ", espmega.fram.read8(i));
|
||
|
}
|
||
|
|
||
|
// Dump FRAM again but treat it as a long string
|
||
|
Serial.printf("\n\n");
|
||
|
for (int i = 0; i < 500; i++) {
|
||
|
Serial.printf("%d: %c\n", i,espmega.fram.read8(i));
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
void loop() {
|
||
|
espmega.loop();
|
||
|
}
|