Skip to main content

Module servo

Module servo 

Source
Available on target_os=none only.
Expand description

A device abstraction for hobby servos.

This module provides a simple interface for controlling hobby positional servo motors like the SG90. See Servo for usage examples.

Use the servo! macro for a keyword-driven constructor with defaults.

Macros§

servo
Create a servo with keyword arguments and default pulse widths.

Structs§

Servo
A device abstraction for hobby servos.

Constants§

SERVO_MAX_US_DEFAULT
Default maximum pulse width for hobby servos (microseconds).
SERVO_MIN_US_DEFAULT
Default minimum pulse width for hobby servos (microseconds).