This is a portion of code, the part I need help with, that sends data to Arduino to run a motor. Everything works great, the motor runs in the right direction, and for the number of rotations entered, so that's all good.
But what I want to do is hit the reset button, and have the previously entered data cleared, and start over.
Keep in mind, I'm 62, and self taught, and while I know enough to be dangerous, a lot of this is a mystery as to how it works.
(code below)
Thanks for any help.