diff --git a/lv_examples/1_1_lv_hello_world/lv_hello_world.c b/lv_examples/1_1_hello_world/lv_ex_hello_world.c similarity index 100% rename from lv_examples/1_1_lv_hello_world/lv_hello_world.c rename to lv_examples/1_1_hello_world/lv_ex_hello_world.c diff --git a/lv_examples/1_1_lv_hello_world/lv_hello_world.h b/lv_examples/1_1_hello_world/lv_ex_hello_world.h similarity index 100% rename from lv_examples/1_1_lv_hello_world/lv_hello_world.h rename to lv_examples/1_1_hello_world/lv_ex_hello_world.h diff --git a/lv_examples/1_2_obj_usage/obj_usage.c b/lv_examples/1_2_objects/lv_ex_objects.c similarity index 99% rename from lv_examples/1_2_obj_usage/obj_usage.c rename to lv_examples/1_2_objects/lv_ex_objects.c index c0c207798..8516c8be0 100644 --- a/lv_examples/1_2_obj_usage/obj_usage.c +++ b/lv_examples/1_2_objects/lv_ex_objects.c @@ -57,7 +57,7 @@ /********************* * INCLUDES *********************/ -#include "obj_usage.h" +#include "lv_ex_objects.h" #if USE_LV_EXAMPLE != 0 #include "lvgl/lvgl.h" @@ -91,7 +91,7 @@ static lv_action_res_t ddlist_action(lv_obj_t * ddlist, lv_dispi_t * dispi); /** * Initialize the Object usage example */ -void lv_obj_usage_init(void) +void lv_ex_objects(void) { /******************** diff --git a/lv_examples/1_2_obj_usage/obj_usage.h b/lv_examples/1_2_objects/lv_ex_objects.h similarity index 100% rename from lv_examples/1_2_obj_usage/obj_usage.h rename to lv_examples/1_2_objects/lv_ex_objects.h diff --git a/lv_examples/1_3_style_usage/style_usage.c b/lv_examples/1_3_styles/lv_ex_styles.c similarity index 100% rename from lv_examples/1_3_style_usage/style_usage.c rename to lv_examples/1_3_styles/lv_ex_styles.c diff --git a/lv_examples/1_3_style_usage/style_usage.h b/lv_examples/1_3_styles/lv_ex_styles.h similarity index 95% rename from lv_examples/1_3_style_usage/style_usage.h rename to lv_examples/1_3_styles/lv_ex_styles.h index ef814def2..6598c2a59 100644 --- a/lv_examples/1_3_style_usage/style_usage.h +++ b/lv_examples/1_3_styles/lv_ex_styles.h @@ -27,7 +27,7 @@ extern "C" { /********************** * GLOBAL PROTOTYPES **********************/ -void style_usage_init(void); +void lv_ex_styles(void); /********************** * MACROS diff --git a/lv_examples/1_5_animations/animations.h b/lv_examples/1_4_responsive/lv_ex_responsive.c similarity index 100% rename from lv_examples/1_5_animations/animations.h rename to lv_examples/1_4_responsive/lv_ex_responsive.c diff --git a/lv_examples/1_6_anti_aliasing/anti_aliasing.c b/lv_examples/1_4_responsive/lv_ex_responsive.h similarity index 100% rename from lv_examples/1_6_anti_aliasing/anti_aliasing.c rename to lv_examples/1_4_responsive/lv_ex_responsive.h diff --git a/lv_examples/1_5_animations/animations.c b/lv_examples/1_5_animations/lv_ex_animations.c similarity index 100% rename from lv_examples/1_5_animations/animations.c rename to lv_examples/1_5_animations/lv_ex_animations.c diff --git a/lv_examples/1_6_anti_aliasing/anti_aliasing.h b/lv_examples/1_5_animations/lv_ex_animations.h similarity index 100% rename from lv_examples/1_6_anti_aliasing/anti_aliasing.h rename to lv_examples/1_5_animations/lv_ex_animations.h diff --git a/lv_examples/1_7_comlex_gui_1/complex_gui_1.c b/lv_examples/1_6_anti_aliasing/lv_ex_anti_aliasing.c similarity index 100% rename from lv_examples/1_7_comlex_gui_1/complex_gui_1.c rename to lv_examples/1_6_anti_aliasing/lv_ex_anti_aliasing.c diff --git a/lv_examples/1_7_comlex_gui_1/complex_gui_1.h b/lv_examples/1_6_anti_aliasing/lv_ex_anti_aliasing.h similarity index 100% rename from lv_examples/1_7_comlex_gui_1/complex_gui_1.h rename to lv_examples/1_6_anti_aliasing/lv_ex_anti_aliasing.h diff --git a/lv_examples/1_8_new_obj_type/new_obj_type.c b/lv_examples/1_7_gui/lv_ex_gui.c similarity index 100% rename from lv_examples/1_8_new_obj_type/new_obj_type.c rename to lv_examples/1_7_gui/lv_ex_gui.c diff --git a/lv_examples/1_8_new_obj_type/new_obj_type.h b/lv_examples/1_7_gui/lv_ex_gui.h similarity index 100% rename from lv_examples/1_8_new_obj_type/new_obj_type.h rename to lv_examples/1_7_gui/lv_ex_gui.h diff --git a/lv_examples/2_1_button_ctrl/button_ctrl.c b/lv_examples/1_8_new_obj_type/lv_ex_new_obj_type.c similarity index 100% rename from lv_examples/2_1_button_ctrl/button_ctrl.c rename to lv_examples/1_8_new_obj_type/lv_ex_new_obj_type.c diff --git a/lv_examples/2_1_button_ctrl/button_ctrl.h b/lv_examples/1_8_new_obj_type/lv_ex_new_obj_type.h similarity index 100% rename from lv_examples/2_1_button_ctrl/button_ctrl.h rename to lv_examples/1_8_new_obj_type/lv_ex_new_obj_type.h diff --git a/lv_examples/2_3_keyboard_ctrl/keyboard_ctrl.c b/lv_examples/2_1_button_ctrl/lv_ex_button_ctrl.c similarity index 100% rename from lv_examples/2_3_keyboard_ctrl/keyboard_ctrl.c rename to lv_examples/2_1_button_ctrl/lv_ex_button_ctrl.c diff --git a/lv_examples/2_3_keyboard_ctrl/keyboard_ctrl.h b/lv_examples/2_1_button_ctrl/lv_ex_button_ctrl.h similarity index 100% rename from lv_examples/2_3_keyboard_ctrl/keyboard_ctrl.h rename to lv_examples/2_1_button_ctrl/lv_ex_button_ctrl.h diff --git a/lv_examples/2_2_encoder_ctrl/encoder_ctrl.c b/lv_examples/2_2_encoder_ctrl/lv_ex_encoder_ctrl.c similarity index 99% rename from lv_examples/2_2_encoder_ctrl/encoder_ctrl.c rename to lv_examples/2_2_encoder_ctrl/lv_ex_encoder_ctrl.c index 9064fe32b..a1bfea53c 100644 --- a/lv_examples/2_2_encoder_ctrl/encoder_ctrl.c +++ b/lv_examples/2_2_encoder_ctrl/lv_ex_encoder_ctrl.c @@ -1,5 +1,5 @@ /** - * @file encoder_ctrl.c + * @file lv_ex_encoder_ctrl.c * */ @@ -33,7 +33,7 @@ /********************* * INCLUDES *********************/ -#include "encoder_ctrl.h" +#include "lv_ex_encoder_ctrl.h" #if USE_LV_EXAMPLE != 0 #include "lvgl/lvgl.h" @@ -78,7 +78,7 @@ static lv_group_t * g; /*An Object Group*/ /** * Create a simple GUI to demonstrate encoder control capability */ -void encoder_ctrl_init(void) +void lv_ex_encoder_ctrl(void) { /* Create a Page screen (to make it scrollable) * and use Pretty layout to make the content responsive. diff --git a/lv_examples/2_2_encoder_ctrl/encoder_ctrl.h b/lv_examples/2_2_encoder_ctrl/lv_ex_encoder_ctrl.h similarity index 100% rename from lv_examples/2_2_encoder_ctrl/encoder_ctrl.h rename to lv_examples/2_2_encoder_ctrl/lv_ex_encoder_ctrl.h diff --git a/lv_examples/2_4_mouse_ctrl/mouse_ctrl.c b/lv_examples/2_3_keyboard_ctrl/lv_ex_keyboard_ctrl.c similarity index 100% rename from lv_examples/2_4_mouse_ctrl/mouse_ctrl.c rename to lv_examples/2_3_keyboard_ctrl/lv_ex_keyboard_ctrl.c diff --git a/lv_examples/2_4_mouse_ctrl/mouse_ctrl.h b/lv_examples/2_3_keyboard_ctrl/lv_ex_keyboard_ctrl.h similarity index 100% rename from lv_examples/2_4_mouse_ctrl/mouse_ctrl.h rename to lv_examples/2_3_keyboard_ctrl/lv_ex_keyboard_ctrl.h diff --git a/lv_examples/3_1_app_desktop/app_desktop.c b/lv_examples/2_4_mouse_ctrl/lv_ex_mouse_ctrl.c similarity index 100% rename from lv_examples/3_1_app_desktop/app_desktop.c rename to lv_examples/2_4_mouse_ctrl/lv_ex_mouse_ctrl.c diff --git a/lv_examples/3_1_app_desktop/app_desktop.h b/lv_examples/2_4_mouse_ctrl/lv_ex_mouse_ctrl.h similarity index 100% rename from lv_examples/3_1_app_desktop/app_desktop.h rename to lv_examples/2_4_mouse_ctrl/lv_ex_mouse_ctrl.h diff --git a/lv_examples/3_2_app_run/app_run.c b/lv_examples/3_1_app_desktop/lv_ex_app_desktop.c similarity index 100% rename from lv_examples/3_2_app_run/app_run.c rename to lv_examples/3_1_app_desktop/lv_ex_app_desktop.c diff --git a/lv_examples/3_2_app_run/app_run.h b/lv_examples/3_1_app_desktop/lv_ex_app_desktop.h similarity index 100% rename from lv_examples/3_2_app_run/app_run.h rename to lv_examples/3_1_app_desktop/lv_ex_app_desktop.h diff --git a/lv_examples/3_3_app_com/app_com.c b/lv_examples/3_2_app_run/lv_ex_app_run.c similarity index 100% rename from lv_examples/3_3_app_com/app_com.c rename to lv_examples/3_2_app_run/lv_ex_app_run.c diff --git a/lv_examples/3_3_app_com/app_com.h b/lv_examples/3_2_app_run/lv_ex_app_run.h similarity index 100% rename from lv_examples/3_3_app_com/app_com.h rename to lv_examples/3_2_app_run/lv_ex_app_run.h diff --git a/lv_examples/3_3_app_com/lv_ex_app_com.c b/lv_examples/3_3_app_com/lv_ex_app_com.c new file mode 100644 index 000000000..e69de29bb diff --git a/lv_examples/3_3_app_com/lv_ex_app_com.h b/lv_examples/3_3_app_com/lv_ex_app_com.h new file mode 100644 index 000000000..e69de29bb