|
|
|
@ -237,35 +237,79 @@
|
|
|
|
|
//
|
|
|
|
|
// Průša i3 MK2 Multiplexer Support
|
|
|
|
|
//
|
|
|
|
|
#ifndef E_MUX0_PIN
|
|
|
|
|
#define E_MUX0_PIN 40 // Z_CS_PIN
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef E_MUX1_PIN
|
|
|
|
|
#define E_MUX1_PIN 42 // E0_CS_PIN
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef E_MUX2_PIN
|
|
|
|
|
#define E_MUX2_PIN 44 // E1_CS_PIN
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
//////////////////////////
|
|
|
|
|
// LCDs and Controllers //
|
|
|
|
|
//////////////////////////
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// LCD / Controller
|
|
|
|
|
//
|
|
|
|
|
#if ENABLED(ULTRA_LCD)
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// LCD Display output pins
|
|
|
|
|
//
|
|
|
|
|
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
|
|
|
|
|
|
|
|
|
#define LCD_PINS_RS 49 // CS chip select /SS chip slave select
|
|
|
|
|
#define LCD_PINS_ENABLE 51 // SID (MOSI)
|
|
|
|
|
#define LCD_PINS_D4 52 // SCK (CLK) clock
|
|
|
|
|
|
|
|
|
|
#elif ENABLED(NEWPANEL) && ENABLED(PANEL_ONE)
|
|
|
|
|
|
|
|
|
|
#define LCD_PINS_RS 40
|
|
|
|
|
#define LCD_PINS_ENABLE 42
|
|
|
|
|
#define LCD_PINS_D4 65
|
|
|
|
|
#define LCD_PINS_D5 66
|
|
|
|
|
#define LCD_PINS_D6 44
|
|
|
|
|
#define LCD_PINS_D7 64
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
#if ENABLED(CR10_STOCKDISPLAY)
|
|
|
|
|
|
|
|
|
|
#define LCD_PINS_RS 27
|
|
|
|
|
#define LCD_PINS_ENABLE 29
|
|
|
|
|
#define LCD_PINS_D4 25
|
|
|
|
|
|
|
|
|
|
#if DISABLED(NEWPANEL)
|
|
|
|
|
#define BEEPER_PIN 37
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
#if ENABLED(MKS_12864OLED)
|
|
|
|
|
#define LCD_PINS_DC 25 // Set as output on init
|
|
|
|
|
#define LCD_PINS_RS 27 // Pull low for 1s to init
|
|
|
|
|
// DOGM SPI LCD Support
|
|
|
|
|
#define DOGLCD_CS 16
|
|
|
|
|
#define DOGLCD_MOSI 17
|
|
|
|
|
#define DOGLCD_SCK 23
|
|
|
|
|
#define DOGLCD_A0 LCD_PINS_DC
|
|
|
|
|
#else
|
|
|
|
|
#define LCD_PINS_RS 16
|
|
|
|
|
#define LCD_PINS_ENABLE 17
|
|
|
|
|
#define LCD_PINS_D4 23
|
|
|
|
|
#define LCD_PINS_D5 25
|
|
|
|
|
#define LCD_PINS_D6 27
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#define LCD_PINS_D7 29
|
|
|
|
|
|
|
|
|
|
#if DISABLED(NEWPANEL)
|
|
|
|
|
#define BEEPER_PIN 33
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if DISABLED(NEWPANEL)
|
|
|
|
|
// Buttons are attached to a shift register
|
|
|
|
|
// Not wired yet
|
|
|
|
|
//#define SHIFT_CLK 38
|
|
|
|
@ -273,18 +317,27 @@
|
|
|
|
|
//#define SHIFT_OUT 40
|
|
|
|
|
//#define SHIFT_EN 17
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// LCD Display input pins
|
|
|
|
|
//
|
|
|
|
|
#if ENABLED(NEWPANEL)
|
|
|
|
|
|
|
|
|
|
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
|
|
|
|
|
|
|
|
|
#define BEEPER_PIN 37
|
|
|
|
|
|
|
|
|
|
#if ENABLED(CR10_STOCKDISPLAY)
|
|
|
|
|
#define BTN_EN1 17
|
|
|
|
|
#define BTN_EN2 23
|
|
|
|
|
#else
|
|
|
|
|
#define BTN_EN1 31
|
|
|
|
|
#define BTN_EN2 33
|
|
|
|
|
#define BTN_ENC 35
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#define BTN_ENC 35
|
|
|
|
|
#define SD_DETECT_PIN 49
|
|
|
|
|
#define KILL_PIN 41
|
|
|
|
|
|
|
|
|
@ -305,85 +358,112 @@
|
|
|
|
|
#define BTN_EN2 43
|
|
|
|
|
#define BTN_ENC 32
|
|
|
|
|
#define LCD_SDSS 53
|
|
|
|
|
#define SD_DETECT_PIN -1
|
|
|
|
|
#define KILL_PIN 41
|
|
|
|
|
|
|
|
|
|
#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_ENC -1
|
|
|
|
|
|
|
|
|
|
#define LCD_SDSS 53
|
|
|
|
|
#define SD_DETECT_PIN 49
|
|
|
|
|
|
|
|
|
|
#elif ENABLED(VIKI2) || ENABLED(miniVIKI)
|
|
|
|
|
|
|
|
|
|
#define BEEPER_PIN 33
|
|
|
|
|
|
|
|
|
|
// Pins for DOGM SPI LCD Support
|
|
|
|
|
#define DOGLCD_A0 44
|
|
|
|
|
#define DOGLCD_CS 45
|
|
|
|
|
#define DOGLCD_A0 44
|
|
|
|
|
#define LCD_SCREEN_ROT_180
|
|
|
|
|
|
|
|
|
|
#define BEEPER_PIN 33
|
|
|
|
|
#define STAT_LED_RED_PIN 32
|
|
|
|
|
#define STAT_LED_BLUE_PIN 35
|
|
|
|
|
|
|
|
|
|
#define BTN_EN1 22
|
|
|
|
|
#define BTN_EN2 7
|
|
|
|
|
#define BTN_ENC 39
|
|
|
|
|
|
|
|
|
|
#define SDSS 53
|
|
|
|
|
#define SD_DETECT_PIN -1 // Pin 49 for display sd interface, 72 for easy adapter board
|
|
|
|
|
|
|
|
|
|
#define KILL_PIN 31
|
|
|
|
|
|
|
|
|
|
#define STAT_LED_RED_PIN 32
|
|
|
|
|
#define STAT_LED_BLUE_PIN 35
|
|
|
|
|
|
|
|
|
|
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
|
|
|
|
|
|
|
|
|
|
#define DOGLCD_CS 29
|
|
|
|
|
#define DOGLCD_A0 27
|
|
|
|
|
|
|
|
|
|
#define BEEPER_PIN 23
|
|
|
|
|
#define LCD_BACKLIGHT_PIN 33
|
|
|
|
|
|
|
|
|
|
#define BTN_EN1 35
|
|
|
|
|
#define BTN_EN2 37
|
|
|
|
|
#define BTN_ENC 31
|
|
|
|
|
#define SD_DETECT_PIN 49
|
|
|
|
|
|
|
|
|
|
#define LCD_SDSS 53
|
|
|
|
|
#define SD_DETECT_PIN 49
|
|
|
|
|
#define KILL_PIN 41
|
|
|
|
|
#define BEEPER_PIN 23
|
|
|
|
|
#define DOGLCD_CS 29
|
|
|
|
|
|
|
|
|
|
#elif ENABLED(MKS_MINI_12864) // Added in Marlin 1.1.6
|
|
|
|
|
|
|
|
|
|
#define DOGLCD_A0 27
|
|
|
|
|
#define LCD_BACKLIGHT_PIN 33
|
|
|
|
|
#define DOGLCD_CS 25
|
|
|
|
|
|
|
|
|
|
// GLCD features
|
|
|
|
|
//#define LCD_CONTRAST 190
|
|
|
|
|
// Uncomment screen orientation
|
|
|
|
|
//#define LCD_SCREEN_ROT_90
|
|
|
|
|
//#define LCD_SCREEN_ROT_180
|
|
|
|
|
//#define LCD_SCREEN_ROT_270
|
|
|
|
|
|
|
|
|
|
#define BEEPER_PIN 37
|
|
|
|
|
// not connected to a pin
|
|
|
|
|
#define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
|
|
|
|
|
|
|
|
|
|
#define BTN_EN1 31
|
|
|
|
|
#define BTN_EN2 33
|
|
|
|
|
#define BTN_ENC 35
|
|
|
|
|
|
|
|
|
|
#define SDSS 53
|
|
|
|
|
#define SD_DETECT_PIN 49
|
|
|
|
|
#define KILL_PIN 64
|
|
|
|
|
|
|
|
|
|
#elif ENABLED(MINIPANEL)
|
|
|
|
|
|
|
|
|
|
#define BEEPER_PIN 42
|
|
|
|
|
// Pins for DOGM SPI LCD Support
|
|
|
|
|
// not connected to a pin
|
|
|
|
|
#define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
|
|
|
|
|
|
|
|
|
|
#define DOGLCD_A0 44
|
|
|
|
|
#define DOGLCD_CS 66
|
|
|
|
|
#define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
|
|
|
|
|
#define SDSS 53
|
|
|
|
|
|
|
|
|
|
#define KILL_PIN 64
|
|
|
|
|
// GLCD features
|
|
|
|
|
//#define LCD_CONTRAST 190
|
|
|
|
|
// Uncomment screen orientation
|
|
|
|
|
//#define LCD_SCREEN_ROT_90
|
|
|
|
|
//#define LCD_SCREEN_ROT_180
|
|
|
|
|
//#define LCD_SCREEN_ROT_270
|
|
|
|
|
// The encoder and click button
|
|
|
|
|
|
|
|
|
|
#define BTN_EN1 40
|
|
|
|
|
#define BTN_EN2 63
|
|
|
|
|
#define BTN_ENC 59
|
|
|
|
|
// not connected to a pin
|
|
|
|
|
|
|
|
|
|
#define SDSS 53
|
|
|
|
|
#define SD_DETECT_PIN 49
|
|
|
|
|
#define KILL_PIN 64
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
// Beeper on AUX-4
|
|
|
|
|
#define BEEPER_PIN 33
|
|
|
|
|
|
|
|
|
|
// buttons are directly attached using AUX-2
|
|
|
|
|
// Buttons are directly attached using AUX-2
|
|
|
|
|
#if ENABLED(REPRAPWORLD_KEYPAD)
|
|
|
|
|
#define BTN_EN1 64
|
|
|
|
|
#define BTN_EN2 59
|
|
|
|
|
#define BTN_ENC 63
|
|
|
|
|
#define SHIFT_OUT 40
|
|
|
|
|
#define SHIFT_CLK 44
|
|
|
|
|
#define SHIFT_LD 42
|
|
|
|
|
#define BTN_EN1 64
|
|
|
|
|
#define BTN_EN2 59
|
|
|
|
|
#define BTN_ENC 63
|
|
|
|
|
#elif ENABLED(PANEL_ONE)
|
|
|
|
|
#define BTN_EN1 59 // AUX2 PIN 3
|
|
|
|
|
#define BTN_EN2 63 // AUX2 PIN 4
|
|
|
|
@ -397,8 +477,6 @@
|
|
|
|
|
#if ENABLED(G3D_PANEL)
|
|
|
|
|
#define SD_DETECT_PIN 49
|
|
|
|
|
#define KILL_PIN 41
|
|
|
|
|
#else
|
|
|
|
|
//#define SD_DETECT_PIN -1 // Ramps doesn't use this
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|