feat(benchmark): add an API to run specific scene (#3089)

This commit is contained in:
Gabriel Wang
2022-02-12 21:56:33 +00:00
committed by embeddedt
parent 9771050b99
commit 305ad00893
3 changed files with 277 additions and 186 deletions
+2
View File
@@ -13,6 +13,8 @@ On to top of the screen the title of the current test step, and the result of th
## Run the benchmark
- In `lv_conf.h` or equivalent places set `LV_USE_DEMO_BENCHMARK 1`
- After `lv_init()` and initializing the drivers call `lv_demo_benchmark()`
- If you only want to run a specific scene for any purpose (e.g. debug, performance optimization etc.), you can call `lv_demo_benchmark_run_scene()` instead of `lv_demo_benchmark()`and pass the scene number.
## Interpret the result
File diff suppressed because it is too large Load Diff
+2
View File
@@ -28,6 +28,8 @@ extern "C" {
**********************/
void lv_demo_benchmark(void);
void lv_demo_benchmark_run_scene(int_fast16_t scene_no);
/**********************
* MACROS
**********************/