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:
2:8017239aa374
Parent:
1:9d6633a308ba
Child:
3:a3410f2f061d
--- a/PCA9685.cpp	Wed Apr 06 21:20:14 2016 +0000
+++ b/PCA9685.cpp	Thu Apr 07 20:12:00 2016 +0000
@@ -1,7 +1,12 @@
+#ifndef PCA9685_LIBRARY_CPP
+#define PCA9685_LIBRARY_CPP
+
+
 #include "mbed.h"
 #include "PCA9685.h"
 #include "definitions.h"
 
+
 PCA9685::PCA9685(uint8_t i2c_address, I2C i2c_object, float frequency) : i2c_addr(i2c_address), freq(frequency), i2c(i2c_object)
 {
     //int two = 1 + 1;
@@ -128,4 +133,6 @@
     
     return result;
     
-}   
\ No newline at end of file
+}   
+
+#endif
\ No newline at end of file