mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-30 15:17:33 +08:00
fix(test) fix tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#include "../../lvgl.h"
|
#include "../lv_examples.h"
|
||||||
#if LV_BUILD_EXAMPLES && LV_USE_BTN
|
#if LV_BUILD_EXAMPLES && LV_USE_BTN
|
||||||
|
|
||||||
static void btn_event_cb(lv_obj_t * btn, lv_event_t event)
|
static void btn_event_cb(lv_obj_t * btn, lv_event_t event)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../lvgl.h"
|
#include "../lv_examples.h"
|
||||||
#if LV_USE_BTN && LV_BUILD_EXAMPLES
|
#if LV_USE_BTN && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../lvgl.h"
|
#include "../lv_examples.h"
|
||||||
#if LV_BUILD_EXAMPLES && LV_USE_SLIDER
|
#if LV_BUILD_EXAMPLES && LV_USE_SLIDER
|
||||||
|
|
||||||
static lv_obj_t * label;
|
static lv_obj_t * label;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
static void row_gap_anim(void * obj, int32_t v)
|
static void row_gap_anim(void * obj, int32_t v)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
static void row_gap_anim(void * obj, int32_t v)
|
static void row_gap_anim(void * obj, int32_t v)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
#if LV_USE_GRID && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ extern "C" {
|
|||||||
/*********************
|
/*********************
|
||||||
* INCLUDES
|
* INCLUDES
|
||||||
*********************/
|
*********************/
|
||||||
|
#include "../lvgl.h"
|
||||||
|
|
||||||
#include "styles/lv_example_style.h"
|
#include "styles/lv_example_style.h"
|
||||||
#include "get_started/lv_example_get_started.h"
|
#include "get_started/lv_example_get_started.h"
|
||||||
#include "widgets/lv_example_widgets.h"
|
#include "widgets/lv_example_widgets.h"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../lvgl.h"
|
#include "../lv_examples.h"
|
||||||
#if LV_BUILD_EXAMPLES
|
#if LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../lvgl.h"
|
#include "../lv_examples.h"
|
||||||
#if LV_BUILD_EXAMPLES && LV_USE_FLEX
|
#if LV_BUILD_EXAMPLES && LV_USE_FLEX
|
||||||
|
|
||||||
static void sw_event_cb(lv_obj_t * sw, lv_event_t e)
|
static void sw_event_cb(lv_obj_t * sw, lv_event_t e)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../lvgl.h"
|
#include "../lv_examples.h"
|
||||||
#if LV_BUILD_EXAMPLES && LV_USE_LIST
|
#if LV_BUILD_EXAMPLES && LV_USE_LIST
|
||||||
|
|
||||||
static uint32_t btn_cnt = 1;
|
static uint32_t btn_cnt = 1;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../lvgl.h"
|
#include "../lv_examples.h"
|
||||||
#if LV_BUILD_EXAMPLES
|
#if LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../lvgl.h"
|
#include "../lv_examples.h"
|
||||||
#if LV_BUILD_EXAMPLES && LV_USE_ARC
|
#if LV_BUILD_EXAMPLES && LV_USE_ARC
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../lvgl.h"
|
#include "../lv_examples.h"
|
||||||
#if LV_BUILD_EXAMPLES
|
#if LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../lvgl.h"
|
#include "../lv_examples.h"
|
||||||
#if LV_BUILD_EXAMPLES
|
#if LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../lvgl.h"
|
#include "../lv_examples.h"
|
||||||
#if LV_BUILD_EXAMPLES
|
#if LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../lvgl.h"
|
#include "../lv_examples.h"
|
||||||
#if LV_BUILD_EXAMPLES && LV_USE_LABEL
|
#if LV_BUILD_EXAMPLES && LV_USE_LABEL
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../lvgl.h"
|
#include "../lv_examples.h"
|
||||||
#if LV_BUILD_EXAMPLES && LV_USE_LINE
|
#if LV_BUILD_EXAMPLES && LV_USE_LINE
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../lvgl.h"
|
#include "../lv_examples.h"
|
||||||
#if LV_BUILD_EXAMPLES && LV_USE_IMG
|
#if LV_BUILD_EXAMPLES && LV_USE_IMG
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
|
|
||||||
#if LV_USE_ARC && LV_BUILD_EXAMPLES
|
#if LV_USE_ARC && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
|
|
||||||
#if LV_USE_ARC && LV_BUILD_EXAMPLES
|
#if LV_USE_ARC && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_BAR && LV_BUILD_EXAMPLES
|
#if LV_USE_BAR && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
void lv_example_bar_1(void)
|
void lv_example_bar_1(void)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_BAR && LV_BUILD_EXAMPLES
|
#if LV_USE_BAR && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_BAR && LV_BUILD_EXAMPLES
|
#if LV_USE_BAR && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
static void set_temp(void * bar, int32_t temp)
|
static void set_temp(void * bar, int32_t temp)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_BAR && LV_BUILD_EXAMPLES
|
#if LV_USE_BAR && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_BAR && LV_BUILD_EXAMPLES
|
#if LV_USE_BAR && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_BAR && LV_BUILD_EXAMPLES
|
#if LV_USE_BAR && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
//static void set_value(void *bar, int32_t v)
|
//static void set_value(void *bar, int32_t v)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_BTN && LV_BUILD_EXAMPLES
|
#if LV_USE_BTN && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
static void event_handler(lv_obj_t * obj, lv_event_t event)
|
static void event_handler(lv_obj_t * obj, lv_event_t event)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if LV_USE_BTN && LV_BUILD_EXAMPLES
|
#if LV_USE_BTN && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if LV_BUILD_EXAMPLES && LV_USE_BTN
|
#if LV_BUILD_EXAMPLES && LV_USE_BTN
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_BTNMATRIX && LV_BUILD_EXAMPLES
|
#if LV_USE_BTNMATRIX && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
static void event_handler(lv_obj_t * obj, lv_event_t event)
|
static void event_handler(lv_obj_t * obj, lv_event_t event)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_BTNMATRIX && LV_BUILD_EXAMPLES
|
#if LV_USE_BTNMATRIX && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_BTNMATRIX && LV_BUILD_EXAMPLES
|
#if LV_USE_BTNMATRIX && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
static void event_cb(lv_obj_t * obj, lv_event_t e)
|
static void event_cb(lv_obj_t * obj, lv_event_t e)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_CALENDAR && LV_BUILD_EXAMPLES
|
#if LV_USE_CALENDAR && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
static void event_handler(lv_obj_t * obj, lv_event_t event)
|
static void event_handler(lv_obj_t * obj, lv_event_t event)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_CANVAS && LV_BUILD_EXAMPLES
|
#if LV_USE_CANVAS && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_CANVAS && LV_BUILD_EXAMPLES
|
#if LV_USE_CANVAS && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
#define CANVAS_WIDTH 50
|
#define CANVAS_WIDTH 50
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_CHART && LV_BUILD_EXAMPLES
|
#if LV_USE_CHART && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
void lv_example_chart_1(void)
|
void lv_example_chart_1(void)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_CHART && LV_DRAW_COMPLEX && LV_BUILD_EXAMPLES
|
#if LV_USE_CHART && LV_DRAW_COMPLEX && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
static lv_obj_t * chart1;
|
static lv_obj_t * chart1;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_CHART && LV_BUILD_EXAMPLES
|
#if LV_USE_CHART && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
static void event_cb(lv_obj_t * chart, lv_event_t e)
|
static void event_cb(lv_obj_t * chart, lv_event_t e)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_CHART && LV_BUILD_EXAMPLES
|
#if LV_USE_CHART && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_CHART && LV_USE_SLIDER && LV_BUILD_EXAMPLES
|
#if LV_USE_CHART && LV_USE_SLIDER && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
static lv_obj_t * chart;
|
static lv_obj_t * chart;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "../../../lvgl.h"
|
#include "../../lv_examples.h"
|
||||||
#if LV_USE_CHART && LV_BUILD_EXAMPLES
|
#if LV_USE_CHART && LV_BUILD_EXAMPLES
|
||||||
|
|
||||||
static lv_obj_t * chart;
|
static lv_obj_t * chart;
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user