Servo.detach

Name
servo.detach

Description
This function detach a Pinguino pin as servo driver if previously defined with servo.attach


 * Since: Beta 9.


 * Warning!: Servo library uses PIC's Timer1 (TMR1). So, be aware of that in case you plan to use a timer in your application. Otherwise you could disrupt servo library.

Syntax

 * pin : Value: Check valid values according to board : [Servo library supported boards]
 * Argument type: unsigned char


 * Output: None

Example
The following example defines and detach pin 15 as servo driver.

In the loop, pin 15 will be undefined after reach the position value 180.
 * Additional notes: When detached none of the functions servo.write, servo.setMinimumPulse, servo.setMaximumPulse will cause any efect on the detached pin. servo.read would probably return an invalid value.

Connectivity diagram is shown within the code comments.