Skip to content

feat: add stopwatch demo application#74

Open
aiduxiaoxiong wants to merge 1 commit intoopen-vela:devfrom
aiduxiaoxiong:feat/stopwatch-demo
Open

feat: add stopwatch demo application#74
aiduxiaoxiong wants to merge 1 commit intoopen-vela:devfrom
aiduxiaoxiong:feat/stopwatch-demo

Conversation

@aiduxiaoxiong
Copy link
Member

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)

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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant