ark::AdafruitPca9685

Defined in header “ark/devices/adafruit/adafruit_pca_9685.hh”.


Interface for the Adafruit PCA 9685 PWM board.

This is a refactored version of the provided arduino driver software.

Methods

  • AdafruitPca9685(std::string device)

  • AdafruitPca9685(std::string device, uint8_t i2c_address)

  • AdafruitPca9685(std::string device, uint8_t i2c_address, uint32_t reference_clock_speed_hz)

  • ~AdafruitPca9685()

  • void reset()

  • void set_default_duty_cycle(uint8_t channel, uint16_t duty_cycle)
    Set the default duty cycle value for the given channel; this will be set in the destructor.

  • uint32_t get_frequency()

  • void set_frequency(uint32_t frequency)

  • uint16_t get_duty_cycle(uint8_t channel)

  • void set_duty_cycle(uint8_t channel, uint16_t duty_cycle)

  • uint8_t read_8_value(uint8_t in_register)

  • uint16_t read_16_value(uint8_t in_register)

  • uint32_t read_32_value(uint8_t in_register)