Prevent compilation of unused u8g-oriented code
This commit is contained in:
@@ -24,12 +24,13 @@
|
||||
// file u8g_dev_st7920_128x64_HAL.cpp for the HAL version.
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
#include "../../HAL/Delay.h"
|
||||
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
|
||||
#if !(defined(U8G_HAL_LINKS) || defined(__SAM3X8E__))
|
||||
|
||||
#include "../../HAL/Delay.h"
|
||||
|
||||
#define ST7920_CLK_PIN LCD_PINS_D4
|
||||
#define ST7920_DAT_PIN LCD_PINS_ENABLE
|
||||
#define ST7920_CS_PIN LCD_PINS_RS
|
||||
|
||||
Reference in New Issue
Block a user