examples/lvglterm: Add LVGL Terminal for NSH #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds an LVGL App that executes NSH Commands (entered with a Touchscreen Keyboard) and renders the NSH Output. The app follows the same design as the
lvgldemo
app and is explained here: "NuttX RTOS for PinePhone: LVGL Terminal for NSH Shell"Modified Files
examples/README.md
: Added doc forlvglterm
appNew Files
examples/lvglterm/lvglterm.c
: LVGL Terminal Appexamples/lvglterm/Makefile
,Make.defs
: Makefile for LVGL Terminalexamples/lvglterm/Kconfig
: Added menuconfig option for "Application Configuration > Examples > LVGL Terminal"Impact
LVGL Terminal is not called by any existing code.
Testing
We tested LVGL Terminal on PINE64 PinePhone:
Build Settings
Screenshot
Demo Video
Note that NSH Architecture-Specific Initialization
CONFIG_NSH_ARCHINIT
should be disabled. That's because LVGL Terminal starts a new task for NSH, which will redo the Architecture-Specific Initialization ifCONFIG_NSH_ARCHINIT
is enabled.LVGL Terminal will handle the initialization when
CONFIG_NSH_ARCHINIT
is disabled.