36 for (
int i = 0; i <
BUF_MAX; i++)
buf[i] = n + i;
38 Serial.print(F(
"eeprom.SIZE(bytes): "));
39 Serial.println(eeprom.
SIZE);
43 Serial.println(F(
"write(N, us, us/byte, kbyte/s)"));
45 for (
int i = 1; i < 10000; i *= 10) {
46 uint32_t start = micros();
48 uint32_t us = micros() - start;
49 float uspb = ((float) us) / i;
51 Serial.print(F(
", "));
53 Serial.print(F(
", "));
55 Serial.print(F(
", "));
56 Serial.println(1000 / uspb);
64 Serial.println(F(
"read(N, us, us/byte, kbyte/s)"));
66 for (
int i = 1; i < 10000; i *= 10) {
67 uint32_t start = micros();
69 uint32_t us = micros() - start;
70 float uspb = ((float) us) / i;
72 Serial.print(F(
", "));
74 Serial.print(F(
", "));
76 Serial.print(F(
", "));
77 Serial.println(1000 / uspb);
82 for (
int i = 0; i <
BUF_MAX; i++) {
83 if (
buf[i] != ((n + i) & 0xff)) {
85 Serial.println(F(
": verification error"));
static uint8_t buf[BUF_MAX]
virtual int read(void *dst, uint32_t src, size_t count)
virtual int write(uint32_t dst, const void *src, size_t count)