adafruit / Adafruit_CircuitPython_seesaw

seesaw helper IC driver for circuitPython
MIT License
64 stars 36 forks source link

Update set_pwm_freq() for ATtiny variants #116

Closed caternuson closed 1 year ago

caternuson commented 1 year ago

The set_pwm_freq() method needs updating to check for variant (SAMD vs ATtiny) and change the first byte of cmd appropriately. See analog_write() for an example where this is already done.

As is, the first byte will be incorrect for ATtiny variants. It should be Arduino pin number.

caternuson commented 1 year ago

Closing. Fixed with #125.