-
Notifications
You must be signed in to change notification settings - Fork 3
/
lv_demo_benchmark.h
60 lines (47 loc) · 1.09 KB
/
lv_demo_benchmark.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* @Description: None
* @version: V1.0.0
* @Author: None
* @Date: 2023-11-01 14:17:10
* @LastEditors: LILYGO_L
* @LastEditTime: 2023-11-01 15:11:49
* @License: GPL 3.0
*/
/**
* @file lv_demo_benchmark.h
*
*/
#ifndef LV_DEMO_BENCHMARK_H
#define LV_DEMO_BENCHMARK_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "lvgl.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
typedef void finished_cb_t(void);
/**********************
* GLOBAL PROTOTYPES
**********************/
void lv_demo_benchmark(void);
void lv_demo_benchmark_run_scene(int_fast16_t scene_no);
void lv_demo_benchmark_set_finished_cb(finished_cb_t * finished_cb);
/**
* Make the benchmark work at the highest frame rate
* @param en true: highest frame rate; false: default frame rate
*/
void lv_demo_benchmark_set_max_speed(bool en);
/**********************
* MACROS
**********************/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_DEMO_BENCHMARK_H*/