Skip to content

Commit 82d3d78

Browse files
committed
🔧 BOARD_LCD_SERIAL_PORT
1 parent fb4d465 commit 82d3d78

17 files changed

+41
-2
lines changed

Marlin/src/inc/Warnings.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,3 +925,10 @@
925925
#if ALL(PELTIER_BED, PIDTEMPBED)
926926
#warning "PELTIER_BED with PIDTEMPBED requires extra circuitry. Use with caution."
927927
#endif
928+
929+
/**
930+
* Board recommended LCD_SERIAL_PORT
931+
*/
932+
#if LCD_IS_SERIAL_HOST && defined(BOARD_LCD_SERIAL_PORT) && LCD_SERIAL_PORT != BOARD_LCD_SERIAL_PORT && DISABLED(NO_LCD_SERIAL_PORT_WARNING)
933+
#warning "LCD_SERIAL_PORT overrides the default (BOARD_LCD_SERIAL_PORT)."
934+
#endif

Marlin/src/pins/hc32f4/pins_AQUILA_101.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
#define DEFAULT_MACHINE_NAME "Aquila"
3838
#endif
3939

40+
#define BOARD_LCD_SERIAL_PORT 1
41+
4042
//
4143
// Onboard crystal oscillator
4244
//

Marlin/src/pins/lpc1769/pins_BTT_SKR_E3_TURBO.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434

3535
#define USES_DIAG_JUMPERS
3636

37+
#define BOARD_LCD_SERIAL_PORT 1
38+
3739
// Onboard I2C EEPROM
3840
#define I2C_EEPROM
3941
#define MARLIN_EEPROM_SIZE 0x1000U // 4K (AT24C32)

Marlin/src/pins/ramps/pins_PANOWIN_CUTLASS.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
#define DEFAULT_MACHINE_NAME "Panowin F1"
3939
#endif
4040

41+
#define BOARD_LCD_SERIAL_PORT 2
42+
4143
//
4244
// Limit Switches
4345
//

Marlin/src/pins/ramps/pins_RAMPS.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
#define BOARD_INFO_NAME "RAMPS 1.4"
6060
#endif
6161

62+
#define BOARD_LCD_SERIAL_PORT 2
63+
6264
//
6365
// Servos
6466
//

Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
#define MARLIN_EEPROM_SIZE EEPROM_PAGE_SIZE // 2K
3939
#endif
4040

41+
#define BOARD_LCD_SERIAL_PORT 1
42+
4143
//
4244
// Servos
4345
//

Marlin/src/pins/stm32f1/pins_CREALITY_CR4NS.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
#endif
4242
#define BOARD_WEBSITE_URL "www.creality.com"
4343

44+
#define BOARD_LCD_SERIAL_PORT 2
45+
4446
//
4547
// EEPROM
4648
//

Marlin/src/pins/stm32f1/pins_CREALITY_V24S1_301.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
#define DEFAULT_MACHINE_NAME "Ender-3 S1"
4545
#endif
4646

47+
#define BOARD_LCD_SERIAL_PORT 2
48+
4749
//
4850
// Servos
4951
//

Marlin/src/pins/stm32f1/pins_CREALITY_V423.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
#define BOARD_INFO_NAME "Creality v4.2.3"
2929
#define DEFAULT_MACHINE_NAME "Creality3D"
3030

31+
#define BOARD_LCD_SERIAL_PORT 2
32+
3133
//
3234
// Heaters
3335
//

Marlin/src/pins/stm32f1/pins_MKS_ROBIN.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
#define MARLIN_EEPROM_SIZE EEPROM_PAGE_SIZE // 2K
5959
#endif
6060

61+
#define BOARD_LCD_SERIAL_PORT 2
62+
6163
//
6264
// Servos
6365
//

0 commit comments

Comments
 (0)