Hi guys,
Just drag and drop these couple of blocks but run into quite a problem.
So the app that i wrote have 2 slider that sends 3 different value (in bytes. first byte to enter a condition "if" the other 2 bytes is the target setting) over to Arduino Nano 33 IOT when a button is pressed.
But when i pressed the "save" button this is what happen:
First press: It send 0 0 (the slider is at x1 y1)
Second press: It send x1 y1
Thrid press: It send x1 y1 ( the slider is at x2 y2)
Fourth press: it send x2 y2
....etc
The problems is I have to press the save button twice to get the right value. It would have work fine for me but since im using eeprom i have to be considered the amount of time im read/write from it