JorgeGzm opened a new pull request, #3614:
URL: https://github.com/apache/nuttx-apps/pull/3614

   ## Summary
   
   Extends apps/examples/lvglterm (from #3582) to also support USB HID 
keyboards. The input selection becomes an explicit three-way Kconfig choice, 
each matching the data the keyboard returns on read():
   
   - Touch (INPUT_TOUCH, default) — on-screen keyboard.
   - Matrix (INPUT_KBD_MATRIX) — keyboard_event_s events (e.g. Cardputer 
/dev/kbd0).
   - USB (INPUT_KBD_USB) — byte stream (e.g. /dev/kbda, CONFIG_USBHOST_HIDKBD).
   
   The keyboard variant now polls non-blocking from the LVGL thread. The USB 
path decodes the stream with the keyboard codec, so with CONFIG_HIDKBD_ENCODED 
the Up/Down keys scroll the terminal.
   
   ## Impact
   
   Default (touch) unchanged — existing users (e.g. PinePhone) unaffected. The 
old single physical keyboard option is split into matrix/USB because the two 
return different data (keyboard_event_s vs raw bytes); matrix configs move to 
INPUT_KBD_MATRIX (updated in the companion nuttx PR). Device path stays 
configurable via CONFIG_EXAMPLES_LVGLTERM_KBD_DEV or the first argument.
   
   ## Testing
   
   Flashed on Linum-STM32H753BI (lvglterm_kbda): USB keyboard on /dev/kbda 
echoes typed chars, runs commands, and scrolls with Up/Down. Matrix (Cardputer) 
and touch variants keep their behaviour. checkpatch/nxstyle pass; defconfigs 
canonical.
   
   <img width="663" height="682" alt="lvglterm_keyboard" 
src="https://github.com/user-attachments/assets/9f285db0-b7ab-45de-8fe7-4695e43f0d95";
 />
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to