|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
#include "cdc_views/T9InputView.h"#include "cdc_views/KeyCodes.h"#include "cdc_views/RenderHelpers.h"#include "cdc_views/ToastView.h"#include "cdc_ui/ViewStack.h"#include "cdc_ui/I18n.h"#include "cdc_hal/IDisplay.h"#include "cdc_log.h"#include "esp_timer.h"#include <goodisplay/gdey029T94.h>#include <cstring>Go to the source code of this file.
Namespaces | |
| namespace | cdc |
| namespace | cdc::ui |
| Centralized key-code constants for cdc_views. | |
Functions | |
| T9InputView * | cdc::ui::showT9Input (const char *title, const char *initialText, T9InputView::SaveCallback onSave, uint16_t maxLen) |
| Shows a shared T9 input view instance. | |
Variables | |
| static const char * | TAG = "T9InputView" |
| static const char * | t9_chars [] |
| T9 digit-to-character mapping table. | |
| static constexpr int | TITLE_Y = 5 |
| Display layout constants. | |
| static constexpr int | TEXT_Y = 50 |
| static constexpr int | TEXT_MARGIN = 10 |
| static T9InputView | cdc::ui::s_sharedT9Input |
| Convenience factory/helper function. | |
|
static |
T9 digit-to-character mapping table.
Order per key: lowercase letters, uppercase letters, digit, then accented variants (CP437 single-byte codes). Adafruit-GFX must be configured with cp437(true) for the accented glyphs to render correctly.
Definition at line 28 of file T9InputView.cpp.
Referenced by cdc::ui::T9InputView::getChar(), and cdc::ui::T9InputView::getCharCount().
|
static |
T9InputView Implementation
Multi-tap text input like classic phones.
Definition at line 19 of file T9InputView.cpp.
|
staticconstexpr |
Definition at line 47 of file T9InputView.cpp.
|
staticconstexpr |
Definition at line 46 of file T9InputView.cpp.
|
staticconstexpr |
Display layout constants.
Definition at line 45 of file T9InputView.cpp.