Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
F7_TSKeypad_MultiKey Class Reference
Class library for a TS Keypad and retrieving multiple keys, then press enter and the values are stored and the keypad disappears. More...
#include <F7_TSKeypad_MultiKey.h>
Public Member Functions | |
| F7_TSKeypad_MultiKey () | |
| Constructor. | |
| void | getkeys (char str[], uint8_t startx, uint8_t starty, char char1, char char2, char char3, char char4, char char5, char char6, char char7, char char8, char char9, char char10, char char11, char char12, char char13, char char14, char char15, char char16) |
| Retrieves the keys selected as a string. | |
Detailed Description
Class library for a TS Keypad and retrieving multiple keys, then press enter and the values are stored and the keypad disappears.
Example:
*#include "mbed.h" *#include "F7_TSKeypad_MultiKey.h" *F7_TSKeypad_MultiKey keypad; *LCD_DISCO_F746NG lcd; *uint8_t text1[30]; *char s[100]; *int main() *{ lcd.SetFont(&Font12); lcd.Clear(LCD_COLOR_BLUE); lcd.SetBackColor(LCD_COLOR_BLUE); lcd.SetTextColor(LCD_COLOR_WHITE); while(1) { keypad.getkeys(s, 170, 20, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P'); sprintf((char*)text1, "%s", s); lcd.DisplayStringAt(0, LINE(5), (uint8_t *)&text1, LEFT_MODE); wait(1); } *}
Definition at line 65 of file F7_TSKeypad_MultiKey.h.
Constructor & Destructor Documentation
Constructor.
Definition at line 4 of file F7_TSKeypad_MultiKey.cpp.
Member Function Documentation
| void getkeys | ( | char | str[], |
| uint8_t | startx, | ||
| uint8_t | starty, | ||
| char | char1, | ||
| char | char2, | ||
| char | char3, | ||
| char | char4, | ||
| char | char5, | ||
| char | char6, | ||
| char | char7, | ||
| char | char8, | ||
| char | char9, | ||
| char | char10, | ||
| char | char11, | ||
| char | char12, | ||
| char | char13, | ||
| char | char14, | ||
| char | char15, | ||
| char | char16 | ||
| ) |
Retrieves the keys selected as a string.
- Parameters:
-
str[] - stores the keys selected in this array. startx - to set x start pos of the keypad. starty - to set y start pos of the keypad. char1 - char16 to change the keys of the keypad.
- Return values:
-
None.
Definition at line 175 of file F7_TSKeypad_MultiKey.cpp.
Generated on Thu Sep 22 2022 04:31:38 by
1.7.2