We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dad172 commit 3e0c3adCopy full SHA for 3e0c3ad
src/Servo_Hardware_PWM.h
@@ -78,6 +78,7 @@ class Servo
78
void writeMicroseconds(int value); //write pulse width in microseconds
79
int read(); //returns the current write angle in degrees
80
int readMicroseconds(); //returns the current write angle in microseconds
81
+ bool attached(); //returns true if this servo is attached, otherwise false
82
83
private:
84
uint8_t servoIndex; //number of attached Servos
0 commit comments