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,8 +256,8 @@ const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of th
256 256
 #define Z_MAX_LENGTH (Z_MAX_POS - Z_MIN_POS)
257 257
 
258 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 262
 //Manual homing switch locations:
263 263
 #define MANUAL_X_HOME_POS 0

+ 1
- 1
Marlin/Configuration_adv.h View File

@@ -78,7 +78,7 @@
78 78
 
79 79
 //// AUTOSET LOCATIONS OF LIMIT SWITCHES
80 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 82
   #define X_HOME_POS MANUAL_X_HOME_POS
83 83
   #define Y_HOME_POS MANUAL_Y_HOME_POS
84 84
   #define Z_HOME_POS MANUAL_Z_HOME_POS

+ 5
- 1
Marlin/Makefile View File

@@ -173,7 +173,11 @@ F_CPU ?= 16000000
173 173
 ifeq ($(HARDWARE_VARIANT), arduino)
174 174
 HARDWARE_SRC = $(ARDUINO_INSTALL_DIR)/hardware/arduino/cores/arduino
175 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 181
 endif
178 182
 
179 183
 TARGET = $(notdir $(CURDIR))

+ 10
- 5
Marlin/pins.h View File

@@ -973,19 +973,16 @@
973 973
 #define X_STEP_PIN          0
974 974
 #define X_DIR_PIN           1
975 975
 #define X_ENABLE_PIN       39
976
-#define X_MIN_PIN          13
977 976
 #define X_MAX_PIN          -1
978 977
 
979 978
 #define Y_STEP_PIN          2
980 979
 #define Y_DIR_PIN           3
981 980
 #define Y_ENABLE_PIN       38
982
-#define Y_MIN_PIN          14
983 981
 #define Y_MAX_PIN          -1
984 982
 
985 983
 #define Z_STEP_PIN          4
986 984
 #define Z_DIR_PIN           5
987 985
 #define Z_ENABLE_PIN       23
988
-#define Z_MIN_PIN          15
989 986
 #define Z_MAX_PIN          -1
990 987
 
991 988
 #define E0_STEP_PIN         6
@@ -997,11 +994,19 @@
997 994
 #define HEATER_2_PIN       -1
998 995
 #define HEATER_BED_PIN     20  // Bed
999 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 1004
   #define TEMP_0_PIN          7  // Extruder / Analog pin numbering
1003 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 1010
   #define TEMP_0_PIN          1  // Extruder / Analog pin numbering
1006 1011
   #define TEMP_BED_PIN        0  // Bed / Analog pin numbering
1007 1012
 #endif

Loading…
Cancel
Save