samples: drivers: video: capture_to_lvgl: add menu and update the YAML

Add the Kconfig menu to the sample configuration.
Update sample.yaml by adding the shield configuration.

Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
This commit is contained in:
Charles Dias 2024-10-24 19:33:58 +01:00 committed by David Leach
parent 31093d24a7
commit 7128e33796
2 changed files with 19 additions and 2 deletions

View File

@ -3,7 +3,9 @@
# Copyright (c) 2024 Charles Dias <charlesdias.cd@outlook.com>
# SPDX-License-Identifier: Apache-2.0
source "Kconfig.zephyr"
mainmenu "Video capture to LVGL sample application"
menu "Video capture configuration"
config VIDEO_WIDTH
int "Define the width of the video"
@ -20,3 +22,7 @@ config VIDEO_HFLIP
config VIDEO_VFLIP
bool "Vertical flip"
default n
endmenu
source "Kconfig.zephyr"

View File

@ -1,10 +1,21 @@
sample:
name: Video capture to LVGL
tests:
sample.video.capture_to_lvgl:
sample.video.capture_to_lvgl.shield.weact_ov2640_cam_module:
tags:
- video
- shield
- samples
extra_args: SHIELD=weact_ov2640_cam_module
harness: console
harness_config:
fixture: fixture_camera
type: multi_line
ordered: true
regex:
- "Device name"
- "Format"
- "Capture started"
platform_allow:
- mini_stm32h743
depends_on: video