Commit d927e83
committed
Implement TCA8418 keyboard driver for T-Deck Pro E-Paper
Add complete keyboard support for the LilyGo T-Deck Pro E-Paper board
using the Adafruit TCA8418 library.
Features implemented:
- Full QWERTY keyboard layout (4 rows × 10 columns, 40 keys)
- Three keyboard layers: Normal, Shift, and Fn
- Modifier key support: Fn, Shift, Caps Lock
- Special key combinations (Fn + Shift = Caps Lock toggle)
- Key event handling with proper press/release detection
- Keyboard LED feedback on key presses
- Debouncing for stable input
- Integration with Bruce's KeyStroke API
Keyboard layout:
- Normal: Standard QWERTY letters and basic punctuation
- Shift: Uppercase letters and symbols (!, @, #, etc.)
- Fn: Numbers (0-9) and extended symbols ([], (), etc.)
Technical changes:
- Added Adafruit_TCA8418 library dependency
- Implemented getKeyChar() for multi-layer key mapping
- Implemented handleSpecialKeys() for modifier key logic
- Updated InputHandler() to prioritize keyboard over touch
- Added keyboard initialization in _setup_gpio()
- Documented complete keyboard layout in README
The keyboard is now fully functional and ready for use.1 parent a5ae0a4 commit d927e83
File tree
3 files changed
+249
-95
lines changed- boards/lilygo-t-deck-pro-epaper
3 files changed
+249
-95
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
65 | 98 | | |
66 | 99 | | |
67 | 100 | | |
| |||
86 | 119 | | |
87 | 120 | | |
88 | 121 | | |
89 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
90 | 128 | | |
91 | 129 | | |
92 | 130 | | |
93 | | - | |
| 131 | + | |
94 | 132 | | |
95 | 133 | | |
96 | 134 | | |
97 | 135 | | |
98 | 136 | | |
99 | 137 | | |
| 138 | + | |
100 | 139 | | |
101 | 140 | | |
102 | | - | |
103 | 141 | | |
104 | 142 | | |
105 | | - | |
| 143 | + | |
106 | 144 | | |
107 | 145 | | |
108 | 146 | | |
| |||
120 | 158 | | |
121 | 159 | | |
122 | 160 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 161 | + | |
129 | 162 | | |
130 | 163 | | |
131 | 164 | | |
| |||
0 commit comments