This is an automated email from the ASF dual-hosted git repository.

simbit18 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 229cc79e66d9d8f37b58800577e2d5142eb4948e
Author: raiden00pl <[email protected]>
AuthorDate: Thu Nov 26 11:21:09 2026 +0100

    Documentation: Add the lvglcam example.
    
    Describe the lvglcam camera dashboard, its optional cards and how to
    start it.
    
    Assisted-by: Claude:claude-opus-5-5
    Signed-off-by: raiden00pl <[email protected]>
---
 .../applications/examples/lvglcam/index.rst        | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/Documentation/applications/examples/lvglcam/index.rst 
b/Documentation/applications/examples/lvglcam/index.rst
new file mode 100644
index 00000000000..3977a3550a1
--- /dev/null
+++ b/Documentation/applications/examples/lvglcam/index.rst
@@ -0,0 +1,38 @@
+.. _lvglcam:
+
+=================================
+``lvglcam`` LVGL Camera Dashboard
+=================================
+
+LVGL dashboard with the live view of a V4L2 camera and live system data.
+It uses the V4L2 capture interface and the LVGL NuttX display driver only,
+so it runs on any board that registers a camera as ``/dev/video`` and a
+framebuffer or LCD for LVGL.
+
+The camera format is the first one that LVGL draws directly (RGB565,
+XRGB32 or BGR24).  The frame size is the largest one that fits the view, or
+``CONFIG_EXAMPLES_LVGLCAM_WIDTH`` x ``CONFIG_EXAMPLES_LVGLCAM_HEIGHT``.  The
+frames are captured into MMAP buffers and shown without a copy.  The view
+and the data column are side by side on landscape displays and stacked on
+portrait ones.
+
+The system card (uptime, CPU load, free memory) is always shown.  Optional
+cards, hidden when their device does not open:
+
+==============================  ===========================================
+Option                          Card
+==============================  ===========================================
+``EXAMPLES_LVGLCAM_ACCEL``      uORB accelerometer: roll, pitch and a chart
+``EXAMPLES_LVGLCAM_NET``        network interface link state and address
+``EXAMPLES_LVGLCAM_DEPTH``      V4L2 Z16 depth camera heatmap, up to 16x16
+``EXAMPLES_LVGLCAM_SNAPSHOT``   button that saves the shown frame as
+                                ``IMG_nnnn.BMP``
+==============================  ===========================================
+
+Start it in the background, SIGINT or SIGTERM stops it::
+
+  nsh> mount -t vfat /dev/mmcsd0 /mnt
+  nsh> lvglcam &
+
+The CPU load needs ``/proc`` mounted and ``CONFIG_SCHED_CPULOAD_*``.  See
+``stm32n6570-dk:lvglcam`` for a board configuration.

Reply via email to