10#ifndef M5_UNIT_KEYBOARD_UNIT_CARD_KB2_DEFS_HPP
11#define M5_UNIT_KEYBOARD_UNIT_CARD_KB2_DEFS_HPP
19constexpr uint8_t NUMBER_OF_KEYS{43};
23constexpr keyboard::key_index_t KEY_1{0};
24constexpr keyboard::key_index_t KEY_2{1};
25constexpr keyboard::key_index_t KEY_3{2};
26constexpr keyboard::key_index_t KEY_4{3};
27constexpr keyboard::key_index_t KEY_5{4};
28constexpr keyboard::key_index_t KEY_6{5};
29constexpr keyboard::key_index_t KEY_7{6};
30constexpr keyboard::key_index_t KEY_8{7};
31constexpr keyboard::key_index_t KEY_9{8};
32constexpr keyboard::key_index_t KEY_0{9};
33constexpr keyboard::key_index_t KEY_Q{11};
34constexpr keyboard::key_index_t KEY_W{12};
35constexpr keyboard::key_index_t KEY_E{13};
36constexpr keyboard::key_index_t KEY_R{14};
37constexpr keyboard::key_index_t KEY_T{15};
38constexpr keyboard::key_index_t KEY_Y{16};
39constexpr keyboard::key_index_t KEY_U{17};
40constexpr keyboard::key_index_t KEY_I{18};
41constexpr keyboard::key_index_t KEY_O{19};
42constexpr keyboard::key_index_t KEY_P{20};
43constexpr keyboard::key_index_t KEY_DELETE{21};
44constexpr keyboard::key_index_t KEY_AA{22};
45constexpr keyboard::key_index_t KEY_A{23};
46constexpr keyboard::key_index_t KEY_S{24};
47constexpr keyboard::key_index_t KEY_D{25};
48constexpr keyboard::key_index_t KEY_F{26};
49constexpr keyboard::key_index_t KEY_G{27};
50constexpr keyboard::key_index_t KEY_H{28};
51constexpr keyboard::key_index_t KEY_J{29};
52constexpr keyboard::key_index_t KEY_K{30};
53constexpr keyboard::key_index_t KEY_L{31};
54constexpr keyboard::key_index_t KEY_ENTER{32};
55constexpr keyboard::key_index_t KEY_FN{33};
56constexpr keyboard::key_index_t KEY_SYM{34};
57constexpr keyboard::key_index_t KEY_Z{35};
58constexpr keyboard::key_index_t KEY_X{36};
59constexpr keyboard::key_index_t KEY_C{37};
60constexpr keyboard::key_index_t KEY_V{38};
61constexpr keyboard::key_index_t KEY_B{39};
62constexpr keyboard::key_index_t KEY_N{40};
63constexpr keyboard::key_index_t KEY_M{41};
64constexpr keyboard::key_index_t KEY_SPACE{42};
69constexpr char SCHAR_LEFT{
static_cast<char>(180)};
70constexpr char SCHAR_UP{
static_cast<char>(181)};
71constexpr char SCHAR_DOWN{
static_cast<char>(182)};
72constexpr char SCHAR_RIGHT{
static_cast<char>(183)};
Top level namespace of M5stack.
uint8_t character_to_mode_bits(const char ch)
Character to mode bits.
Definition unit_CardKB2_defs.cpp:246
key_index_t character_to_key_index(const char ch)
Character to key index.
Definition unit_CardKB2_defs.cpp:229