janelia-arduino / PCA9685

PCA9685 16-channel 12-bit PWM controller.
Other
15 stars 7 forks source link

library not working #2

Open ThoSanLinhHon opened 3 years ago

ThoSanLinhHon commented 3 years ago

I tried with arduino nano and ide 1.8.12 but the module does not work. Same circuit, earlier I tried with adafruit's library and it worked fine. I hooked up the OE pin to GND so I left out setupOutputEnablePin and enableOutputs. Because I made a pcb, I can't connect the OE pin to another digital pin. Is that the cause? I'm glad this library doesn't conflict with the SSD1306 library but it doesn't work. Hope you help me!

peterpolidoro commented 3 years ago

Hi. Can you be more specific about what example code you are trying and what problems you are having? You should still work if your OE pin is tied to ground. It is ok to leave out the setupOutputEnablePin and enableOutputs lines. Are you sure you are using the correct device_address? There is a fast mode plus option for the i2c (two-wire interface) perhaps you could try enabling that to see what it does.

ThoSanLinhHon @.***> writes:

I tried with arduino nano and ide 1.8.12 but the module does not work. Same circuit, earlier I tried with adafruit's library and it worked fine. I hooked up the OE pin to GND so I left out setupOutputEnablePin and enableOutputs. Because I made a pcb, I can't connect the OE pin to another digital pin. Is that the cause? I'm glad this library doesn't conflict with the SSD1306 library but it doesn't work. Hope you help me!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ThoSanLinhHon commented 3 years ago

I set the address as 0x40. Initially, I just used the ChangeOnTimeandOffTime sample example, but used constants instead of variables. I will upload the code later. Thanks!