Skip to content

Commit 4d38b2c

Browse files
committed
Move config option
1 parent 09e3580 commit 4d38b2c

File tree

7 files changed

+11
-10
lines changed

7 files changed

+11
-10
lines changed

Marlin/Configuration.h

+2
Original file line numberDiff line numberDiff line change
@@ -3296,6 +3296,8 @@
32963296
#define TFT_FONT NOTOSANS
32973297

32983298
//#define TFT_SHARED_IO // I/O is shared between TFT display and other devices. Disable async data transfer.
3299+
3300+
//#define COMPACT_MARLIN_BOOT_LOGO // Use compressed data to save Flash space.
32993301
#endif
33003302

33013303
#if ENABLED(TFT_LVGL_UI)

Marlin/Configuration_adv.h

-3
Original file line numberDiff line numberDiff line change
@@ -1547,9 +1547,6 @@
15471547
#if ANY(HAS_MARLINUI_U8GLIB, TFT_COLOR_UI)
15481548
#define BOOT_MARLIN_LOGO_SMALL // Show a smaller Marlin logo on the Boot Screen (saving lots of flash)
15491549
#endif
1550-
#if ENABLED(TFT_COLOR_UI)
1551-
//#define BOOT_MARLIN_LOGO_USES_RLE16 // Uses less flash space.
1552-
#endif
15531550
#if HAS_MARLINUI_U8GLIB
15541551
//#define BOOT_MARLIN_LOGO_ANIMATED // Animated Marlin logo. Costs ~3260 (or ~940) bytes of flash.
15551552
#endif

Marlin/src/inc/Changes.h

+2
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,8 @@
659659
#error "Z3_USE_ENDSTOP is obsolete. Instead set Z2_STOP_PIN directly. (e.g., 'Z3_USE_ENDSTOP _ZMAX_' becomes 'Z3_STOP_PIN Z_MAX_PIN')"
660660
#elif defined(Z4_USE_ENDSTOP)
661661
#error "Z4_USE_ENDSTOP is obsolete. Instead set Z4_STOP_PIN directly. (e.g., 'Z4_USE_ENDSTOP _ZMAX_' becomes 'Z4_STOP_PIN Z_MAX_PIN')"
662+
#elif defined(BOOT_MARLIN_LOGO_USES_RLE16)
663+
#error "BOOT_MARLIN_LOGO_USES_RLE16 is now COMPACT_MARLIN_BOOT_LOGO."
662664
#endif
663665

664666
// L64xx stepper drivers have been removed

Marlin/src/lcd/tft/canvas.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void Canvas::addImage(int16_t x, int16_t y, MarlinImage image, uint16_t *colors)
121121
return;
122122
}
123123

124-
#if ENABLED(BOOT_MARLIN_LOGO_USES_RLE16)
124+
#if ENABLED(COMPACT_MARLIN_BOOT_LOGO)
125125
// RLE16 HIGHCOLOR - 16 bits per pixel
126126
if (color_mode == RLE16) {
127127
uint8_t *bytedata = (uint8_t *)images[image].data;
@@ -166,7 +166,7 @@ void Canvas::addImage(int16_t x, int16_t y, MarlinImage image, uint16_t *colors)
166166
}
167167
return;
168168
}
169-
#endif // BOOT_MARLIN_LOGO_USES_RLE16
169+
#endif // COMPACT_MARLIN_BOOT_LOGO
170170

171171
return addImage(x, y, image_width, image_height, color_mode, (uint8_t *)data, colors);
172172
}

Marlin/src/lcd/tft/tft_image.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const tImage NoLogo = { nullptr, 0, 0, NOCOLORS };
3333
const tImage MarlinLogo112x38x1 = { (void *)marlin_logo_112x38x1, 112, 38, GREYSCALE1 };
3434
const tImage MarlinLogo228x255x2 = { (void *)marlin_logo_228x255x2, 228, 255, GREYSCALE2 };
3535
const tImage MarlinLogo228x255x4 = { (void *)marlin_logo_228x255x4, 228, 255, GREYSCALE4 };
36-
#if ENABLED(BOOT_MARLIN_LOGO_USES_RLE16)
36+
#if ENABLED(COMPACT_MARLIN_BOOT_LOGO)
3737
const tImage MarlinLogo195x59x16 = { (void *)marlin_logo_195x59x16_rle16, 195, 59, RLE16 };
3838
const tImage MarlinLogo320x240x16 = { (void *)marlin_logo_320x240x16_rle16, 320, 240, RLE16 };
3939
const tImage MarlinLogo480x320x16 = { (void *)marlin_logo_480x320x16_rle16, 480, 320, RLE16 };

Marlin/src/lcd/tft/tft_image.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
extern const uint8_t marlin_logo_112x38x1[];
2929
extern const uint8_t marlin_logo_228x255x2[];
3030
extern const uint8_t marlin_logo_228x255x4[];
31-
#if ENABLED(BOOT_MARLIN_LOGO_USES_RLE16)
31+
#if ENABLED(COMPACT_MARLIN_BOOT_LOGO)
3232
extern const uint16_t marlin_logo_195x59x16_rle16[];
3333
extern const uint16_t marlin_logo_320x240x16_rle16[];
3434
extern const uint16_t marlin_logo_480x320x16_rle16[];
@@ -121,8 +121,8 @@ enum colorMode_t : uint8_t {
121121
GREYSCALE2, // 2 bits per pixel
122122
GREYSCALE4, // 4 bits per pixel
123123
HIGHCOLOR // 16 bits per pixel
124-
#if ENABLED(BOOT_MARLIN_LOGO_USES_RLE16)
125-
, RLE16 // RLE16 8 bit count and 16 bits per pixel row
124+
#if ENABLED(COMPACT_MARLIN_BOOT_LOGO)
125+
, RLE16 // RLE16 Compressed 16 bits per pixel row
126126
#endif
127127
};
128128

buildroot/tests/LERDGEK

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set -e
1111
#
1212
restore_configs
1313
opt_set MOTHERBOARD BOARD_LERDGE_K SERIAL_PORT 1
14-
opt_enable TFT_GENERIC TFT_INTERFACE_FSMC TFT_COLOR_UI
14+
opt_enable TFT_GENERIC TFT_INTERFACE_FSMC TFT_COLOR_UI COMPACT_MARLIN_BOOT_LOGO
1515
exec_test $1 $2 "LERDGE K with Generic FSMC TFT with ColorUI" "$3"
1616

1717
# clean up

0 commit comments

Comments
 (0)