In the actual code, now edited, sorry for the inconveniences, attachInterrupt is called first in the setup. I have checked by using a Serial.println in the eWrite to check for erratic write, there was none.
In the actual code, now edited, sorry for the inconveniences, attachInterrupt is called first in the setup. I have checked by using a Serial.println in the eWrite to check for erratic write, there was none.