So I am trying to make a program on my Arduino nano in order to control some servos with directly complementary angles. the servos are irrelevant at the moment since that code will come later. Right now, I type in the number of the dominant servo, and it spits back the number I inputted and the number which corresponds to it. The problem is after the delay, it spits back the initially defined variables, and I don’t know how to stop it from putting anything out other than the two numbers that are complimentary for the angles? Please help!!! all of my programs up until now always double-run the Serial monitor, so any tips and tricks would be greatly appreciated!
AlternateServoAnglesc.ino (765 Bytes)