ServoKit.ServoSupervisor (servo_kit v0.0.8) View Source
Supervises servo controller processes.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Creates a ServoController
process.
Creates a ServoController
process.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Creates a ServoController
process.
pid = ServoKit.ServoSupervisor.servo_controller(
driver_module: ServoKit.PCA9685,
driver_options: %{},
servo_module: ServoKit.StandardServo,
servo_options: %{}
)
Creates a ServoController
process.
driver = ServoKit.PCA9685.new(%{})
servo_moodule = ServoKit.StandardServo
servo_options = %{}
pid = ServoKit.ServoSupervisor.servo_controller(servo_module, [driver, servo_options])