Library for interfacing with the NXP PCA9685 PWM controller over an I2C connection. Designed with the Adafruit breakout board (of the same name) in mind.

Revision:
5:d44f88fa27a1
Parent:
3:a3410f2f061d
--- a/PCA9685.h	Tue May 10 12:14:55 2016 +0000
+++ b/PCA9685.h	Sat Jun 22 17:24:38 2019 +0000
@@ -8,7 +8,7 @@
 class PCA9685 {
     
     public:
-        PCA9685(uint8_t i2c_addr, I2C i2c_object, float frequency);
+        PCA9685(uint8_t i2c_addr, I2C *i2c_object, float frequency);
         void init(void);
         void set_pwm_output(int pwm_output, uint16_t count_on, uint16_t count_off);
         void set_pwm_output_on_0(int pwm_output, uint16_t count_off);
@@ -26,7 +26,7 @@
     private:
         int i2c_addr;
         float freq;
-        I2C i2c;
+        I2C *i2c;
 };        
 
 #endif
\ No newline at end of file