Change the world

Control Software

The following example programs are available to demonstrate the basic principles of using a 4x4 keypad:

ex1_keypad_leds.c

Example that displays the value of a key that is pressed on a 4x4 keypad on 8 output LEDs.

 

ex2_keypad_lcd.c

Example program reads a keypress from a 4x4 keypad and writes it to a LCD

 

ex3_keypad_lcd2.c

Example program reads a keypress from a 4x4 keypad and writes it to a LCD, but first waits for the key to be released

 

ex4_keypad_flash.c

Example program that demonstrates the use of GetKey() in non waiting mode to allow a LED to be flashed while waiting for a new keypress on a keypad.  Please note that this example would be much better if interrupts where used; see the interrupt examples.