mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-29 14:57:05 +00:00
[1.1.x] RAMPS + Viki1 LCD compatibility (#15736)
This commit is contained in:
parent
e068f66c26
commit
8c9318c5a3
@ -56,7 +56,7 @@
|
||||
// Servos
|
||||
//
|
||||
#ifdef IS_RAMPS_13
|
||||
#define SERVO0_PIN 7 // RAMPS_13 // Will conflict with BTN_EN2 on LCD_I2C_VIKI
|
||||
#define SERVO0_PIN 7 // RAMPS_13
|
||||
#else
|
||||
#define SERVO0_PIN 11
|
||||
#endif
|
||||
@ -448,8 +448,8 @@
|
||||
|
||||
#elif ENABLED(LCD_I2C_VIKI)
|
||||
|
||||
#define BTN_EN1 22 // http://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
|
||||
#define BTN_EN2 7 // 22/7 are unused on RAMPS_14. 22 is unused and 7 the SERVO0_PIN on RAMPS_13.
|
||||
#define BTN_EN1 40 // http://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
|
||||
#define BTN_EN2 42 // for sake of the wiring diagram for RAMPS 1.4 we keep 40/42, confirmed working.
|
||||
#define BTN_ENC -1
|
||||
|
||||
#define LCD_SDSS SDSS
|
||||
|
@ -1164,8 +1164,9 @@ static void lcd_implementation_status_screen() {
|
||||
static uint8_t ledsprev = 0;
|
||||
uint8_t leds = 0;
|
||||
|
||||
#if HAS_HEATED_BED
|
||||
if (thermalManager.degTargetBed() > 0) leds |= LED_A;
|
||||
|
||||
#endif
|
||||
if (thermalManager.degTargetHotend(0) > 0) leds |= LED_B;
|
||||
|
||||
#if FAN_COUNT > 0
|
||||
|
Loading…
Reference in New Issue
Block a user