Skip to content

Commit 3e0c3ad

Browse files
committed
declaring the attached() method
1 parent 9dad172 commit 3e0c3ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Servo_Hardware_PWM.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ class Servo
7878
void writeMicroseconds(int value); //write pulse width in microseconds
7979
int read(); //returns the current write angle in degrees
8080
int readMicroseconds(); //returns the current write angle in microseconds
81+
bool attached(); //returns true if this servo is attached, otherwise false
8182

8283
private:
8384
uint8_t servoIndex; //number of attached Servos

0 commit comments

Comments
 (0)