Searched refs:btn_matrix (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/samples/subsys/display/lvgl/src/ |
D | main.c | 112 lv_obj_t *btn_matrix; in main() local 116 btn_matrix = lv_buttonmatrix_create(lv_screen_active()); in main() 117 lv_obj_align(btn_matrix, LV_ALIGN_CENTER, 0, 70); in main() 118 lv_buttonmatrix_set_map(btn_matrix, (const char **)btnm_map); in main() 119 lv_obj_set_size(btn_matrix, 100, 50); in main() 122 lv_group_add_obj(btn_matrix_group, btn_matrix); in main()
|
/Zephyr-latest/samples/subsys/smf/smf_calculator/src/ |
D | main.c | 146 lv_obj_t *btn_matrix = lv_btnmatrix_create(lv_scr_act()); in setup_display() local 148 lv_btnmatrix_set_map(btn_matrix, (const char **)btnm_map); in setup_display() 149 lv_obj_align(btn_matrix, LV_ALIGN_BOTTOM_MID, 0, 0); in setup_display() 150 lv_obj_set_size(btn_matrix, lv_pct(CALC_BTN_WIDTH_PCT), lv_pct(CALC_BTN_HEIGHT_PCT)); in setup_display() 151 lv_obj_add_event_cb(btn_matrix, lv_btn_matrix_click_callback, LV_EVENT_ALL, NULL); in setup_display()
|