Class Servo
java.lang.Object
io.github.jabrena.juno.api.motors.Servo
A zero-cost servo motor handle for a standard 3-wire hobby servo (signal, power, ground),
backed by the Arduino
Servo library. Juno represents instances as their integer pin
number, so no heap allocation or object header remains in the generated program.
write(int) takes an angle in degrees, 0..180, matching the Arduino
Servo library's own range. A servo whose physical travel exceeds 180 degrees (e.g. a 270
degree servo) can only be commanded across its first 180 degrees through this API; the
remaining travel is unreachable with write.
-
Method Summary
-
Method Details
-
of
-
write
public void write(int angleDegrees)
-