Closed sdmeijer closed 10 years ago
Explored by pull #22 but fix to be verified in the real world ( @sdmeijer experienced previous problems with some of these pins, so we may need to verify and troubleshoot in detail)
Did some testing on other pins. Used pin 2,4 and 5 for V-USB and pin 13 for LED. Tried pin 3, 6-12, A0-A5.
When adding pin A3 and/or A4 the keys associated to these pins will sometimes be triggered automatically. So pins 3, 6-12, A0-A2 & A5 work perfectly together. Making a total of 12 available pins (atm).
See issue #13: I've added pin 5 to the list of available pins and this one also works. Total count = 13. According to my testresults on A3 and A4, I think this is the highest possible no. of pins.
Will test it on another Shrimp to be sure...
Tested it again. Found a short circuit on my testboard (I made testboard with all the 22M resistors and connectors) and that short circuit is in the connectors for A3 and A4. Rewired (and ommitted this 2 connectors) and now everything works.
So... Pins 3, 5-12, A0-A5 are all available. 15 pins in total!!! (2 & 4 = V-USB, 13 = LED)
Yay, I thought there must have been just a temporary problem here, I couldn't figure why any pins wouldn't be able to run as digital inputs for this application. Great success!
See #23, when USBaspLoader works, then we lose 1 pin, but get 2 pins extra!
Yes, 16 pins available for input!! 0, 1, 3, 4, 5, 8, 9, 10, 11, 12 and analog pins A0, A1, A2, A3, A4, A5 (numbered as 14, 15, 16, 17, 18, 19).
See #23, it's possible to free up two more pins.
So, maybe 17 pins is possible.
Although at previous testing some pins had strange behavior, we should try to get all pins (except 2 for V-USB and 1 for LED) available.