error invalid use of member function (did you forget the '()' ?)

what is the problem

if ((idFinger >=0) && (servo.write=(90)){
servo.write(-90);
}

sketch_aug04a.ino (3.05 KB)

Please post the full error message

Count your parentheses.

Be aware also that servo.write=(90) is an assignment, not a test.

DKWatson:
Count your parentheses.

Be aware also that servo.write=(90) is an assignment, not a test.

+1

Servo.write=(90) is all wrong. It isn't clear what was intended by this, but there are numerous problems. That specific error is because you are trying to assign a numeric value to servo.write. you can't do that, you can only call servo.write.

Perhaps you meant "(servo.read() == 90)" (Was the last positioning command to the servo "servo.write(90)"?)