Procházet zdrojové kódy

Easier override of FILWIDTH_PIN

Scott Lahteine před 7 roky
rodič
revize
65a0212866

+ 4
- 1
Marlin/pins_CHEAPTRONICv2.h Zobrazit soubor

@@ -111,9 +111,12 @@
111 111
 //
112 112
 // Other board specific pins
113 113
 //
114
-#define FILWIDTH_PIN       37
115 114
 #define LED_PIN            13
116 115
 #define SPINDLE_ENABLE_PIN  4
117 116
 #define FAN_PIN             3
118 117
 #define PS_ON_PIN          45
119 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 Zobrazit soubor

@@ -99,7 +99,10 @@
99 99
 // Misc. Functions
100 100
 //
101 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 108
 // LCD / Controller

+ 4
- 1
Marlin/pins_PRINTRBOARD_REVF.h Zobrazit soubor

@@ -102,7 +102,10 @@
102 102
 // Misc. Functions
103 103
 //
104 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 111
 // LCD / Controller

+ 4
- 1
Marlin/pins_RAMBO.h Zobrazit soubor

@@ -135,10 +135,13 @@
135 135
 //
136 136
 #define SDSS               53
137 137
 #define LED_PIN            13
138
-#define FILWIDTH_PIN        3   // Analog Input
139 138
 #define PS_ON_PIN           4
140 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 146
 // LCD / Controller
144 147
 //

+ 4
- 1
Marlin/pins_SCOOVO_X9H.h Zobrazit soubor

@@ -118,7 +118,10 @@
118 118
 #define SDSS                53
119 119
 #define LED_PIN             13
120 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 127
 // LCD / Controller

Loading…
Zrušit
Uložit