mattjlewis / diozero

Java Device I/O library that is portable across Single Board Computers and microcontrollers. Tested with Raspberry Pi, Odroid C2, BeagleBone Black, Next Thing CHIP, Asus Tinker Board and Arduinos / Pico. Supports GPIO, I2C, SPI as well as Serial communication. Also known to work with Udoo Quad.
https://www.diozero.com
MIT License
261 stars 59 forks source link

Allows ServoTrim to set 0 to X arc for the motor. #198

Closed EAGrahamJr closed 4 months ago

EAGrahamJr commented 4 months ago

Fixes #197

The default mapping would turn out non-zero based angle values because the ddefault assumption is for a 180-degree motor. This new constructor set up the servo to turn from it's baseline 0 degrees to whatever maximum is supplied.

Also added a definition for MG90S metal-gear micro-servos.