Class library for a touchscreen-based keypad for the LCD display present on the DISCO_F429ZI board.

Dependents:   WIRE-BANDING_FT810 WIRE-BANDING_copy

Revision:
3:5f2fa06a0492
Parent:
2:51f454b7c9ab
Child:
4:9d6ea6fbb67f
--- a/KEYPAD_DISCO_F429ZI.h	Sun May 08 20:03:52 2016 +0000
+++ b/KEYPAD_DISCO_F429ZI.h	Sun May 08 21:11:54 2016 +0000
@@ -29,7 +29,7 @@
 #include "TS_DISCO_F429ZI.h"
 #include "LCD_DISCO_F429ZI.h"
 
-/** Class library for a touchscreen-based keypad for the LCD display present on the DISCO_F429ZI board. 
+/** Class library for a touchscreen-based 4x4 keypad for the LCD display present on the DISCO_F429ZI board. 
  * It requires the TS_DISCO_F429ZI and LCD_DISCO_F429ZI to also be imported into the program.
  *
  * Example:
@@ -81,6 +81,12 @@
     */
     void WriteOutBox(char *text);
     
+    /** Sets the ASCII characters for each key on the 4x4 keypad.
+    * @param 
+    *     keymap Pointer to a two-dimensional array (array[3][3]) with ASCII characters for eahc key.
+    */
+    void SetKeys(char (*keymap)[4]);
+    
     /** Sets the foreground color for the keypad keys.
     * @param 
     *     color The color constant or code ARGB(8-8-8-8).
@@ -137,7 +143,7 @@
     uint8_t ReadKeyState;
     uint16_t KeysTopY;
     uint8_t row, col;
-    uint8_t Keys[4][4];
+    char Keys[4][4];
     uint32_t MsgBColor, MsgFColor;
     uint32_t OutBColor, OutFColor;
     uint32_t KeyBColor, KeyFColor, KeyPressColor;