Fix 3.5 KY-009: backlight GPIO27 and G on GPIO21.
Align cyd_35r with CYD_PROJECT_GUIDE (ST7796/GT911), export flashable firmware/cyd_35r. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -118,7 +118,7 @@ static lv_obj_t *make_color_btn(lv_obj_t *scr, const char *txt, int x,
|
||||
lamp_color_t c, lv_obj_t **out_lbl) {
|
||||
lv_obj_t *btn = lv_button_create(scr);
|
||||
lv_obj_set_size(btn, UW(88), UH(40));
|
||||
lv_obj_align(btn, LV_ALIGN_TOP_LEFT, x, 72);
|
||||
lv_obj_align(btn, LV_ALIGN_TOP_LEFT, UX(x), UY(72));
|
||||
style_btn(btn, COL_BTN);
|
||||
lv_obj_add_event_cb(btn, on_color, LV_EVENT_CLICKED, (void *)(uintptr_t)c);
|
||||
lv_obj_t *lbl = lv_label_create(btn);
|
||||
|
||||
Reference in New Issue
Block a user