Browse Source

Easier override of FILWIDTH_PIN

Scott Lahteine 8 years ago
parent
commit
65a0212866

+ 4
- 1
Marlin/pins_CHEAPTRONICv2.h View File

111
 //
111
 //
112
 // Other board specific pins
112
 // Other board specific pins
113
 //
113
 //
114
-#define FILWIDTH_PIN       37
115
 #define LED_PIN            13
114
 #define LED_PIN            13
116
 #define SPINDLE_ENABLE_PIN  4
115
 #define SPINDLE_ENABLE_PIN  4
117
 #define FAN_PIN             3
116
 #define FAN_PIN             3
118
 #define PS_ON_PIN          45
117
 #define PS_ON_PIN          45
119
 #define KILL_PIN           46
118
 #define KILL_PIN           46
119
+
120
+#ifndef FILWIDTH_PIN
121
+  #define FILWIDTH_PIN     37   // should be Analog Input (0-15)
122
+#endif

+ 4
- 1
Marlin/pins_PRINTRBOARD.h View File

99
 // Misc. Functions
99
 // Misc. Functions
100
 //
100
 //
101
 #define SDSS               26
101
 #define SDSS               26
102
-#define FILWIDTH_PIN        2   // Analog Input
102
+
103
+#ifndef FILWIDTH_PIN
104
+  #define FILWIDTH_PIN      2   // Analog Input
105
+#endif
103
 
106
 
104
 //
107
 //
105
 // LCD / Controller
108
 // LCD / Controller

+ 4
- 1
Marlin/pins_PRINTRBOARD_REVF.h View File

102
 // Misc. Functions
102
 // Misc. Functions
103
 //
103
 //
104
 #define SDSS               20 // Teensylu pin mapping
104
 #define SDSS               20 // Teensylu pin mapping
105
-#define FILWIDTH_PIN        2 // Analog Input
105
+
106
+#ifndef FILWIDTH_PIN
107
+  #define FILWIDTH_PIN      2   // Analog Input
108
+#endif
106
 
109
 
107
 //
110
 //
108
 // LCD / Controller
111
 // LCD / Controller

+ 4
- 1
Marlin/pins_RAMBO.h View File

135
 //
135
 //
136
 #define SDSS               53
136
 #define SDSS               53
137
 #define LED_PIN            13
137
 #define LED_PIN            13
138
-#define FILWIDTH_PIN        3   // Analog Input
139
 #define PS_ON_PIN           4
138
 #define PS_ON_PIN           4
140
 #define CASE_LIGHT_PIN     46
139
 #define CASE_LIGHT_PIN     46
141
 
140
 
141
+#ifndef FILWIDTH_PIN
142
+  #define FILWIDTH_PIN      3   // Analog Input
143
+#endif
144
+
142
 //
145
 //
143
 // LCD / Controller
146
 // LCD / Controller
144
 //
147
 //

+ 4
- 1
Marlin/pins_SCOOVO_X9H.h View File

118
 #define SDSS                53
118
 #define SDSS                53
119
 #define LED_PIN             13
119
 #define LED_PIN             13
120
 #define PS_ON_PIN            4
120
 #define PS_ON_PIN            4
121
-#define FILWIDTH_PIN         3   // Analog Input
121
+
122
+#ifndef FILWIDTH_PIN
123
+  #define FILWIDTH_PIN       3   // Analog Input
124
+#endif
122
 
125
 
123
 //
126
 //
124
 // LCD / Controller
127
 // LCD / Controller

Loading…
Cancel
Save