Files
arduino-library-er1400/examples/erase/erase.ino
T
2021-04-24 01:37:21 +02:00

29 lines
437 B
Arduino

/*!
erase.ino
v20210423: Initial version
*/
#include <Arduino.h>
#include <ER1400.h>
#define PIN_CLK 2
#define PIN_C1 3
#define PIN_C2 4
#define PIN_C3 5
#define PIN_OUT 6
#define PIN_IN 7
ER1400 er1400(PIN_CLK, PIN_C1, PIN_C2, PIN_C3, PIN_OUT, PIN_IN);
void setup() {
int i;
for (i = 0; i < 100; i++) {
er1400.acceptAddress(i);
er1400.erase();
er1400.write();
}
}
void loop() {
}