Combining type 'shiftRegister' with type 'native' for buttons in the config file? #243
Replies: 2 comments 1 reply
-
I think you've answered your own question here.
Unused pins aren't a concern on input shift register as long as you're using pull-up resistors even on those pins.
Pico has only three usable analog inputs.
You can add comment to the config file if that's what you're asking. |
Beta Was this translation helpful? Give feedback.
-
Hi,
i currently have a board with 6 shiftregisters on it for the buttons. This works perfectly. Somehow I had the idea to add just a few open contacts with connections directly to the RPI PICO's pins, to be able to add more buttons simply later. (so just free pins with a hole in the pcb in which i can solder any cable and configure anything in the YML, at least, before I was using shiftregisters).
Now the questions is obvious; as I have 16 push encoders, these take up all room on the shiftregisters. I need to use to open pins to add 4 more buttons, is this even possible? Of course I tried various YML setup's, but no idea yet if this would even be possible?
Would it be fixable differently, by using the analog pins? Although those are just 3 points, while needing 4..
If I would solve this approach by adjusting the pcb and add another shiftregister, would it be fine to either not use those connections if not needed, or just a few? Or will unconnected pins directly cause issues (Although correctly pulled up for example)?
My YML is now this. And the buttons nicely show that there are 52 buttons (48 of the registers + 4 from the analog.. But 'obviously' those connections are not analog so I guess that will never going to work, or can I mention in the config that these are digital pins (ridiculous I know, but nobody got worse from asking dumb questions :P)
Beta Was this translation helpful? Give feedback.
All reactions