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
Digital inputs from v4.1 extension kit not working #297
Comments
…n extra leading 0 that must be removed.
…allowing full use of zynaptik GPIO pins.
Hi @orcascc ! I think the issue is fixed now. Please, update and test. It should work OK, but I recommend you clean your config file:
deleting all the variables containing 3-digit (padding 0s) in its name, like this:
or this:
After that, reconfigure the wiring layout from the weconf. Regards! |
Hy jofemodo, thanks for the update, the keys are working after I updated, clear the vars, reconfigured and checked the i2c bus (sudo watch ‘i2cget -y 1 0x21 0x12; i2cget -y 1 0x21 0x13’). Then everything works until power off, removing the power and restart. Then no one of the keys works until I check send the command above in the console again. Maybe there is still a issue with initializing the second MCP23017 (0x21)? regards, Andy |
Hy, I found another issue: Thanks, Andy |
Solved! Thanks for reporting! |
Regarding the initialization problem, i just added your "trick" to the MCP23017 initialization code and it seems to work nicely after reboot. I don't understand why it's needed. The first MCP23017 works perfectly without it, and the second one (zynaptik) works randomly, or following a pattern that i don't understand. I've been reviewing the MCP23017 specs, but i can't find an explanation. Anyway, it seems that your trick solves the problem ... so i think we can't live without understanding everthing ;-) Please, update and test. Regards, |
…with second MCP23017 (zynaptik).
yes, now everything works, thants for the fast help. Great work. best regards, Andy |
Hy,
the digital inputs from the extension kit are not working as expexted, see although https://discourse.zynthian.org/t/digital-inputs-from-v4-1-extension-set/4923.
I build a external box with 16 switches/keys and 4 pots to extend the control of zynthian. The switches are going to GND (tested with and without 10k pull up resistors).
After a reboot, no one of the keys is working in Zynthian.
After login to console an checking the second MCP23017 (0x21) I can see the changing values every time I press a key (1-16).
In Zynthian now the key 1-5 are working, but not 6-16.
My configuration you can see on the screenshots, for testing I produce notes with the keypress.
Zynthian is updated to the latest version (2020-11-09).
Thanks, Andy (orcas.cc)
The text was updated successfully, but these errors were encountered: