Closed tcfranks closed 1 year ago
also, the frequency setter already checks against trying to prescale a value < 3, but does not check the prescale result of > 255.
@tekktrik in florida for 10 days with only a phone. Will tend to this when I get home!
submitted for review of suggested mod
resolves #29 submitted for review / comment.
My 2 cents. it appears the only way the prescale_reg value can go south (it's read when invoked, I think) would be for I2C to fail. According the the specsheet for PCA9685 chip, the register should be in the range of 0x03 <= value <= 0xFF. I've only suggested for the low end, but to be airtight do we want to go the full way? (spec sheet p 25 of 52)