Skip to content

Commit

Permalink
Add Basic info at Navigation screen
Browse files Browse the repository at this point in the history
  • Loading branch information
jgauchia committed Sep 1, 2024
1 parent 01a045c commit 12f06ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/gui/src/mainScr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,12 @@ void createMainScr()
lv_obj_center(label);
lv_obj_align(label,LV_ALIGN_TOP_LEFT,10,30);

nameNav = lv_label_create(navTile);
lv_obj_set_style_text_font(nameNav, fontLargeMedium, 0);
lv_label_set_text_fmt(nameNav, "%s","");
lv_obj_set_width(nameNav,TFT_WIDTH-10);
lv_obj_set_pos(nameNav,10, 55);

label = lv_label_create(navTile);
lv_obj_set_style_text_font(label, fontOptions, 0);
lv_label_set_text_static(label, "Lat:");
Expand Down
1 change: 1 addition & 0 deletions lib/navigation/src/navWpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ void updateNavScreen()
{
lv_label_set_text_static(latNav, latFormatString(addWpt.lat));
lv_label_set_text_static(lonNav, lonFormatString(addWpt.lon));
lv_label_set_text_fmt(nameNav, "%s",addWpt.name);
}

0 comments on commit 12f06ca

Please sign in to comment.