does the Arduino version of C not allow the use of default arguments for functions?
I got the following error when trying to use one:
In function 'void moveServo(int, int, int)':
error: default argument given for parameter 3 of 'void moveServo(int, int, int)' In function 'void moveServo(int, int, int)':
Here's the function:
void moveServo(int ServoPin, int PulseWidth, int time=0) {
Serial.print(" #");
Serial.print(ServoPin); //which servo to move
Serial.print(" P ");
Serial.print(PulseWidth); // the pulse width to send
if (time != 0) {
Serial.print(" T "); //temp command (time = 1 second)
Serial.print(MoveTime);
}
}