PCA9685 icon indicating copy to clipboard operation
PCA9685 copied to clipboard

Setting multiple channels does not work as expected

Open ghost opened this issue 8 years ago • 1 comments

If I use xxx.setChannels(0, 15, 0); then only the first seven channels are updated with the new value. same with e.g xxx.setChannels(5, 15, 255); Only channel 5-11 is updated (again only 7 channels). I use an ESP-12 + PCA9685 (both on 3.3volt). Tried several boards with the same result. An older setup with a Mega + PCA9685 (both on 5volt) with the previous version of the library seems to be working fine (never noticed this behaviour). Single channel setting e.g. xxx.setChannel(5, 255); works ok. Q: Is this my hardware, or can you replicate this behaviour. Leo.. Edit: Tested this on a Mega + different PCA board, with current library. Same behaviour. only 7 channels are updating.

ghost avatar Dec 14 '17 21:12 ghost

I have esp32 boards and esp8266 boards on hand so I’ll investigate the issue. Probably related to the difference between uint16 definition on avr libs vs espressif libs.

On Thu, Dec 14, 2017 at 3:00 PM LvdLinde [email protected] wrote:

If I use xxx.setChannels(0, 15, 0); then only the first seven channels are updated with the new value. same with e.g xxx.setChannels(5, 15, 255); Only channel 5-11 is updated (again only 7 channels). I use an ESP-12 + PCA9685 (both on 3.3volt). Tried several boards with the same result. An older setup with a Mega + PCA9685 (both on 5volt) with the previous version of the library seems to be working fine (never noticed this behaviour). Single channel setting e.g. xxx.setChannel(5, 255); works ok. Q: Is this my hardware, or can you replicate this behaviour. Leo..

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/brunnels/PCA9685/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AAiLy17sSRuKOuDzci6eG6pxum8WRimrks5tAYxvgaJpZM4RCqCr .

brunnels avatar Dec 21 '17 17:12 brunnels