Overview
- Object ID : 2745 (2018-07-23)
- Author : TheGrue | added by Archiver
- Content : Code
- Microcontroller : Propeller 1
- Language : SPIN
- Category : Human Input
- Licence : Other
Content
This will bring each Row HIGH one at a time and scan each Column individually.
If a Column shows a HIGN then the KEY variable is assigned the value of that
key. The non numerical buttons return 10-15 as shown in the diagram.
Usage: YourVariable := KP.ReadKey(Pin1, Pin8) ' Scan the Keypad and wait for the user to press a key
NOTE: This Method WILL keep scanning UNTIL a key is pressed. It forces the user
to interact before a program continues. I designed it for a machine to wait for
a user to set a value in a setup method or to have a user answer a question.