Skip to content

Commit a5512e3

Browse files
committed
Added note in regards to goggle expansion module.
1 parent b5e1172 commit a5512e3

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

conf/ui.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ extern "C" {
8181
#define UI_RECORD_COLS 160, 200, 200, 160, 120, 120, LV_GRID_TEMPLATE_LAST
8282
#define UI_RECORD_ROWS 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, LV_GRID_TEMPLATE_LAST
8383
#define UI_SOURCE_COLS 160, 160, 200, 160, 160, 160, LV_GRID_TEMPLATE_LAST
84-
#define UI_SOURCE_ROWS 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, LV_GRID_TEMPLATE_LAST
84+
#define UI_SOURCE_ROWS 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, LV_GRID_TEMPLATE_LAST
8585
#define UI_STORAGE_COLS 160, 160, 160, 160, 160, 160, LV_GRID_TEMPLATE_LAST
8686
#define UI_STORAGE_ROWS 60, 60, 60, 60, 60, 60, 60, 40, LV_GRID_TEMPLATE_LAST
8787
#define UI_VERSION_COLS 160, 160, 160, 160, 160, 160, 160, LV_GRID_TEMPLATE_LAST

src/ui/page_source.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ enum {
8181
static lv_coord_t col_dsc[] = {UI_SOURCE_COLS};
8282
static lv_coord_t row_dsc[] = {UI_SOURCE_ROWS};
8383

84-
static lv_obj_t *label[5] = {NULL};
84+
static lv_obj_t *label[6] = {NULL};
8585
static uint8_t oled_tst_mode = 0; // 0=Normal, 1=CB, 2=Grid, 3=All Black, 4=All White, 5=Boot logo
8686
static bool in_sourcepage = false;
8787
static btn_group_t btn_group0, btn_group1, btn_group2, btn_group3;
@@ -148,6 +148,12 @@ static lv_obj_t *page_source_create(lv_obj_t *parent, panel_arr_t *arr) {
148148
create_label_item(cont, buf, 1, ROW_BACK, 3);
149149
pp_source.p_arr.max = ROW_COUNT;
150150

151+
if (TARGET_GOGGLE == getTargetType()) {
152+
label[5] = create_label_item(cont, _lang("Analog input requires Expansion Module"), 1, ROW_COUNT, 3);
153+
lv_obj_set_style_text_font(label[5], UI_PAGE_LABEL_FONT, 0);
154+
lv_obj_set_style_pad_top(label[5], UI_PAGE_TEXT_PAD, 0);
155+
}
156+
151157
return page;
152158
}
153159

0 commit comments

Comments
 (0)