mix bb_servo_pca9685.install (bb_servo_pca9685 v0.6.0)

Copy Markdown View Source

Installs BB.Servo.PCA9685 into a robot

Adds a BB.Servo.PCA9685.Controller to your robot module, defines a :config.:pca9685 param group for the I2C bus and address, and sets the bus name on the robot's child spec in your application module.

Actuator and sensor entries belong on individual joints and are not added automatically — a snippet is printed for you to copy.

Example

mix igniter.install bb_servo_pca9685
mix igniter.install bb_servo_pca9685 --bus i2c-2

Options

  • --robot - The robot module (defaults to {AppPrefix}.Robot).
  • --name - The controller name (default pca9685).
  • --bus - The I2C bus name (default i2c-1).