feat: add stopwatch demo application#74
Open
aiduxiaoxiong wants to merge 1 commit intoopen-vela:devfrom
Open
Conversation
Add a simple stopwatch application demo featuring: - Start/Stop/Reset controls - Lap time recording (up to 10 laps) - Scrollable lap history list - Real-time display update at ~30 fps - Dark-themed UI with LVGL widgets Includes complete NuttX build system integration (Kconfig, Makefile, CMakeLists.txt, Make.defs) and bilingual documentation (EN/CN).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description\n\nAdd a Stopwatch demo application built with LVGL for the OpenVela platform.\n\n## Features\n\n- Start / Stop / Reset controls with intuitive button states\n- Lap time recording — up to 10 laps with scrollable history\n- Real-time display — updates at ~30 fps using
lv_timer\n- Dark-themed UI — clean design with color-coded buttons\n- Pure C implementation — lightweight, no external dependencies beyond LVGL and libuv\n\n## File Structure\n\n\nstopwatch/\n├── CMakeLists.txt # CMake build configuration\n├── Kconfig # NuttX Kconfig options\n├── Make.defs # NuttX build system integration\n├── Makefile # NuttX Makefile\n├── README.md # English documentation\n├── README_zh-cn.md # Chinese documentation\n├── stopwatch_main.c # Application entry point\n├── stopwatch_ui.c # UI creation and event handling\n└── stopwatch_ui.h # UI header file\n\n\n## Build\n\nEnable in NuttX config:\n\nCONFIG_LVX_USE_DEMO_STOPWATCH=y\n\n\n## Usage\n\nshell\nnsh> stopwatch\n\n\n## Checklist\n\n- [x] Follows existing demo structure conventions (Kconfig, Makefile, CMakeLists.txt, Make.defs)\n- [x] Apache License 2.0 headers in all source files\n- [x] Bilingual documentation (English + Chinese)\n- [x] Clean resource management (proper init/deinit)