-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Launch All state reactions(interrupt ) if a second encoder is not connected #25
Comments
Hi, Thank you |
Hi,
I mean that the same program works with multiple hardware configurations: 2 or 4 encoders. |
Well in that case you can make the program that when it start check if the encoders are connected or no, and maybe save in some EEPROM if the configuration is 2 or 4. You can use the ID register for checking. |
Hi, I agree to have to do the initial configuration test. |
Hi. There is a bug whereby if an encoder is missing(optional) and I call updateStatus().
In this case All interrupt routines are launched for
Encoder is released!
Encoder is pushed!
Encoder is long pushed!
Encoder is double pushed!
..
all this because this function does not check the error reported by the I2C bus
_stat = readEncoderByte(REG_ESTATUS);
receive -1 = 255
in lib i don't see a test function to check the connection.
I would add a "connected" boolean during setup or reset or begin
For the rest I am fine .. thanks
-Federico
The text was updated successfully, but these errors were encountered: