|
|
@ -59,7 +59,9 @@
|
|
|
|
#define BOARD_NAME "Sanguinololu <1.2"
|
|
|
|
#define BOARD_NAME "Sanguinololu <1.2"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#define IS_MELZI (MB(MELZI) || MB(MELZI_MAKR3D) || MB(MELZI_CREALITY))
|
|
|
|
#ifdef __AVR_ATmega1284P__
|
|
|
|
|
|
|
|
#define LARGE_FLASH true
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Limit Switches
|
|
|
|
// Limit Switches
|
|
|
@ -116,7 +118,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if MB(AZTEEG_X1) || MB(STB_11) || IS_MELZI
|
|
|
|
#if MB(AZTEEG_X1) || MB(STB_11) || ENABLED(IS_MELZI)
|
|
|
|
#define FAN_PIN 4 // Works for Panelolu2 too
|
|
|
|
#define FAN_PIN 4 // Works for Panelolu2 too
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
@ -133,7 +135,7 @@
|
|
|
|
//#define SDSS 24
|
|
|
|
//#define SDSS 24
|
|
|
|
#define SDSS 31
|
|
|
|
#define SDSS 31
|
|
|
|
|
|
|
|
|
|
|
|
#if IS_MELZI
|
|
|
|
#if ENABLED(IS_MELZI)
|
|
|
|
#define LED_PIN 27
|
|
|
|
#define LED_PIN 27
|
|
|
|
#elif MB(STB_11)
|
|
|
|
#elif MB(STB_11)
|
|
|
|
#define LCD_BACKLIGHT_PIN 17 // LCD backlight LED
|
|
|
|
#define LCD_BACKLIGHT_PIN 17 // LCD backlight LED
|
|
|
@ -143,6 +145,15 @@
|
|
|
|
#define CASE_LIGHT_PIN 4 // MUST BE HARDWARE PWM - see if IO Header is available
|
|
|
|
#define CASE_LIGHT_PIN 4 // MUST BE HARDWARE PWM - see if IO Header is available
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Sanguinololu 1.4 AUX pins:
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* PWM TX1 RX1 SDA SCL
|
|
|
|
|
|
|
|
* 12V 5V D12 D11 D10 D17 D16
|
|
|
|
|
|
|
|
* GND GND D31 D30 D29 D28 D27
|
|
|
|
|
|
|
|
* A4 A3 A2 A1 A0
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// LCD / Controller
|
|
|
|
// LCD / Controller
|
|
|
|
//
|
|
|
|
//
|
|
|
@ -152,7 +163,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
|
|
|
|
#if ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
|
|
|
|
|
|
|
|
|
|
|
|
#if IS_MELZI // Melzi board
|
|
|
|
#if ENABLED(IS_MELZI)
|
|
|
|
#define LCD_PINS_RS 30 // CS chip select /SS chip slave select
|
|
|
|
#define LCD_PINS_RS 30 // CS chip select /SS chip slave select
|
|
|
|
#define LCD_PINS_ENABLE 29 // SID (MOSI)
|
|
|
|
#define LCD_PINS_ENABLE 29 // SID (MOSI)
|
|
|
|
#define LCD_PINS_D4 17 // SCK (CLK) clock
|
|
|
|
#define LCD_PINS_D4 17 // SCK (CLK) clock
|
|
|
@ -160,7 +171,7 @@
|
|
|
|
// Marlin so this can be used for BEEPER_PIN. You can use this pin
|
|
|
|
// Marlin so this can be used for BEEPER_PIN. You can use this pin
|
|
|
|
// with M42 instead of BEEPER_PIN.
|
|
|
|
// with M42 instead of BEEPER_PIN.
|
|
|
|
#define BEEPER_PIN 27
|
|
|
|
#define BEEPER_PIN 27
|
|
|
|
#else // Sanguinololu 1.3
|
|
|
|
#else // Sanguinololu >=1.3
|
|
|
|
#define LCD_PINS_RS 4
|
|
|
|
#define LCD_PINS_RS 4
|
|
|
|
#define LCD_PINS_ENABLE 17
|
|
|
|
#define LCD_PINS_ENABLE 17
|
|
|
|
#define LCD_PINS_D4 30
|
|
|
|
#define LCD_PINS_D4 30
|
|
|
@ -210,7 +221,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(LCD_I2C_PANELOLU2)
|
|
|
|
#if ENABLED(LCD_I2C_PANELOLU2)
|
|
|
|
|
|
|
|
|
|
|
|
#if IS_MELZI
|
|
|
|
#if ENABLED(IS_MELZI)
|
|
|
|
#define BTN_ENC 29
|
|
|
|
#define BTN_ENC 29
|
|
|
|
#define LCD_SDSS 30 // Panelolu2 SD card reader rather than the Melzi
|
|
|
|
#define LCD_SDSS 30 // Panelolu2 SD card reader rather than the Melzi
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|