Command to count up Int.?

Im wondering the difference between the "for" loop you have here and the "for" loop in the arduino info page. You use "ServoPosition += 1" to count up the interger, while the tutorials say "ServoPosition ++" . Is there a difference between the two, or would using ++ do the same thing?


randofo3 months ago

They essentially do the same thing. There are often many ways to code the same thing with Arduino.

https://www.arduino.cc/en/Reference/Increment

https://www.arduino.cc/en/Reference/IncrementCompo...