2015-01-26 02:40:00 +00:00
|
|
|
/**
|
|
|
|
* pins.h
|
|
|
|
*
|
|
|
|
*/
|
2011-12-12 18:34:37 +00:00
|
|
|
#ifndef PINS_H
|
|
|
|
#define PINS_H
|
|
|
|
|
2014-12-18 20:02:36 +00:00
|
|
|
#include "boards.h"
|
|
|
|
|
2015-01-26 02:40:00 +00:00
|
|
|
// Preset optional pins
|
2012-08-30 07:16:57 +00:00
|
|
|
#define X_MS1_PIN -1
|
|
|
|
#define X_MS2_PIN -1
|
|
|
|
#define Y_MS1_PIN -1
|
|
|
|
#define Y_MS2_PIN -1
|
|
|
|
#define Z_MS1_PIN -1
|
|
|
|
#define Z_MS2_PIN -1
|
|
|
|
#define E0_MS1_PIN -1
|
|
|
|
#define E0_MS2_PIN -1
|
|
|
|
#define E1_MS1_PIN -1
|
|
|
|
#define E1_MS2_PIN -1
|
|
|
|
#define DIGIPOTSS_PIN -1
|
2011-12-12 18:34:37 +00:00
|
|
|
|
2014-12-18 20:02:36 +00:00
|
|
|
#if MB(GEN7_CUSTOM)
|
2015-01-26 02:40:00 +00:00
|
|
|
#include "pins_GEN7_CUSTOM.h"
|
|
|
|
#elif MB(GEN7_12)
|
|
|
|
#include "pins_GEN7_12.h"
|
|
|
|
#elif MB(GEN7_13)
|
|
|
|
#include "pins_GEN7_13.h"
|
|
|
|
#elif MB(GEN7_14)
|
|
|
|
#include "pins_GEN7_14.h"
|
|
|
|
#elif MB(CHEAPTRONIC)
|
|
|
|
#include "pins_CHEAPTRONIC.h"
|
|
|
|
#elif MB(SETHI)
|
|
|
|
#include "pins_SETHI.h"
|
|
|
|
#elif MB(RAMPS_OLD)
|
|
|
|
#include "pins_RAMPS_OLD.h"
|
|
|
|
#elif MB(RAMPS_13_EFB)
|
|
|
|
#include "pins_RAMPS_13.h"
|
|
|
|
#elif MB(RAMPS_13_EEB)
|
|
|
|
#include "pins_RAMPS_13.h"
|
|
|
|
#elif MB(RAMPS_13_EFF)
|
|
|
|
#include "pins_RAMPS_13.h"
|
|
|
|
#elif MB(RAMPS_13_EEF)
|
|
|
|
#include "pins_RAMPS_13.h"
|
|
|
|
#elif MB(DUEMILANOVE_328P)
|
|
|
|
#include "pins_DUEMILANOVE_328P.h"
|
|
|
|
#elif MB(GEN6)
|
|
|
|
#include "pins_GEN6.h"
|
|
|
|
#elif MB(GEN6_DELUXE)
|
|
|
|
#include "pins_GEN6_DELUXE.h"
|
|
|
|
#elif MB(SANGUINOLOLU_11)
|
|
|
|
#include "pins_SANGUINOLOLU_11.h"
|
|
|
|
#elif MB(SANGUINOLOLU_12)
|
|
|
|
#include "pins_SANGUINOLOLU_12.h"
|
|
|
|
#elif MB(MELZI)
|
|
|
|
#include "pins_MELZI.h"
|
|
|
|
#elif MB(STB_11)
|
|
|
|
#include "pins_STB_11.h"
|
|
|
|
#elif MB(AZTEEG_X1)
|
|
|
|
#include "pins_AZTEEG_X1.h"
|
|
|
|
#elif MB(MELZI_1284)
|
|
|
|
#include "pins_MELZI_1284.h"
|
|
|
|
#elif MB(AZTEEG_X3)
|
|
|
|
#include "pins_AZTEEG_X3.h"
|
|
|
|
#elif MB(AZTEEG_X3_PRO)
|
|
|
|
#include "pins_AZTEEG_X3_PRO.h"
|
|
|
|
#elif MB(ULTIMAKER)
|
|
|
|
#include "pins_ULTIMAKER.h"
|
|
|
|
#elif MB(ULTIMAKER_OLD)
|
|
|
|
#include "pins_ULTIMAKER_OLD.h"
|
|
|
|
#elif MB(ULTIMAIN_2)
|
|
|
|
#include "pins_ULTIMAIN_2.h"
|
|
|
|
#elif MB(3DRAG)
|
|
|
|
#include "pins_3DRAG.h"
|
|
|
|
#elif MB(K8200)
|
|
|
|
#include "pins_K8200.h"
|
|
|
|
#elif MB(TEENSYLU)
|
|
|
|
#include "pins_TEENSYLU.h"
|
|
|
|
#elif MB(RUMBA)
|
|
|
|
#include "pins_RUMBA.h"
|
|
|
|
#elif MB(PRINTRBOARD)
|
|
|
|
#include "pins_PRINTRBOARD.h"
|
|
|
|
#elif MB(BRAINWAVE)
|
|
|
|
#include "pins_BRAINWAVE.h"
|
|
|
|
#elif MB(SAV_MKI)
|
|
|
|
#include "pins_SAV_MKI.h"
|
|
|
|
#elif MB(TEENSY2)
|
|
|
|
#include "pins_TEENSY2.h"
|
|
|
|
#elif MB(GEN3_PLUS)
|
|
|
|
#include "pins_GEN3_PLUS.h"
|
|
|
|
#elif MB(GEN3_MONOLITHIC)
|
|
|
|
#include "pins_GEN3_MONOLITHIC.h"
|
|
|
|
#elif MB(MEGATRONICS)
|
|
|
|
#include "pins_MEGATRONICS.h"
|
|
|
|
#elif MB(MEGATRONICS_2)
|
|
|
|
#include "pins_MEGATRONICS_2.h"
|
|
|
|
#elif MB(MEGATRONICS_1)
|
|
|
|
#include "pins_MEGATRONICS_1.h"
|
|
|
|
#elif MB(OMCA_A)
|
|
|
|
#include "pins_OMCA_A.h"
|
|
|
|
#elif MB(OMCA)
|
|
|
|
#include "pins_OMCA.h"
|
|
|
|
#elif MB(RAMBO)
|
|
|
|
#include "pins_RAMBO.h"
|
|
|
|
#elif MB(ELEFU_3)
|
|
|
|
#include "pins_ELEFU_3.h"
|
|
|
|
#elif MB(5DPRINT)
|
|
|
|
#include "pins_5DPRINT.h"
|
|
|
|
#elif MB(LEAPFROG)
|
|
|
|
#include "pins_LEAPFROG.h"
|
|
|
|
#elif MB(99)
|
|
|
|
#include "pins_99.h"
|
2011-12-12 18:34:37 +00:00
|
|
|
#else
|
2015-01-26 02:40:00 +00:00
|
|
|
#error Unknown MOTHERBOARD value set in Configuration.h
|
2011-12-12 18:34:37 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//List of pins which to ignore when asked to change by gcode, 0 and 1 are RX and TX, do not mess with those!
|
2013-06-06 22:49:25 +00:00
|
|
|
#define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, HEATER_0_PIN,
|
2012-02-29 14:49:02 +00:00
|
|
|
#if EXTRUDERS > 1
|
|
|
|
#define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, HEATER_1_PIN,
|
2011-12-12 18:34:37 +00:00
|
|
|
#else
|
2012-02-29 14:49:02 +00:00
|
|
|
#define _E1_PINS
|
2011-12-12 18:34:37 +00:00
|
|
|
#endif
|
2012-02-29 18:01:21 +00:00
|
|
|
#if EXTRUDERS > 2
|
2012-02-29 14:49:02 +00:00
|
|
|
#define _E2_PINS E2_STEP_PIN, E2_DIR_PIN, E2_ENABLE_PIN, HEATER_2_PIN,
|
|
|
|
#else
|
|
|
|
#define _E2_PINS
|
|
|
|
#endif
|
2015-01-23 22:13:06 +00:00
|
|
|
#if EXTRUDERS > 3
|
|
|
|
#define _E3_PINS E3_STEP_PIN, E3_DIR_PIN, E3_ENABLE_PIN, HEATER_3_PIN,
|
|
|
|
#else
|
|
|
|
#define _E3_PINS
|
|
|
|
#endif
|
2012-02-29 14:49:02 +00:00
|
|
|
|
2012-12-16 20:08:55 +00:00
|
|
|
#ifdef X_STOP_PIN
|
|
|
|
#if X_HOME_DIR < 0
|
|
|
|
#define X_MIN_PIN X_STOP_PIN
|
|
|
|
#define X_MAX_PIN -1
|
|
|
|
#else
|
|
|
|
#define X_MIN_PIN -1
|
|
|
|
#define X_MAX_PIN X_STOP_PIN
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef Y_STOP_PIN
|
|
|
|
#if Y_HOME_DIR < 0
|
|
|
|
#define Y_MIN_PIN Y_STOP_PIN
|
|
|
|
#define Y_MAX_PIN -1
|
|
|
|
#else
|
|
|
|
#define Y_MIN_PIN -1
|
|
|
|
#define Y_MAX_PIN Y_STOP_PIN
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef Z_STOP_PIN
|
|
|
|
#if Z_HOME_DIR < 0
|
|
|
|
#define Z_MIN_PIN Z_STOP_PIN
|
|
|
|
#define Z_MAX_PIN -1
|
|
|
|
#else
|
|
|
|
#define Z_MIN_PIN -1
|
|
|
|
#define Z_MAX_PIN Z_STOP_PIN
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2012-03-12 19:32:14 +00:00
|
|
|
#ifdef DISABLE_MAX_ENDSTOPS
|
2015-01-26 02:40:00 +00:00
|
|
|
#define X_MAX_PIN -1
|
|
|
|
#define Y_MAX_PIN -1
|
|
|
|
#define Z_MAX_PIN -1
|
2012-03-12 19:32:14 +00:00
|
|
|
#endif
|
|
|
|
|
2013-06-18 17:20:26 +00:00
|
|
|
#ifdef DISABLE_MIN_ENDSTOPS
|
2015-01-26 02:40:00 +00:00
|
|
|
#define X_MIN_PIN -1
|
|
|
|
#define Y_MIN_PIN -1
|
|
|
|
#define Z_MIN_PIN -1
|
2013-06-18 17:20:26 +00:00
|
|
|
#endif
|
|
|
|
|
2012-12-11 13:53:53 +00:00
|
|
|
#define SENSITIVE_PINS {0, 1, X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, PS_ON_PIN, \
|
2011-12-12 18:34:37 +00:00
|
|
|
HEATER_BED_PIN, FAN_PIN, \
|
2015-01-23 22:13:06 +00:00
|
|
|
_E0_PINS _E1_PINS _E2_PINS _E3_PINS \
|
|
|
|
analogInputToDigitalPin(TEMP_0_PIN), analogInputToDigitalPin(TEMP_1_PIN), analogInputToDigitalPin(TEMP_2_PIN), analogInputToDigitalPin(TEMP_3_PIN), analogInputToDigitalPin(TEMP_BED_PIN) }
|
2014-12-18 20:02:36 +00:00
|
|
|
#endif //__PINS_H
|