Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,19 @@ A simple reader example for the `LSM303` acc-mag sensor.

A simple reader example for the `LSM6DSL` acc-gyro sensor.

## `lvglterm` LVGL Terminal for NuttShell (NSH)

LVGL application that executes NuttShell (NSH) commands entered with a
Touchscreen Keyboard and displays the NSH output. Prerequisite configuration
settings:

- `CONFIG_NSH_ARCHINIT=n` – NSH architecture initialization must be disabled.
- `CONFIG_NSH_CONSOLE=y` – NSH must be configured to use a console.
- `CONFIG_LIBC_EXECFUNCS=y` – posix_spawn() must be enabled.
- `CONFIG_PIPES=y` – Pipes must be enabled.
- `CONFIG_GRAPHICS_LVGL=y` – LVGL graphics must be enabled.
- `CONFIG_LV_FONT_UNSCII_16=y` – LVGL font UNSCII 16 must be enabled.

## `media`

The media test simply writes values onto the media hidden behind a character
Expand Down
23 changes: 23 additions & 0 deletions examples/lvglterm/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#

menuconfig EXAMPLES_LVGLTERM
tristate "LVGL Terminal"
default n
depends on GRAPHICS_LVGL
---help---
Enable LVGL Terminal

if EXAMPLES_LVGLTERM

config EXAMPLES_LVGLTERM_PRIORITY
int "lvglterm task priority"
default 100

config EXAMPLES_LVGLTERM_STACKSIZE
int "lvglterm stack size"
default 16384

endif # EXAMPLES_LVGLTERM
23 changes: 23 additions & 0 deletions examples/lvglterm/Make.defs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
############################################################################
# apps/examples/lvglterm/Make.defs
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################

ifneq ($(CONFIG_EXAMPLES_LVGLTERM),)
CONFIGURED_APPS += $(APPDIR)/examples/lvglterm
endif
32 changes: 32 additions & 0 deletions examples/lvglterm/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
############################################################################
# apps/examples/lvglterm/Makefile
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################

include $(APPDIR)/Make.defs

PROGNAME = lvglterm
PRIORITY = $(CONFIG_EXAMPLES_LVGLTERM_PRIORITY)
STACKSIZE = $(CONFIG_EXAMPLES_LVGLTERM_STACKSIZE)
MODULE = $(CONFIG_EXAMPLES_LVGLTERM)

# LVGL Terminal

MAINSRC = lvglterm.c

include $(APPDIR)/Application.mk
Loading