nuttx-apps/examples/lvglterm
Jorge Guzman dd24407c71 examples/lvglterm: add USB HID keyboard input with cursor scrolling
Rework the terminal input selection into an explicit three-way Kconfig
choice so the format each keyboard delivers is picked up front:

  - On-screen keyboard (touch) - default, unchanged behaviour.
  - Matrix / upper-half keyboard - reads struct keyboard_event_s events
    (for example the M5Stack Cardputer matrix on /dev/kbd0).
  - USB HID keyboard - reads a byte stream (for example /dev/kbda with
    CONFIG_USBHOST_HIDKBD).

The physical-keyboard variant now polls the device non-blocking from the
LVGL thread (no dedicated task), mirroring the touch variant.  The USB
path decodes the stream with the keyboard codec, so with a driver built
for CONFIG_HIDKBD_ENCODED the Up/Down cursor keys scroll the terminal;
a plain-ASCII stream still works as ordinary key presses.

Signed-off-by: Jorge Guzman <jorge.gzm@gmail.com>
2026-07-07 09:52:42 +08:00
..
CMakeLists.txt examples/lvglterm: add USB HID keyboard input with cursor scrolling 2026-07-07 09:52:42 +08:00
Kconfig examples/lvglterm: add USB HID keyboard input with cursor scrolling 2026-07-07 09:52:42 +08:00
lvglterm.c examples/lvglterm: add USB HID keyboard input with cursor scrolling 2026-07-07 09:52:42 +08:00
lvglterm.h examples/lvglterm: support physical keyboard input 2026-07-03 09:16:58 -03:00
lvglterm_kbd.c examples/lvglterm: add USB HID keyboard input with cursor scrolling 2026-07-07 09:52:42 +08:00
lvglterm_touch.c examples/lvglterm: support physical keyboard input 2026-07-03 09:16:58 -03:00
Make.defs examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Makefile examples/lvglterm: add USB HID keyboard input with cursor scrolling 2026-07-07 09:52:42 +08:00