SunSim not working yet
This commit is contained in:
@@ -75,6 +75,7 @@ void ui_event_wifibtn(lv_event_t * e);
|
||||
lv_obj_t * ui_wifibtn;
|
||||
void ui_event_growmodebtn(lv_event_t * e);
|
||||
lv_obj_t * ui_growmodebtn;
|
||||
void ui_event_homebtn(lv_event_t * e);
|
||||
lv_obj_t * ui_homebtn;
|
||||
|
||||
|
||||
@@ -174,6 +175,14 @@ void ui_event_growmodebtn(lv_event_t * e)
|
||||
_ui_screen_change(&ui_Screen6, LV_SCR_LOAD_ANIM_FADE_ON, 500, 0, &ui_Screen6_screen_init);
|
||||
}
|
||||
}
|
||||
void ui_event_homebtn(lv_event_t * e)
|
||||
{
|
||||
lv_event_code_t event_code = lv_event_get_code(e);
|
||||
lv_obj_t * target = lv_event_get_target(e);
|
||||
if(event_code == LV_EVENT_CLICKED) {
|
||||
_ui_screen_change(&ui_Screen1, LV_SCR_LOAD_ANIM_FADE_ON, 500, 0, &ui_Screen1_screen_init);
|
||||
}
|
||||
}
|
||||
void ui_event_wifikeyboard(lv_event_t * e)
|
||||
{
|
||||
lv_event_code_t event_code = lv_event_get_code(e);
|
||||
|
||||
@@ -85,6 +85,7 @@ void ui_event_wifibtn(lv_event_t * e);
|
||||
extern lv_obj_t * ui_wifibtn;
|
||||
void ui_event_growmodebtn(lv_event_t * e);
|
||||
extern lv_obj_t * ui_growmodebtn;
|
||||
void ui_event_homebtn(lv_event_t * e);
|
||||
extern lv_obj_t * ui_homebtn;
|
||||
// SCREEN: ui_Screen5
|
||||
void ui_Screen5_screen_init(void);
|
||||
|
||||
@@ -69,5 +69,6 @@ void ui_Screen4_screen_init(void)
|
||||
|
||||
lv_obj_add_event_cb(ui_wifibtn, ui_event_wifibtn, LV_EVENT_ALL, NULL);
|
||||
lv_obj_add_event_cb(ui_growmodebtn, ui_event_growmodebtn, LV_EVENT_ALL, NULL);
|
||||
lv_obj_add_event_cb(ui_homebtn, ui_event_homebtn, LV_EVENT_ALL, NULL);
|
||||
|
||||
}
|
||||
|
||||
@@ -14,12 +14,16 @@ void ui_Screen6_screen_init(void)
|
||||
lv_roller_set_options(ui_starthour,
|
||||
"00\n01\n02\n03\n04\n05\n06\n07\n08\n09\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n",
|
||||
LV_ROLLER_MODE_NORMAL);
|
||||
lv_roller_set_selected(ui_starthour, 18, LV_ANIM_OFF);
|
||||
lv_obj_set_height(ui_starthour, 50);
|
||||
lv_obj_set_width(ui_starthour, LV_SIZE_CONTENT); /// 1
|
||||
lv_obj_set_x(ui_starthour, -60);
|
||||
lv_obj_set_y(ui_starthour, -65);
|
||||
lv_obj_set_align(ui_starthour, LV_ALIGN_CENTER);
|
||||
|
||||
lv_obj_set_style_bg_image_recolor(ui_starthour, lv_color_hex(0xFFFFFF), LV_PART_SELECTED | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_image_recolor_opa(ui_starthour, 255, LV_PART_SELECTED | LV_STATE_DEFAULT);
|
||||
|
||||
ui_startmin = lv_roller_create(ui_Screen6);
|
||||
lv_roller_set_options(ui_startmin,
|
||||
"00\n01\n02\n03\n04\n05\n06\n07\n08\n09\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31\n32\n33\n34\n35\n36\n37\n38\n39\n40\n41\n42\n43\n44\n45\n46\n47\n48\n49\n50\n51\n52\n53\n54\n55\n56\n57\n58\n59\n",
|
||||
@@ -62,6 +66,7 @@ void ui_Screen6_screen_init(void)
|
||||
lv_roller_set_options(ui_endhour,
|
||||
"00\n01\n02\n03\n04\n05\n06\n07\n08\n09\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n",
|
||||
LV_ROLLER_MODE_NORMAL);
|
||||
lv_roller_set_selected(ui_endhour, 12, LV_ANIM_OFF);
|
||||
lv_obj_set_height(ui_endhour, 50);
|
||||
lv_obj_set_width(ui_endhour, LV_SIZE_CONTENT); /// 1
|
||||
lv_obj_set_x(ui_endhour, -60);
|
||||
|
||||
Reference in New Issue
Block a user