chore: change some // comments to /**/
This commit is contained in:
@@ -173,7 +173,6 @@ const lv_img_dsc_t imgbtn_mid = {
|
||||
.header.always_zero = 0,
|
||||
.header.w = 5,
|
||||
.header.h = 49,
|
||||
// .data_size = 245 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
|
||||
.header.cf = LV_COLOR_FORMAT_ARGB8888,
|
||||
.data = imgbtn_mid_map,
|
||||
};
|
||||
|
||||
@@ -9,11 +9,7 @@ void lv_example_bmp_1(void)
|
||||
lv_obj_t * img = lv_img_create(lv_scr_act());
|
||||
/* Assuming a File system is attached to letter 'A'
|
||||
* E.g. set LV_USE_FS_STDIO 'A' in lv_conf.h */
|
||||
//#if LV_COLOR_DEPTH == 32
|
||||
lv_img_set_src(img, "A:lvgl/examples/libs/bmp/example_32bit.bmp");
|
||||
//#elif LV_COLOR_DEPTH == 16
|
||||
// lv_img_set_src(img, "A:lvgl/examples/libs/bmp/example_16bit.bmp");
|
||||
//#endif
|
||||
lv_obj_center(img);
|
||||
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ void lv_example_file_explorer_1(void)
|
||||
char * envvar = "HOME";
|
||||
char home_dir[LV_FS_MAX_PATH_LENGTH];
|
||||
strcpy(home_dir, "A:");
|
||||
// get the user's home directory from the HOME enviroment variable
|
||||
/* get the user's home directory from the HOME enviroment variable*/
|
||||
strcat(home_dir, getenv(envvar));
|
||||
LV_LOG_USER("home_dir: %s\n", home_dir);
|
||||
lv_file_explorer_set_quick_access_path(file_explorer, LV_EXPLORER_HOME_DIR, home_dir);
|
||||
|
||||
@@ -83,7 +83,7 @@ void lv_example_file_explorer_2(void)
|
||||
char * envvar = "HOME";
|
||||
char home_dir[LV_FS_MAX_PATH_LENGTH];
|
||||
strcpy(home_dir, "A:");
|
||||
// get the user's home directory from the HOME enviroment variable
|
||||
/* get the user's home directory from the HOME enviroment variable*/
|
||||
strcat(home_dir, getenv(envvar));
|
||||
LV_LOG_USER("home_dir: %s\n", home_dir);
|
||||
lv_file_explorer_set_quick_access_path(file_explorer, LV_EXPLORER_HOME_DIR, home_dir);
|
||||
@@ -135,7 +135,6 @@ void lv_example_file_explorer_2(void)
|
||||
lv_obj_set_size(dd, LV_PCT(30), LV_SIZE_CONTENT);
|
||||
lv_dropdown_set_options_static(dd, opts);
|
||||
lv_obj_align(dd, LV_ALIGN_RIGHT_MID, 0, 0);
|
||||
//lv_obj_align_to(dd, btn, LV_ALIGN_OUT_RIGHT_MID, 0, 0);
|
||||
|
||||
lv_obj_add_event(dd, dd_event_handler, LV_EVENT_VALUE_CHANGED, file_explorer);
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ void lv_example_file_explorer_3(void)
|
||||
char * envvar = "HOME";
|
||||
char home_dir[LV_FS_MAX_PATH_LENGTH];
|
||||
strcpy(home_dir, "A:");
|
||||
// get the user's home directory from the HOME enviroment variable
|
||||
/* get the user's home directory from the HOME enviroment variable*/
|
||||
strcat(home_dir, getenv(envvar));
|
||||
LV_LOG_USER("home_dir: %s\n", home_dir);
|
||||
lv_file_explorer_set_quick_access_path(file_explorer, LV_EXPLORER_HOME_DIR, home_dir);
|
||||
|
||||
@@ -17,8 +17,6 @@ void lv_example_style_5(void)
|
||||
/*Add a shadow*/
|
||||
lv_style_set_shadow_width(&style, 55);
|
||||
lv_style_set_shadow_color(&style, lv_palette_main(LV_PALETTE_BLUE));
|
||||
// lv_style_set_shadow_ofs_x(&style, 10);
|
||||
// lv_style_set_shadow_ofs_y(&style, 20);
|
||||
|
||||
/*Create an object with the new style*/
|
||||
lv_obj_t * obj = lv_obj_create(lv_scr_act());
|
||||
|
||||
Reference in New Issue
Block a user