adafruit / Adafruit_CircuitPython_PCA9685

Adafruit CircuitPython driver for PCA9685 16-channel, 12-bit PWM LED & servo driver chip.
MIT License
120 stars 64 forks source link

No control of MODE2 register #38

Closed User8230 closed 2 years ago

User8230 commented 3 years ago

There isn't a way to control the MODE2 register. The fix is pretty easy.

WAS

# Registers:
mode1_reg = UnaryStruct(0x00, "<B")

IS

# Registers:
mode1_reg = UnaryStruct(0x00, "<B")
mode2_reg = UnaryStruct(0x01, "<B")

See: https://forums.adafruit.com/viewtopic.php?f=19&t=160780&p=790983&hilit=PCA9685+MODE2#p790983

tekktrik commented 2 years ago

Hi @User8230, I've added access to this register if you want to close the issue!