♻️ Adjust LCD init, contrast default, settings load
This commit is contained in:
@ -1834,6 +1834,9 @@ void make_name_without_ext(char *dst, char *src, size_t maxlen=MENU_CHAR_LIMIT)
|
||||
|
||||
void HMI_SDCardInit() { card.cdroot(); }
|
||||
|
||||
// Initialize or re-initialize the LCD
|
||||
void MarlinUI::init_lcd() { DWIN_Startup(); }
|
||||
|
||||
void MarlinUI::refresh() { /* Nothing to see here */ }
|
||||
|
||||
#if HAS_LCD_BRIGHTNESS
|
||||
|
@ -888,6 +888,9 @@ void make_name_without_ext(char *dst, char *src, size_t maxlen=MENU_CHAR_LIMIT)
|
||||
|
||||
void HMI_SDCardInit() { card.cdroot(); }
|
||||
|
||||
// Initialize or re-initialize the LCD
|
||||
void MarlinUI::init_lcd() { DWIN_Startup(); }
|
||||
|
||||
void MarlinUI::refresh() { /* Nothing to see here */ }
|
||||
|
||||
#if HAS_LCD_BRIGHTNESS
|
||||
|
@ -4980,7 +4980,7 @@ void CrealityDWINClass::Reset_Settings() {
|
||||
Redraw_Screen();
|
||||
}
|
||||
|
||||
void MarlinUI::init() {
|
||||
void MarlinUI::init_lcd() {
|
||||
delay(800);
|
||||
SERIAL_ECHOPGM("\nDWIN handshake ");
|
||||
if (DWIN_Handshake()) SERIAL_ECHOLNPGM("ok."); else SERIAL_ECHOLNPGM("error.");
|
||||
|
@ -79,9 +79,7 @@ void MarlinUI::set_font(const uint8_t font_nr) {
|
||||
bool MarlinUI::detected() { return true; }
|
||||
|
||||
// Initialize or re-initialize the LCD
|
||||
void MarlinUI::init_lcd() {
|
||||
DWIN_Startup();
|
||||
}
|
||||
void MarlinUI::init_lcd() { DWIN_Startup(); }
|
||||
|
||||
// This LCD should clear where it will draw anew
|
||||
void MarlinUI::clear_lcd() {
|
||||
|
Reference in New Issue
Block a user