Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Show firmware info on MKS UI info screen #24417

Closed
1qaz2004 opened this issue Jun 27, 2022 · 4 comments
Closed

[FR] Show firmware info on MKS UI info screen #24417

1qaz2004 opened this issue Jun 27, 2022 · 4 comments
Labels
C: LCD & Controllers T: Feature Request Features requested by users.

Comments

@1qaz2004
Copy link

1qaz2004 commented Jun 27, 2022

Is your feature request related to a problem? Please describe.

Show firmware info on Marlin info screen. Tested on the platform MKS Robin Nano V3.

Are you looking for hardware support?

Presumably for any platform

Describe the feature you want

Add information (change) file draw_about.cpp
static lv_obj_t *fw_type, *board, *website, *date, *uuid, *protocol;

Additional context

static lv_obj_t *fw_type, *board, *website, *date, *uuid, *protocol;

void lv_draw_about() {
  scr = lv_screen_create(ABOUT_UI);
  lv_big_button_create(scr, "F:/bmp_return.bin", common_menu.text_back, BTN_X_PIXEL * 3 + INTERVAL_V * 4, BTN_Y_PIXEL + INTERVAL_H + titleHeight, event_handler, ID_A_RETURN);

  fw_type = lv_label_create(scr, "Firmware version: Marlin " SHORT_BUILD_VERSION);
  lv_obj_align(fw_type, nullptr, LV_ALIGN_CENTER, 0, -100);

  board = lv_label_create(scr, "Board name: " BOARD_INFO_NAME);
  lv_obj_align(board, nullptr, LV_ALIGN_CENTER, 0, -70);

  website = lv_label_create(scr, "WebSite URL: " MARLIN_WEBSITE_URL);
  lv_obj_align(website, nullptr, LV_ALIGN_CENTER, 0, -40);

  uuid = lv_label_create(scr, "UUID: " DEFAULT_MACHINE_UUID);
  lv_obj_align(uuid, nullptr, LV_ALIGN_CENTER, 0, -10);

  date = lv_label_create(scr, "Firmware date: " STRING_DISTRIBUTION_DATE);
  lv_obj_align(date, nullptr, LV_ALIGN_CENTER, 0, 20);

  protocol = lv_label_create(scr, "Protocol  version: " PROTOCOL_VERSION);
  lv_obj_align(protocol, nullptr, LV_ALIGN_CENTER, 0, 50);

}
@1qaz2004 1qaz2004 added the T: Feature Request Features requested by users. label Jun 27, 2022
@thinkyhead thinkyhead changed the title [FR] (feature summary) [FR] Show firmware info on Marlin info screen Jun 29, 2022
@thinkyhead thinkyhead changed the title [FR] Show firmware info on Marlin info screen [FR] Show firmware info on MKS UI info screen Jun 29, 2022
@thinkyhead
Copy link
Member

This would be better as a pull request, but thanks for providing the code! Someone will integrate it soon.

@1qaz2004
Copy link
Author

1qaz2004 commented Jul 3, 2022

Well thank you.

@thisiskeithb
Copy link
Member

Added in #24610

@thisiskeithb thisiskeithb removed their assignment Aug 9, 2022
@github-actions
Copy link

github-actions bot commented Oct 8, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: LCD & Controllers T: Feature Request Features requested by users.
Projects
None yet
Development

No branches or pull requests

3 participants