Commits

Tino de Bruijn committed 87316d2

get_pin can now also return pins in SERVO mode with the 's' bit

Comments (0)

Files changed (1)

pyfirmata/pyfirmata.py

         if pin.type is DIGITAL:
             if bits[2] == 'p':
                 pin.mode = PWM
+            elif bits[2] == 's':
+                pin.mode = SERVO
             elif bits[2] is not 'o':
                 pin.mode = INPUT
         else: