adafruit / Adafruit_CircuitPython_seesaw

seesaw helper IC driver for circuitPython
MIT License
60 stars 35 forks source link

Update set_pwm_freq() for ATtiny variants #116

Closed caternuson closed 10 months 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 10 months ago

Closing. Fixed with #125.