Hello all,
I have a custom board using the PCA9685. I have CA LED’s on the board. Powering this setup using VIN on the photon for testing. The LED’s light up but i cannot change colors. I have in the loop a simple blink test. The device is being detected by the i2cScanner. Any thoughts on what im doing wrong?
#include "Adafruit_PWMServoDriver.h"
#include "Particle.h"
SYSTEM_MODE(MANUAL);
SYSTEM_THREAD(ENABLED);
void startUp() { WiFi.selectAntenna(ANT_AUTO); }
STARTUP(startUp());
Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x55);
void setup() {
pwm.begin();
pwm.setPWMFreq(1000);
}
void loop() {
for (size_t i = 0; i < 16; i++) {
pwm.setPin(i, 0);
}
delay(2000);
for (size_t i = 0; i < 16; i++) {
pwm.setPin(i, 4095);
}
delay(2000);
}
schematic attached