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.

Link to this function

servo_controller(config)

View Source

Creates a ServoController process.

pid = ServoKit.ServoSupervisor.servo_controller(
  driver_module: ServoKit.PCA9685,
  driver_options: %{},
  servo_module: ServoKit.StandardServo,
  servo_options: %{}
)
Link to this function

servo_controller(servo_module, servo_args)

View Source

Creates a ServoController process.

driver = ServoKit.PCA9685.new(%{})
servo_moodule = ServoKit.StandardServo
servo_options = %{}
pid = ServoKit.ServoSupervisor.servo_controller(servo_module, [driver, servo_options])