29 #define MAX_BUFFER_LENGTH 6 34 #define PCA9685_SUBADR1 0x2 35 #define PCA9685_SUBADR2 0x3 36 #define PCA9685_SUBADR3 0x4 38 #define PCA9685_MODE1 0x0 39 #define PCA9685_PRESCALE 0xFE 43 #define LED0_OFF_L 0x8 44 #define LED0_OFF_H 0x9 46 #define ALLLED_ON_L 0xFA 47 #define ALLLED_ON_H 0xFB 48 #define ALLLED_OFF_L 0xFC 49 #define ALLLED_OFF_H 0xFD 51 #define PCA9685_MODE1_REG 0x00 52 #define PCA9685_PRESCALE_REG 0xFE 107 void servo(uint8_t port, uint8_t servo_type,
float degrees);
112 mraa_i2c_context m_i2c;
113 uint8_t m_rx_tx_buf[MAX_BUFFER_LENGTH];
adafruitss(int bus, int i2c_address)
Definition: adafruitss.cxx:34
API for the Adafruit Servo Shield.
Definition: adafruitss.hpp:83
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
void servo(uint8_t port, uint8_t servo_type, float degrees)
Definition: adafruitss.cxx:114
void setPWMFreq(float freq)
Definition: adafruitss.cxx:65