Format some pins files
This commit is contained in:
committed by
Scott Lahteine
parent
9340a33980
commit
2c325c2a7d
@@ -63,60 +63,60 @@
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 18
|
||||
#define Y_STOP_PIN 19
|
||||
#define Z_STOP_PIN 20
|
||||
#define X_STOP_PIN 18
|
||||
#define Y_STOP_PIN 19
|
||||
#define Z_STOP_PIN 20
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 15
|
||||
#define X_DIR_PIN 21
|
||||
#define X_STEP_PIN 15
|
||||
#define X_DIR_PIN 21
|
||||
|
||||
#define Y_STEP_PIN 22
|
||||
#define Y_DIR_PIN 23
|
||||
#define Y_STEP_PIN 22
|
||||
#define Y_DIR_PIN 23
|
||||
|
||||
#define Z_STEP_PIN 3
|
||||
#define Z_DIR_PIN 2
|
||||
#define Z_STEP_PIN 3
|
||||
#define Z_DIR_PIN 2
|
||||
|
||||
#define E0_STEP_PIN 1
|
||||
#define E0_DIR_PIN 0
|
||||
#define E0_STEP_PIN 1
|
||||
#define E0_DIR_PIN 0
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 7 // Analog Input (pin 33 extruder)
|
||||
#define TEMP_BED_PIN 6 // Analog Input (pin 34 bed)
|
||||
#define TEMP_0_PIN 7 // Analog Input (pin 33 extruder)
|
||||
#define TEMP_BED_PIN 6 // Analog Input (pin 34 bed)
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 13 // (extruder)
|
||||
#define HEATER_0_PIN 13 // (extruder)
|
||||
|
||||
#if ENABLED(SANGUINOLOLU_V_1_2)
|
||||
|
||||
#define HEATER_BED_PIN 12 // (bed)
|
||||
#define X_ENABLE_PIN 14
|
||||
#define Y_ENABLE_PIN 14
|
||||
#define Z_ENABLE_PIN 26
|
||||
#define E0_ENABLE_PIN 14
|
||||
#define HEATER_BED_PIN 12 // (bed)
|
||||
#define X_ENABLE_PIN 14
|
||||
#define Y_ENABLE_PIN 14
|
||||
#define Z_ENABLE_PIN 26
|
||||
#define E0_ENABLE_PIN 14
|
||||
|
||||
#if !defined(FAN_PIN) && ENABLED(LCD_I2C_PANELOLU2)
|
||||
#define FAN_PIN 4 // Uses Transistor1 (PWM) on Panelolu2's Sanguino Adapter Board to drive the fan
|
||||
#define FAN_PIN 4 // Uses Transistor1 (PWM) on Panelolu2's Sanguino Adapter Board to drive the fan
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
#define HEATER_BED_PIN 14 // (bed)
|
||||
#define X_ENABLE_PIN -1
|
||||
#define Y_ENABLE_PIN -1
|
||||
#define Z_ENABLE_PIN -1
|
||||
#define E0_ENABLE_PIN -1
|
||||
#define HEATER_BED_PIN 14 // (bed)
|
||||
#define X_ENABLE_PIN -1
|
||||
#define Y_ENABLE_PIN -1
|
||||
#define Z_ENABLE_PIN -1
|
||||
#define E0_ENABLE_PIN -1
|
||||
|
||||
#endif
|
||||
|
||||
#if !defined(FAN_PIN) && (MB(AZTEEG_X1, STB_11) || IS_MELZI)
|
||||
#define FAN_PIN 4 // Works for Panelolu2 too
|
||||
#define FAN_PIN 4 // Works for Panelolu2 too
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -129,17 +129,17 @@
|
||||
* If you encounter issues with these pins, upgrade your
|
||||
* Sanguino libraries! See #368.
|
||||
*/
|
||||
//#define SDSS 24
|
||||
#define SDSS 31
|
||||
//#define SDSS 24
|
||||
#define SDSS 31
|
||||
|
||||
#if IS_MELZI
|
||||
#define LED_PIN 27
|
||||
#define LED_PIN 27
|
||||
#elif MB(STB_11)
|
||||
#define LCD_BACKLIGHT_PIN 17 // LCD backlight LED
|
||||
#define LCD_BACKLIGHT_PIN 17 // LCD backlight LED
|
||||
#endif
|
||||
|
||||
#if NONE(SPINDLE_FEATURE, LASER_FEATURE) && ENABLED(SANGUINOLOLU_V_1_2) && !BOTH(ULTRA_LCD, NEWPANEL) // try to use IO Header
|
||||
#define CASE_LIGHT_PIN 4 // Hardware PWM - see if IO Header is available
|
||||
#if NONE(SPINDLE_FEATURE, LASER_FEATURE) && ENABLED(SANGUINOLOLU_V_1_2) && !BOTH(ULTRA_LCD, NEWPANEL)// try to use IO Header
|
||||
#define CASE_LIGHT_PIN 4 // Hardware PWM - see if IO Header is available
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -156,57 +156,57 @@
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
|
||||
#define SD_DETECT_PIN -1
|
||||
#define SD_DETECT_PIN -1
|
||||
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
|
||||
#if ENABLED(LCD_FOR_MELZI)
|
||||
|
||||
#define LCD_PINS_RS 17
|
||||
#define LCD_PINS_ENABLE 16
|
||||
#define LCD_PINS_D4 11
|
||||
#define LCD_PINS_RS 17
|
||||
#define LCD_PINS_ENABLE 16
|
||||
#define LCD_PINS_D4 11
|
||||
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(0)
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(188)
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(0)
|
||||
|
||||
#elif ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
|
||||
#elif ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
|
||||
|
||||
#if IS_MELZI
|
||||
#define LCD_PINS_RS 30 // CS chip select /SS chip slave select
|
||||
#define LCD_PINS_ENABLE 29 // SID (MOSI)
|
||||
#define LCD_PINS_D4 17 // SCK (CLK) clock
|
||||
#define LCD_PINS_RS 30 // CS chip select /SS chip slave select
|
||||
#define LCD_PINS_ENABLE 29 // SID (MOSI)
|
||||
#define LCD_PINS_D4 17 // SCK (CLK) clock
|
||||
// Pin 27 is taken by LED_PIN, but Melzi LED does nothing with
|
||||
// Marlin so this can be used for BEEPER_PIN. You can use this pin
|
||||
// with M42 instead of BEEPER_PIN.
|
||||
#define BEEPER_PIN 27
|
||||
#else // Sanguinololu >=1.3
|
||||
#define LCD_PINS_RS 4
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_D4 30
|
||||
#define LCD_PINS_D5 29
|
||||
#define LCD_PINS_D6 28
|
||||
#define LCD_PINS_D7 27
|
||||
#define BEEPER_PIN 27
|
||||
#else // Sanguinololu >=1.3
|
||||
#define LCD_PINS_RS 4
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_D4 30
|
||||
#define LCD_PINS_D5 29
|
||||
#define LCD_PINS_D6 28
|
||||
#define LCD_PINS_D7 27
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
#define DOGLCD_A0 30
|
||||
#define DOGLCD_A0 30
|
||||
|
||||
#if ENABLED(MAKRPANEL)
|
||||
|
||||
#define BEEPER_PIN 29
|
||||
#define DOGLCD_CS 17
|
||||
#define LCD_BACKLIGHT_PIN 28 // PA3
|
||||
#define BEEPER_PIN 29
|
||||
#define DOGLCD_CS 17
|
||||
#define LCD_BACKLIGHT_PIN 28 // PA3
|
||||
|
||||
#elif IS_MELZI
|
||||
|
||||
#define BEEPER_PIN 27
|
||||
#define DOGLCD_CS 28
|
||||
#define BEEPER_PIN 27
|
||||
#define DOGLCD_CS 28
|
||||
|
||||
#else // !MAKRPANEL
|
||||
#else // !MAKRPANEL
|
||||
|
||||
#define DOGLCD_CS 29
|
||||
#define DOGLCD_CS 29
|
||||
|
||||
#endif
|
||||
|
||||
@@ -218,57 +218,57 @@
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
//#define LCD_SCREEN_ROT_270
|
||||
|
||||
#elif ENABLED(ZONESTAR_LCD) // For the Tronxy Melzi boards
|
||||
#elif ENABLED(ZONESTAR_LCD) // For the Tronxy Melzi boards
|
||||
|
||||
#define LCD_PINS_RS 28
|
||||
#define LCD_PINS_ENABLE 29
|
||||
#define LCD_PINS_D4 10
|
||||
#define LCD_PINS_D5 11
|
||||
#define LCD_PINS_D6 16
|
||||
#define LCD_PINS_D7 17
|
||||
#define LCD_PINS_RS 28
|
||||
#define LCD_PINS_ENABLE 29
|
||||
#define LCD_PINS_D4 10
|
||||
#define LCD_PINS_D5 11
|
||||
#define LCD_PINS_D6 16
|
||||
#define LCD_PINS_D7 17
|
||||
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS 4
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_D4 30
|
||||
#define LCD_PINS_D5 29
|
||||
#define LCD_PINS_D6 28
|
||||
#define LCD_PINS_D7 27
|
||||
#define LCD_PINS_RS 4
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_D4 30
|
||||
#define LCD_PINS_D5 29
|
||||
#define LCD_PINS_D6 28
|
||||
#define LCD_PINS_D7 27
|
||||
|
||||
#endif
|
||||
|
||||
#if ENABLED(LCD_FOR_MELZI)
|
||||
|
||||
#define BTN_ENC 28
|
||||
#define BTN_EN1 29
|
||||
#define BTN_EN2 30
|
||||
#define BTN_ENC 28
|
||||
#define BTN_EN1 29
|
||||
#define BTN_EN2 30
|
||||
|
||||
#elif ENABLED(ZONESTAR_LCD) // For the Tronxy Melzi boards
|
||||
#elif ENABLED(ZONESTAR_LCD) // For the Tronxy Melzi boards
|
||||
|
||||
#define ADC_KEYPAD_PIN 1
|
||||
#define BTN_EN1 -1
|
||||
#define BTN_EN2 -1
|
||||
#define ADC_KEYPAD_PIN 1
|
||||
#define BTN_EN1 -1
|
||||
#define BTN_EN2 -1
|
||||
|
||||
#elif ENABLED(LCD_I2C_PANELOLU2)
|
||||
|
||||
#if IS_MELZI
|
||||
#define BTN_ENC 29
|
||||
#define LCD_SDSS 30 // Panelolu2 SD card reader rather than the Melzi
|
||||
#define BTN_ENC 29
|
||||
#define LCD_SDSS 30 // Panelolu2 SD card reader rather than the Melzi
|
||||
#else
|
||||
#define BTN_ENC 30
|
||||
#define BTN_ENC 30
|
||||
#endif
|
||||
|
||||
#else // !LCD_FOR_MELZI && !ZONESTAR_LCD && !LCD_I2C_PANELOLU2
|
||||
#else // !LCD_FOR_MELZI && !ZONESTAR_LCD && !LCD_I2C_PANELOLU2
|
||||
|
||||
#define BTN_ENC 16
|
||||
#define LCD_SDSS 28 // Smart Controller SD card reader rather than the Melzi
|
||||
#define BTN_ENC 16
|
||||
#define LCD_SDSS 28 // Smart Controller SD card reader rather than the Melzi
|
||||
|
||||
#endif
|
||||
|
||||
#if ENABLED(NEWPANEL) && !defined(BTN_EN1)
|
||||
#define BTN_EN1 11
|
||||
#define BTN_EN2 10
|
||||
#define BTN_EN1 11
|
||||
#define BTN_EN2 10
|
||||
#endif
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
@@ -277,13 +277,13 @@
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#if HAS_CUTTER
|
||||
#if !MB(AZTEEG_X1) && ENABLED(SANGUINOLOLU_V_1_2) && !BOTH(ULTRA_LCD, NEWPANEL) // try to use IO Header
|
||||
#if !MB(AZTEEG_X1) && ENABLED(SANGUINOLOLU_V_1_2) && !BOTH(ULTRA_LCD, NEWPANEL)// try to use IO Header
|
||||
|
||||
#define SPINDLE_LASER_ENA_PIN 10 // Pullup or pulldown!
|
||||
#define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM
|
||||
#define SPINDLE_DIR_PIN 11
|
||||
#define SPINDLE_LASER_ENA_PIN 10 // Pullup or pulldown!
|
||||
#define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM
|
||||
#define SPINDLE_DIR_PIN 11
|
||||
|
||||
#elif !MB(MELZI) // use X stepper motor socket
|
||||
#elif !MB(MELZI) // use X stepper motor socket
|
||||
|
||||
/**
|
||||
* To control the spindle speed and have an LCD you must sacrifice
|
||||
@@ -315,11 +315,11 @@
|
||||
#undef X_DIR_PIN
|
||||
#undef X_ENABLE_PIN
|
||||
#undef X_STEP_PIN
|
||||
#define X_DIR_PIN 0
|
||||
#define X_ENABLE_PIN 14
|
||||
#define X_STEP_PIN 1
|
||||
#define SPINDLE_LASER_PWM_PIN 15 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 21 // Pullup!
|
||||
#define SPINDLE_DIR_PIN -1 // No pin available on the socket for the direction pin
|
||||
#define X_DIR_PIN 0
|
||||
#define X_ENABLE_PIN 14
|
||||
#define X_STEP_PIN 1
|
||||
#define SPINDLE_LASER_PWM_PIN 15 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 21 // Pullup!
|
||||
#define SPINDLE_DIR_PIN -1 // No pin available on the socket for the direction pin
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user