Membrane keypad: Difference between revisions

From embeddedTS Manuals
(Initial creation)
 
m (Links auto-updated for 2022 re-branding ( https://github.com/embeddedarm/ts7553v2-utils →‎ https://github.com/embeddedTS/ts7553v2-utils))
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
=== Keypad ===
The 4 button membrane keypad allows for a 4 button input.  These are set up on GPIO pins, and are connected to the system as a standard input event device.  The four buttons are connected as arrow keys.  An example binary is included in order to demonstrate the input capabilities of these buttons:
The 4 button membrane keypad allows for a 4 button input.  These are set up on GPIO pins, and are connected to the system as a standard input event device.  The four keys are connected as arrow keys.  An example binary is included in order to demonstrate the input capabilities of these buttons:


<source lang=bash>
<source lang=bash>
/usr/local/bin/keypad-test
/usr/local/bin/keypad-test
</source>
</source>
Will draw a box around the screen, with some text.  But, whenever a button is pressed it will display a block on the LCD above the button that has been pressed.  Please note that the [[#LCD|LCD device]] must first be set up and operational before this binary will launch.
Will draw a box around the screen with some text.  When a button is pressed, it will display a block on the LCD above the button that has been pressed.  Please note that the [[#LCD|LCD device]] must first be set up and operational before this binary will launch.


See the sources for more information on this demos and how it operates.
See the [https://github.com/embeddedTS/ts7553v2-utils sources in github] for more information on this demo and how it operates.

Latest revision as of 16:37, 17 January 2022

The 4 button membrane keypad allows for a 4 button input. These are set up on GPIO pins, and are connected to the system as a standard input event device. The four buttons are connected as arrow keys. An example binary is included in order to demonstrate the input capabilities of these buttons:

/usr/local/bin/keypad-test

Will draw a box around the screen with some text. When a button is pressed, it will display a block on the LCD above the button that has been pressed. Please note that the LCD device must first be set up and operational before this binary will launch.

See the sources in github for more information on this demo and how it operates.