In the unit.ino code EEPROM is never written to, only read. This makes the calOffset useless.
|
void getOffset() { |
|
EEPROM.get(eeAddress, calOffset); |
|
#ifdef serial |
|
Serial.print("CalOffset from EEPROM: "); |
|
Serial.print(calOffset); |
|
Serial.println(); |
|
#endif |
|
} |
|
stepper.step(ROTATIONDIRECTION * calOffset); |
In the unit.ino code EEPROM is never written to, only read. This makes the
calOffsetuseless.split-flap/unit/unit.ino
Lines 240 to 247 in 14a22d9
split-flap/unit/unit.ino
Line 272 in 14a22d9