hello everyone, I have a question obout how i can get 2 values to behave a sertain way.
I want that when x becomes bigger than y, y gets pushed up to the same value but i also want it the other way arround, so when y becomes a lower vallue than x, x gets pulled to the y vallue.
so when both vallues are for exapmle 10, x can become 11 but has to pull y with it or y can pull it to 9 but also has to pull x to 9 but x can never become lower than y or y higer than x
Neither can we! Show the code you have been testing with and perhaps someone can point out the errors.
Otherwise, you, your self, can debug your code by using serial print to show your variables each step of the way through you logic.
Paul