Using Servo library to control ESCs

Hi, I'm using Servo library to control my brushless motor ESCs. If I want to turn off the motor, how do I check if the ESC was previously turned on?

Save the state in a variable or use the read() function from the Servo library to see what was written to it most recently

Ok, thanks. What does the read function return? Does it return the angle?

It returns the most recent value written to the Servo object using the write() function, so it is an angle

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.