1. Tino de Bruijn
  2. pyFirmata


Tino de Bruijn  committed 87316d2

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

  • Participants
  • Parent commits 78040e6
  • Branches servo

Comments (0)

Files changed (1)

File pyfirmata/pyfirmata.py

View file
  • Ignore whitespace
         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