Browse Source

Reduce RAM usage for TFT Color UI on SGen-L V2 (#20209)

Victor Oliveira 4 years ago
parent
commit
d7aea9608e
No account linked to committer's email address

+ 6
- 2
Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h View File

@@ -268,8 +268,12 @@
268 268
     #define LCD_PINS_ENABLE                -1
269 269
     #define LCD_PINS_RS                    -1
270 270
 
271
-    #define TFT_BUFFER_SIZE                 1200
272
-    #define TFT_QUEUE_SIZE                  6144
271
+    #ifndef TFT_BUFFER_SIZE
272
+      #define TFT_BUFFER_SIZE               1200
273
+    #endif
274
+    #ifndef TFT_QUEUE_SIZE
275
+      #define TFT_QUEUE_SIZE                6144
276
+    #endif
273 277
 
274 278
     #define BTN_EN1                        P3_25
275 279
     #define BTN_EN2                        P3_26

+ 7
- 2
Marlin/src/pins/lpc1769/pins_MKS_SGEN_L_V2.h View File

@@ -251,7 +251,7 @@
251 251
  *                _____                                            _____
252 252
  * (BEEPER) 1.31 | · · | 1.30 (BTN_ENC)               (MISO) 0.8  | · · | 0.7  (SD_SCK)
253 253
  * (LCD_EN) 0.18 | · · | 0.16 (LCD_RS)             (BTN_EN1) 3.25 | · · | 0.28 (SD_CS2)
254
- * (LCD_D4) 0.15 | · ·   0.17 (LCD_D5)             (BTN_EN2) 3.26 | · ·   0.9  (SD_MOSI)
254
+ * (LCD_D4) 0.15 | · · | 0.17 (LCD_D5)             (BTN_EN2) 3.26 | · · | 0.9  (SD_MOSI)
255 255
  * (LCD_D6)  1.0 | · · | 1.22 (LCD_D7)           (SD_DETECT) 0.27 | · · | RST
256 256
  *           GND | · · | 5V                                   GND | · · | NC
257 257
  *                -----                                            -----
@@ -318,7 +318,12 @@
318 318
       #define LCD_PINS_ENABLE              -1
319 319
       #define LCD_PINS_RS                  -1
320 320
 
321
-      #define TFT_BUFFER_SIZE               2400
321
+      #ifndef TFT_BUFFER_SIZE
322
+        #define TFT_BUFFER_SIZE             1200
323
+      #endif
324
+      #ifndef TFT_QUEUE_SIZE
325
+        #define TFT_QUEUE_SIZE              6144
326
+      #endif
322 327
 
323 328
     #else                                         // !MKS_12864OLED_SSD1306
324 329
 

Loading…
Cancel
Save