Is there a way to get a number from a keypad that is variable length. For example the user could enter only 5, or multiple digit numbers like 1085, or 15281. Getting a single digit from the keypad seems simple enough but I’m not sure where to start to get multiple digits of input. If this were Python I’d add each key to a list with foo.append(key) and look at the whole list at the end, but I don’t see anything like a list or append for the Arduino. Seems like an array requires a fixed length which could be an issue.
Ideally the user pushes # on the keypad and the Arduino keeps track of what is entered, for example the user then pushes 5, 7, and 1. When they are done they push # again to end the entry. From there I’d love to have 571 in a variable I can access as a value, or 21360, or whatever value the user happens to enter.
This is for a camera shutter release I’m working on. The user will enter a delay that will be used between when a event is triggered and when the camera actually takes a picture. Any help would be greatly appreciated! If this is not possible I’m open to other suggestions too. Cheers!