#ifndef _CONFIG_PINS_H_ #define _CONFIG_PINS_H_ // from https://reprap.org/wiki/RAMPS_1.4 // For RAMPS 1.4 #define X_STEP_PIN 54 #define X_DIR_PIN 55 #define X_ENABLE_PIN 38 #define X_MIN_PIN 3 #define X_MAX_PIN -1 // 2 #define Y_STEP_PIN 60 #define Y_DIR_PIN 61 #define Y_ENABLE_PIN 56 #define Y_MIN_PIN 14 #define Y_MAX_PIN -1 // 15 #define Z_STEP_PIN 46 #define Z_DIR_PIN 48 #define Z_ENABLE_PIN 62 #define Z_MIN_PIN -1 // 18 #define Z_MAX_PIN 19 //extruder 1 #define E0_STEP_PIN 26 #define E0_DIR_PIN 28 #define E0_ENABLE_PIN 24 //extruder 2 #define E1_STEP_PIN 36 #define E1_DIR_PIN 34 #define E1_ENABLE_PIN 30 //ChipSelect, Hardware SS Pin on Mega, 10 for Arduino Boards, always kept as output #define SDCS_PIN 53 #define LED_PIN 13 #define FAN_PIN 9 #define PS_ON_PIN 12 //ATX , awake=LOW, SLEEP=High #define HEATER_0_PIN 10 // Extruder Heater #define HEATER_1_PIN 8 #define TEMP_0_PIN 13 // ANALOG NUMBERING #define TEMP_1_PIN 14 // ANALOG NUMBERING #ifdef USE_20X4_TEXT_LCD // from https://reprap.org/wiki/RepRapDiscount_Smart_Controller //STOP / KILL button #define KILL_PIN 41 //[RAMPS14-SMART-ADAPTER] //lcd pins #define LCD_PINS_RS 16 //[RAMPS14-SMART-ADAPTER] #define LCD_PINS_ENABLE 17 //[RAMPS14-SMART-ADAPTER] #define LCD_PINS_D4 23 //[RAMPS14-SMART-ADAPTER] #define LCD_PINS_D5 25 //[RAMPS14-SMART-ADAPTER] #define LCD_PINS_D6 27 //[RAMPS14-SMART-ADAPTER] #define LCD_PINS_D7 29 //[RAMPS14-SMART-ADAPTER] //encoder pins #define BTN_EN1 31 //[RAMPS14-SMART-ADAPTER] #define BTN_EN2 33 //[RAMPS14-SMART-ADAPTER] #define BTN_ENC 35 //[RAMPS14-SMART-ADAPTER] //beeper #define BEEPER 37 //[RAMPS14-SMART-ADAPTER] / 37 = enabled; -1 = dissabled / (if you don't like the beep sound ;-) //SD card detect pin #define SDCARDDETECT 49 //[RAMPS14-SMART-ADAPTER] #endif // USE_20X4_TEXT_LCD #ifdef USE_FULL_GRAPHIC_LCD // TODO #endif // USE_FULL_GRAPHIC_LCD #endif // _CONFIG_PINS_H_ #if ((X_MIN_PIN != -1) && (X_MAX_PIN != -1)) || ((X_MIN_PIN == -1) && (X_MAX_PIN == -1)) #error define one of X_MIN_PIN or X_MAX_PIN #endif #if ((Y_MIN_PIN != -1) && (Y_MAX_PIN != -1)) || ((Y_MIN_PIN == -1) && (Y_MAX_PIN == -1)) #error define one of Y_MIN_PIN or Y_MAX_PIN #endif