Browse Source

Fix X/Y/Z_MIN_PIN for Printrboard.

Johann Rocholl 12 years ago
parent
commit
ca409e5531
1 changed files with 10 additions and 5 deletions
  1. 10
    5
      Marlin/pins.h

+ 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