adafruit / Wippersnapper_Protobuf

Protocol buffer messages for Adafruit.io WipperSnapper Beta
MIT License
0 stars 2 forks source link

Support for Servo #91

Closed brentru closed 1 year ago

brentru commented 2 years ago

Provide high-level support for standard hobby servos and continuous servos using the PWM.

This API should send pulse widths (i.e: 500us to 2500us) to control the position of the servo attached to a pin.

brentru commented 2 years ago

The Firmata Protocol implements a SERVO_CONFIG message to configure a PWM-capable pin as a servo. Writing to the servo sends an extended ANALOG_MESSAGE

Reference: https://github.com/firmata/protocol/blob/master/servos.md, https://github.com/firmata/protocol/blob/master/protocol.md#extended-analog, https://github.com/firmata/arduino/blob/master/examples/ServoFirmata/ServoFirmata.ino