mirror of
https://github.com/m5stack/CM4Stack_lvgl.git
synced 2026-05-20 10:51:21 -07:00
SimpleClock
CM4Stack_LvglDemo
Lvgl simple clock demo for CM4STACK
File tree
.
├── CMakeLists.txt
├── CopyLib.sh
├── README.md
├── UI
├── lv_conf.h
├── lv_drv_conf.h
├── lv_porting
├── lvgl
├── main.cpp
├── pic.png
├── tick.c
└── tick.h
Update submodules
git submodule init
git submodule update
Install SDL2
sudo apt update
sudo apt install libsdl2-dev
Copy the Lvgl related library from example/Basic
# Run copy script
./CopyLib.sh
# Or Manually
cp -r ../Basic/lv_porting .
cp -r ../Basic/lvgl .
Build
mkdir build && cd build
cmake .. && make
Run
./cm4LvglDemo
Description
Languages
C
97.6%
C++
1.5%
CMake
0.9%
