Browse Source

Merge branch 'Marlin_v1' of github.com:ErikZalm/Marlin into Marlin_v1

daid303 12 years ago
parent
commit
8b58edc70e
4 changed files with 18 additions and 9 deletions
  1. 2
    2
      Marlin/Configuration.h
  2. 1
    1
      Marlin/Configuration_adv.h
  3. 5
    1
      Marlin/Makefile
  4. 10
    5
      Marlin/pins.h

+ 2
- 2
Marlin/Configuration.h View File

256
 #define Z_MAX_LENGTH (Z_MAX_POS - Z_MIN_POS)
256
 #define Z_MAX_LENGTH (Z_MAX_POS - Z_MIN_POS)
257
 
257
 
258
 // The position of the homing switches
258
 // The position of the homing switches
259
-//#define MANUAL_HOME_POSITIONS  // If defined, manualy programed locations will be used
260
-//#define BED_CENTER_AT_0_0  // If defined the center of the bed is defined as (0,0)
259
+//#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
260
+//#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
261
 
261
 
262
 //Manual homing switch locations:
262
 //Manual homing switch locations:
263
 #define MANUAL_X_HOME_POS 0
263
 #define MANUAL_X_HOME_POS 0

+ 1
- 1
Marlin/Configuration_adv.h View File

78
 
78
 
79
 //// AUTOSET LOCATIONS OF LIMIT SWITCHES
79
 //// AUTOSET LOCATIONS OF LIMIT SWITCHES
80
 //// Added by ZetaPhoenix 09-15-2012
80
 //// Added by ZetaPhoenix 09-15-2012
81
-#ifdef MANUAL_HOME_POSITION  //Use manual limit switch locations
81
+#ifdef MANUAL_HOME_POSITIONS  // Use manual limit switch locations
82
   #define X_HOME_POS MANUAL_X_HOME_POS
82
   #define X_HOME_POS MANUAL_X_HOME_POS
83
   #define Y_HOME_POS MANUAL_Y_HOME_POS
83
   #define Y_HOME_POS MANUAL_Y_HOME_POS
84
   #define Z_HOME_POS MANUAL_Z_HOME_POS
84
   #define Z_HOME_POS MANUAL_Z_HOME_POS

+ 5
- 1
Marlin/Makefile View File

173
 ifeq ($(HARDWARE_VARIANT), arduino)
173
 ifeq ($(HARDWARE_VARIANT), arduino)
174
 HARDWARE_SRC = $(ARDUINO_INSTALL_DIR)/hardware/arduino/cores/arduino
174
 HARDWARE_SRC = $(ARDUINO_INSTALL_DIR)/hardware/arduino/cores/arduino
175
 else
175
 else
176
-HARDWARE_SRC = $(HARDWARE_VARIANT)/cores/arduino
176
+ifeq ($(shell [ $(ARDUINO_VERSION) -ge 100 ] && echo true), true)
177
+HARDWARE_SRC = ../ArduinoAddons/Arduino_1.x.x/$(HARDWARE_VARIANT)/cores/arduino
178
+else
179
+HARDWARE_SRC = ../ArduinoAddons/Arduino_0.xx/$(HARDWARE_VARIANT)/cores/arduino
180
+endif
177
 endif
181
 endif
178
 
182
 
179
 TARGET = $(notdir $(CURDIR))
183
 TARGET = $(notdir $(CURDIR))

+ 10
- 5
Marlin/pins.h View File

973
 #define X_STEP_PIN          0
973
 #define X_STEP_PIN          0
974
 #define X_DIR_PIN           1
974
 #define X_DIR_PIN           1
975
 #define X_ENABLE_PIN       39
975
 #define X_ENABLE_PIN       39
976
-#define X_MIN_PIN          13
977
 #define X_MAX_PIN          -1
976
 #define X_MAX_PIN          -1
978
 
977
 
979
 #define Y_STEP_PIN          2
978
 #define Y_STEP_PIN          2
980
 #define Y_DIR_PIN           3
979
 #define Y_DIR_PIN           3
981
 #define Y_ENABLE_PIN       38
980
 #define Y_ENABLE_PIN       38
982
-#define Y_MIN_PIN          14
983
 #define Y_MAX_PIN          -1
981
 #define Y_MAX_PIN          -1
984
 
982
 
985
 #define Z_STEP_PIN          4
983
 #define Z_STEP_PIN          4
986
 #define Z_DIR_PIN           5
984
 #define Z_DIR_PIN           5
987
 #define Z_ENABLE_PIN       23
985
 #define Z_ENABLE_PIN       23
988
-#define Z_MIN_PIN          15
989
 #define Z_MAX_PIN          -1
986
 #define Z_MAX_PIN          -1
990
 
987
 
991
 #define E0_STEP_PIN         6
988
 #define E0_STEP_PIN         6
997
 #define HEATER_2_PIN       -1
994
 #define HEATER_2_PIN       -1
998
 #define HEATER_BED_PIN     20  // Bed
995
 #define HEATER_BED_PIN     20  // Bed
999
 #define FAN_PIN            22  // Fan
996
 #define FAN_PIN            22  // Fan
997
+// You may need to change FAN_PIN to 16 because Marlin isn't using fastio.h
998
+// for the fan and Teensyduino uses a different pin mapping.
1000
 
999
 
1001
-#if MOTHERBOARD == 8
1000
+#if MOTHERBOARD == 8  // Teensylu
1001
+  #define X_MIN_PIN          13
1002
+  #define Y_MIN_PIN          14
1003
+  #define Z_MIN_PIN          15
1002
   #define TEMP_0_PIN          7  // Extruder / Analog pin numbering
1004
   #define TEMP_0_PIN          7  // Extruder / Analog pin numbering
1003
   #define TEMP_BED_PIN        6  // Bed / Analog pin numbering
1005
   #define TEMP_BED_PIN        6  // Bed / Analog pin numbering
1004
-#else
1006
+#else  // Printrboard
1007
+  #define X_MIN_PIN          35
1008
+  #define Y_MIN_PIN           8
1009
+  #define Z_MIN_PIN          36
1005
   #define TEMP_0_PIN          1  // Extruder / Analog pin numbering
1010
   #define TEMP_0_PIN          1  // Extruder / Analog pin numbering
1006
   #define TEMP_BED_PIN        0  // Bed / Analog pin numbering
1011
   #define TEMP_BED_PIN        0  // Bed / Analog pin numbering
1007
 #endif
1012
 #endif

Loading…
Cancel
Save