RAMPS + Viki1 LCD compatibility (#15736)

This commit is contained in:
Ivo Pischner 2020-10-27 13:15:51 +01:00
parent 0a0f2c6a30
commit 4183b900e5
2 changed files with 6 additions and 5 deletions

View File

@ -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
@ -496,8 +496,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

View File

@ -1164,8 +1164,9 @@ static void lcd_implementation_status_screen() {
static uint8_t ledsprev = 0;
uint8_t leds = 0;
if (thermalManager.degTargetBed() > 0) leds |= LED_A;
#if HAS_HEATED_BED
if (thermalManager.degTargetBed() > 0) leds |= LED_A;
#endif
if (thermalManager.degTargetHotend(0) > 0) leds |= LED_B;
#if FAN_COUNT > 0