Servo
attach()
Servo::attach, attach, Servo.attach
Set up a servo on a particular pin. Note that, Servo can only be attached to pins with a timer.
- on the Photon, Servo can be connected to A4, A5, WKP, RX, TX, D0, D1, D2, D3
- on the P1, Servo can be connected to A4, A5, WKP, RX, TX, D0, D1, D2, D3, P1S0, P1S1
- on the Electron, Servo can be connected to A4, A5, WKP, RX, TX, D0, D1, D2, D3, B0, B1, B2, B3, C4, C5
- on Gen 3 Argon, Boron, and Xenon devices, pin A0, A1, A2, A3, D2, D3, D4, D5, D6, and D8 can be used for Servo.
- On Gen 3 B Series SoM devices, pins A0, A1, A6, A7, D4, D5, and D6 can be used for Servo.
- On Gen 3 Tracker SoM devices, pins D0 - D9 can be used for Servo.
// SYNTAX
servo.attach(pin)