enable more demos
This commit is contained in:
parent
b58fe79f2a
commit
9f4249692f
@ -16,16 +16,16 @@
|
|||||||
/*******************
|
/*******************
|
||||||
* GENERAL SETTING
|
* GENERAL SETTING
|
||||||
*******************/
|
*******************/
|
||||||
#define LV_EX_PRINTF 0 /*Enable printf-ing data in demoes and examples*/
|
#define LV_EX_PRINTF 1 /*Enable printf-ing data in demoes and examples*/
|
||||||
#define LV_EX_KEYBOARD 0 /*Add PC keyboard support to some examples (`lv_drivers` repository is required)*/
|
#define LV_EX_KEYBOARD 1 /*Add PC keyboard support to some examples (`lv_drivers` repository is required)*/
|
||||||
#define LV_EX_MOUSEWHEEL 0 /*Add 'encoder' (mouse wheel) support to some examples (`lv_drivers` repository is required)*/
|
#define LV_EX_MOUSEWHEEL 1 /*Add 'encoder' (mouse wheel) support to some examples (`lv_drivers` repository is required)*/
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEMO USAGE
|
* DEMO USAGE
|
||||||
*********************/
|
*********************/
|
||||||
|
|
||||||
/*Show some widget*/
|
/*Show some widget*/
|
||||||
#define LV_USE_DEMO_WIDGETS 0
|
#define LV_USE_DEMO_WIDGETS 1
|
||||||
#if LV_USE_DEMO_WIDGETS
|
#if LV_USE_DEMO_WIDGETS
|
||||||
#define LV_DEMO_WIDGETS_SLIDESHOW 0
|
#define LV_DEMO_WIDGETS_SLIDESHOW 0
|
||||||
#endif
|
#endif
|
||||||
@ -34,13 +34,13 @@
|
|||||||
#define LV_USE_DEMO_PRINTER 0
|
#define LV_USE_DEMO_PRINTER 0
|
||||||
|
|
||||||
/*Demonstrate the usage of encoder and keyboard*/
|
/*Demonstrate the usage of encoder and keyboard*/
|
||||||
#define LV_USE_DEMO_KEYPAD_AND_ENCODER 0
|
#define LV_USE_DEMO_KEYPAD_AND_ENCODER 1
|
||||||
|
|
||||||
/*Benchmark your system*/
|
/*Benchmark your system*/
|
||||||
#define LV_USE_DEMO_BENCHMARK 0
|
#define LV_USE_DEMO_BENCHMARK 1
|
||||||
|
|
||||||
/*Stress test for LVGL*/
|
/*Stress test for LVGL*/
|
||||||
#define LV_USE_DEMO_STRESS 0
|
#define LV_USE_DEMO_STRESS 1
|
||||||
|
|
||||||
/*Music player demo*/
|
/*Music player demo*/
|
||||||
#define LV_USE_DEMO_MUSIC 1
|
#define LV_USE_DEMO_MUSIC 1
|
||||||
|
|||||||
@ -63,13 +63,11 @@ int main(int argc, char **argv)
|
|||||||
/*Initialize the HAL (display, input devices, tick) for LVGL*/
|
/*Initialize the HAL (display, input devices, tick) for LVGL*/
|
||||||
hal_init();
|
hal_init();
|
||||||
|
|
||||||
// lv_demo_widgets();
|
lv_demo_widgets();
|
||||||
/* For printer demo set resolution to 800x480 */
|
|
||||||
// lv_demo_printer();
|
|
||||||
// lv_demo_keypad_encoder();
|
// lv_demo_keypad_encoder();
|
||||||
// lv_demo_benchmark();
|
// lv_demo_benchmark();
|
||||||
// lv_demo_stress();
|
// lv_demo_stress();
|
||||||
lv_demo_music();
|
// lv_demo_music();
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
/* Periodically call the lv_task handler.
|
/* Periodically call the lv_task handler.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user