adafruit / seesaw

I2C friend to expand capabilities of other chips.
Other
76 stars 34 forks source link

unclear documentation for getEncoderDelta #65

Closed matthewepler closed 1 year ago

matthewepler commented 1 year ago

The function definition for getEncoderDelta has a parameter whose docstring reads:

Adafruit_seesaw.cpp Line 784

*  @param encoder Which encoder to use, defaults to 0

I can't find any other mention of how an encoder is assigned this value (uint8_t). I tried using the address of my encoder and that didn't work. What is this value and where does it come from?

If I just run the function with no parameter, I get zero no matter what I do with the knob.

matthewepler commented 1 year ago

Using the returned value of getOptions as the argument for getEncoderDelta gave me a result. However, the result does not appear to be signed. It's always 2 whether I turn left or right. Will create a separate issue.