瀏覽代碼

Overridable Options - Part 4 (PR#2556)

Apply `ENABLED` / `DISABLED` / `HAS_SERVOS` macros to pins files.
Scott Lahteine 10 年之前
父節點
當前提交
c0d7ea3e7e

+ 9
- 9
Marlin/pins.h 查看文件

175
   #endif
175
   #endif
176
 #endif
176
 #endif
177
 
177
 
178
-#ifdef DISABLE_MAX_ENDSTOPS
178
+#if ENABLED(DISABLE_MAX_ENDSTOPS)
179
   #undef X_MAX_PIN
179
   #undef X_MAX_PIN
180
   #undef Y_MAX_PIN
180
   #undef Y_MAX_PIN
181
   #undef Z_MAX_PIN
181
   #undef Z_MAX_PIN
184
   #define Z_MAX_PIN          -1
184
   #define Z_MAX_PIN          -1
185
 #endif
185
 #endif
186
 
186
 
187
-#ifdef DISABLE_MIN_ENDSTOPS
187
+#if ENABLED(DISABLE_MIN_ENDSTOPS)
188
   #undef X_MIN_PIN
188
   #undef X_MIN_PIN
189
   #undef Y_MIN_PIN
189
   #undef Y_MIN_PIN
190
   #undef Z_MIN_PIN
190
   #undef Z_MIN_PIN
193
   #define Z_MIN_PIN          -1
193
   #define Z_MIN_PIN          -1
194
 #endif
194
 #endif
195
 
195
 
196
-#if defined(DISABLE_Z_PROBE_ENDSTOP) || !defined(Z_PROBE_ENDSTOP) // Allow code to compile regardless of Z_PROBE_ENDSTOP setting.
196
+#if ENABLED(DISABLE_Z_PROBE_ENDSTOP) || DISABLED(Z_PROBE_ENDSTOP) // Allow code to compile regardless of Z_PROBE_ENDSTOP setting.
197
   #undef Z_PROBE_PIN
197
   #undef Z_PROBE_PIN
198
   #define Z_PROBE_PIN        -1
198
   #define Z_PROBE_PIN        -1
199
 #endif
199
 #endif
200
 
200
 
201
-#ifdef DISABLE_XMAX_ENDSTOP
201
+#if ENABLED(DISABLE_XMAX_ENDSTOP)
202
   #undef X_MAX_PIN
202
   #undef X_MAX_PIN
203
   #define X_MAX_PIN          -1
203
   #define X_MAX_PIN          -1
204
 #endif
204
 #endif
205
 
205
 
206
-#ifdef DISABLE_XMIN_ENDSTOP
206
+#if ENABLED(DISABLE_XMIN_ENDSTOP)
207
   #undef X_MIN_PIN 
207
   #undef X_MIN_PIN 
208
   #define X_MIN_PIN          -1
208
   #define X_MIN_PIN          -1
209
 #endif
209
 #endif
210
 
210
 
211
-#ifdef DISABLE_YMAX_ENDSTOP
211
+#if ENABLED(DISABLE_YMAX_ENDSTOP)
212
   #define Y_MAX_PIN          -1
212
   #define Y_MAX_PIN          -1
213
 #endif
213
 #endif
214
 
214
 
215
-#ifdef DISABLE_YMIN_ENDSTOP
215
+#if ENABLED(DISABLE_YMIN_ENDSTOP)
216
   #undef Y_MIN_PIN
216
   #undef Y_MIN_PIN
217
   #define Y_MIN_PIN          -1
217
   #define Y_MIN_PIN          -1
218
 #endif
218
 #endif
219
 
219
 
220
-#ifdef DISABLE_ZMAX_ENDSTOP
220
+#if ENABLED(DISABLE_ZMAX_ENDSTOP)
221
   #undef Z_MAX_PIN
221
   #undef Z_MAX_PIN
222
   #define Z_MAX_PIN          -1
222
   #define Z_MAX_PIN          -1
223
 #endif
223
 #endif
224
 
224
 
225
-#ifdef DISABLE_ZMIN_ENDSTOP
225
+#if ENABLED(DISABLE_ZMIN_ENDSTOP)
226
   #undef Z_MIN_PIN 
226
   #undef Z_MIN_PIN 
227
   #define Z_MIN_PIN          -1
227
   #define Z_MIN_PIN          -1
228
 #endif
228
 #endif

+ 1
- 1
Marlin/pins_3DRAG.h 查看文件

29
 
29
 
30
 #define HEATER_BED_PIN     9    // BED
30
 #define HEATER_BED_PIN     9    // BED
31
 
31
 
32
-#if defined(ULTRA_LCD) && defined(NEWPANEL)
32
+#if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
33
   #undef BEEPER
33
   #undef BEEPER
34
   #define BEEPER -1
34
   #define BEEPER -1
35
 
35
 

+ 1
- 1
Marlin/pins_5DPRINT.h 查看文件

52
 // The SDSS pin uses a different pin mapping from file Sd2PinMap.h
52
 // The SDSS pin uses a different pin mapping from file Sd2PinMap.h
53
 #define SDSS               20
53
 #define SDSS               20
54
 
54
 
55
-#ifndef SDSUPPORT
55
+#if DISABLED(SDSUPPORT)
56
 // these pins are defined in the SD library if building with SD support
56
 // these pins are defined in the SD library if building with SD support
57
   #define SCK_PIN           9
57
   #define SCK_PIN           9
58
   #define MISO_PIN         11
58
   #define MISO_PIN         11

+ 7
- 3
Marlin/pins_AZTEEG_X3.h 查看文件

6
 
6
 
7
 //LCD Pins//
7
 //LCD Pins//
8
 
8
 
9
-#if defined(VIKI2) || defined(miniVIKI)
9
+#if ENABLED(VIKI2) || ENABLED(miniVIKI)
10
+
10
  #define BEEPER 33
11
  #define BEEPER 33
11
  // Pins for DOGM SPI LCD Support
12
  // Pins for DOGM SPI LCD Support
12
  #define DOGLCD_A0  31 
13
  #define DOGLCD_A0  31 
21
  #define SDSS 53
22
  #define SDSS 53
22
  #define SDCARDDETECT -1 // Pin 49 if using display sd interface   
23
  #define SDCARDDETECT -1 // Pin 49 if using display sd interface   
23
  
24
  
24
-  #ifdef TEMP_STAT_LEDS
25
+  #if ENABLED(TEMP_STAT_LEDS)
25
    #define STAT_LED_RED 64
26
    #define STAT_LED_RED 64
26
    #define STAT_LED_BLUE 63
27
    #define STAT_LED_BLUE 63
27
   #endif
28
   #endif
28
-#elif defined(TEMP_STAT_LEDS)
29
+
30
+#elif ENABLED(TEMP_STAT_LEDS)
31
+
29
   #define STAT_LED_RED       6
32
   #define STAT_LED_RED       6
30
   #define STAT_LED_BLUE     11
33
   #define STAT_LED_BLUE     11
34
+
31
 #endif
35
 #endif

+ 5
- 5
Marlin/pins_AZTEEG_X3_PRO.h 查看文件

18
 //MIN endstops soldered onto the board. Delta code wants the homing endstops to be 
18
 //MIN endstops soldered onto the board. Delta code wants the homing endstops to be 
19
 //the MAX so I swapped them here.
19
 //the MAX so I swapped them here.
20
 //
20
 //
21
- #ifdef DELTA
21
+ #if ENABLED(DELTA)
22
   #undef X_MIN_PIN
22
   #undef X_MIN_PIN
23
   #undef X_MAX_PIN
23
   #undef X_MAX_PIN
24
   #undef Y_MIN_PIN
24
   #undef Y_MIN_PIN
34
   #define Z_MAX_PIN        18
34
   #define Z_MAX_PIN        18
35
  #endif
35
  #endif
36
 //
36
 //
37
- #ifdef Z_PROBE_ENDSTOP
37
+ #if ENABLED(Z_PROBE_ENDSTOP)
38
 //#undef Z_MIN_PIN
38
 //#undef Z_MIN_PIN
39
 //#define Z_MIN_PIN        15
39
 //#define Z_MIN_PIN        15
40
   #define Z_PROBE_PIN      19
40
   #define Z_PROBE_PIN      19
81
  #undef SERVO2_PIN
81
  #undef SERVO2_PIN
82
  #undef SERVO3_PIN
82
  #undef SERVO3_PIN
83
 
83
 
84
- #ifdef NUM_SERVOS
84
+ #if HAS_SERVOS
85
    #define SERVO0_PIN       47
85
    #define SERVO0_PIN       47
86
    #if NUM_SERVOS > 1
86
    #if NUM_SERVOS > 1
87
      #define SERVO1_PIN     -1
87
      #define SERVO1_PIN     -1
96
 
96
 
97
 //LCD Pins//
97
 //LCD Pins//
98
 
98
 
99
- #if defined(VIKI2) || defined(miniVIKI)
99
+ #if ENABLED(VIKI2) || ENABLED(miniVIKI)
100
   #define BEEPER           33
100
   #define BEEPER           33
101
  // Pins for DOGM SPI LCD Support
101
  // Pins for DOGM SPI LCD Support
102
   #define DOGLCD_A0        44
102
   #define DOGLCD_A0        44
114
   #define KILL_PIN         31
114
   #define KILL_PIN         31
115
  #endif
115
  #endif
116
 
116
 
117
- #ifdef TEMP_STAT_LEDS
117
+ #if ENABLED(TEMP_STAT_LEDS)
118
   #define STAT_LED_RED     32
118
   #define STAT_LED_RED     32
119
   #define STAT_LED_BLUE    35
119
   #define STAT_LED_BLUE    35
120
  #endif
120
  #endif

+ 1
- 1
Marlin/pins_BRAINWAVE.h 查看文件

50
 #define KILL_PIN           -1
50
 #define KILL_PIN           -1
51
 #define ALARM_PIN          -1
51
 #define ALARM_PIN          -1
52
 
52
 
53
-#ifndef SDSUPPORT
53
+#if DISABLED(SDSUPPORT)
54
   // these pins are defined in the SD library if building with SD support
54
   // these pins are defined in the SD library if building with SD support
55
   #define SCK_PIN           9
55
   #define SCK_PIN           9
56
   #define MISO_PIN         11
56
   #define MISO_PIN         11

+ 1
- 1
Marlin/pins_BRAINWAVE_PRO.h 查看文件

56
 #define ALARM_PIN          -1
56
 #define ALARM_PIN          -1
57
 #define SDCARDDETECT       12
57
 #define SDCARDDETECT       12
58
 
58
 
59
-#ifndef SDSUPPORT
59
+#if DISABLED(SDSUPPORT)
60
 // these pins are defined in the SD library if building with SD support
60
 // these pins are defined in the SD library if building with SD support
61
   #define SCK_PIN          21
61
   #define SCK_PIN          21
62
   #define MISO_PIN         23
62
   #define MISO_PIN         23

+ 2
- 2
Marlin/pins_ELEFU_3.h 查看文件

61
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
61
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
62
 #define PHOTOGRAPH_PIN     29
62
 #define PHOTOGRAPH_PIN     29
63
 
63
 
64
-#ifdef RA_CONTROL_PANEL
64
+#if ENABLED(RA_CONTROL_PANEL)
65
 
65
 
66
   #define SDSS             53
66
   #define SDSS             53
67
   #define SDCARDDETECT     28
67
   #define SDCARDDETECT     28
76
 
76
 
77
 #endif // RA_CONTROL_PANEL
77
 #endif // RA_CONTROL_PANEL
78
 
78
 
79
-#ifdef RA_DISCO
79
+#if ENABLED(RA_DISCO)
80
   //variables for which pins the TLC5947 is using
80
   //variables for which pins the TLC5947 is using
81
   #define TLC_CLOCK_PIN    25
81
   #define TLC_CLOCK_PIN    25
82
   #define TLC_BLANK_PIN    23
82
   #define TLC_BLANK_PIN    23

+ 1
- 1
Marlin/pins_FELIX2.h 查看文件

14
 
14
 
15
 #define PS_ON_PIN          12
15
 #define PS_ON_PIN          12
16
 
16
 
17
-#if defined(ULTRA_LCD) && defined(NEWPANEL)
17
+#if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
18
 
18
 
19
   #define BLEN_C 2
19
   #define BLEN_C 2
20
   #define BLEN_B 1
20
   #define BLEN_B 1

+ 2
- 2
Marlin/pins_MEGATRONICS_3.h 查看文件

9
 #define LARGE_FLASH        true
9
 #define LARGE_FLASH        true
10
 
10
 
11
 
11
 
12
-#ifdef Z_PROBE_SLED
12
+#if ENABLED(Z_PROBE_SLED)
13
   #define SLED_PIN         -1
13
   #define SLED_PIN         -1
14
 #endif
14
 #endif
15
 
15
 
16
 // Servo support
16
 // Servo support
17
-#ifdef NUM_SERVOS
17
+#if HAS_SERVOS
18
   #define SERVO0_PIN       46 //AUX3-6
18
   #define SERVO0_PIN       46 //AUX3-6
19
   #if NUM_SERVOS > 1
19
   #if NUM_SERVOS > 1
20
     #define SERVO1_PIN     47 //AUX3-5
20
     #define SERVO1_PIN     47 //AUX3-5

+ 5
- 5
Marlin/pins_MINIRAMBO.h 查看文件

53
 #define HEATER_1_PIN 7
53
 #define HEATER_1_PIN 7
54
 #define TEMP_1_PIN 1
54
 #define TEMP_1_PIN 1
55
 
55
 
56
-#ifdef BARICUDA
57
-#define HEATER_2_PIN 6
56
+#if ENABLED(BARICUDA)
57
+  #define HEATER_2_PIN 6
58
 #else
58
 #else
59
-#define HEATER_2_PIN -1
59
+  #define HEATER_2_PIN -1
60
 #endif
60
 #endif
61
 
61
 
62
 #define TEMP_2_PIN -1
62
 #define TEMP_2_PIN -1
88
 #define KILL_PIN           -1 //80 with Smart Controller LCD
88
 #define KILL_PIN           -1 //80 with Smart Controller LCD
89
 #define SUICIDE_PIN        -1  //PIN that has to be turned on right after start, to keep power flowing.
89
 #define SUICIDE_PIN        -1  //PIN that has to be turned on right after start, to keep power flowing.
90
 
90
 
91
-#ifdef ULTRA_LCD
91
+#if ENABLED(ULTRA_LCD)
92
   #define KILL_PIN 32
92
   #define KILL_PIN 32
93
-  #ifdef NEWPANEL
93
+  #if ENABLED(NEWPANEL)
94
    //arduino pin which triggers an piezzo beeper
94
    //arduino pin which triggers an piezzo beeper
95
     #define BEEPER 84      // Beeper on AUX-4
95
     #define BEEPER 84      // Beeper on AUX-4
96
     #define LCD_PINS_RS 82
96
     #define LCD_PINS_RS 82

+ 8
- 8
Marlin/pins_PRINTRBOARD.h 查看文件

9
   #error Oops!  Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
9
   #error Oops!  Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
10
 #endif
10
 #endif
11
 
11
 
12
-#ifdef AT90USBxx_TEENSYPP_ASSIGNMENTS  // use Teensyduino Teensy++2.0 pin assignments instead of Marlin traditional.
12
+#if ENABLED(AT90USBxx_TEENSYPP_ASSIGNMENTS)  // use Teensyduino Teensy++2.0 pin assignments instead of Marlin traditional.
13
   #error These Printrboard assignments depend on traditional Marlin assignments, not AT90USBxx_TEENSYPP_ASSIGNMENTS in fastio.h
13
   #error These Printrboard assignments depend on traditional Marlin assignments, not AT90USBxx_TEENSYPP_ASSIGNMENTS in fastio.h
14
 #endif
14
 #endif
15
 
15
 
38
 
38
 
39
 // If soft or fast PWM is off then use Teensyduino pin numbering, Marlin
39
 // If soft or fast PWM is off then use Teensyduino pin numbering, Marlin
40
 // fastio pin numbering otherwise
40
 // fastio pin numbering otherwise
41
-#ifdef FAN_SOFT_PWM || FAST_PWM_FAN
41
+#if ENABLED(FAN_SOFT_PWM) || ENABLED(FAST_PWM_FAN)
42
   #define FAN_PIN          22
42
   #define FAN_PIN          22
43
 #else
43
 #else
44
   #define FAN_PIN          16
44
   #define FAN_PIN          16
54
 #define TEMP_0_PIN          1  // Extruder / Analog pin numbering
54
 #define TEMP_0_PIN          1  // Extruder / Analog pin numbering
55
 #define TEMP_BED_PIN        0  // Bed / Analog pin numbering
55
 #define TEMP_BED_PIN        0  // Bed / Analog pin numbering
56
 
56
 
57
-#ifdef FILAMENT_SENSOR
57
+#if ENABLED(FILAMENT_SENSOR)
58
   #define FILWIDTH_PIN      2
58
   #define FILWIDTH_PIN      2
59
 #endif
59
 #endif
60
 
60
 
70
 #define KILL_PIN           -1
70
 #define KILL_PIN           -1
71
 #define ALARM_PIN          -1
71
 #define ALARM_PIN          -1
72
 
72
 
73
-#ifndef SDSUPPORT
73
+#if DISABLED(SDSUPPORT)
74
   // these pins are defined in the SD library if building with SD support
74
   // these pins are defined in the SD library if building with SD support
75
   #define SCK_PIN           9
75
   #define SCK_PIN           9
76
   #define MISO_PIN         11
76
   #define MISO_PIN         11
77
   #define MOSI_PIN         10
77
   #define MOSI_PIN         10
78
 #endif
78
 #endif
79
 
79
 
80
-#if defined(ULTRA_LCD) && defined(NEWPANEL)
80
+#if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
81
   //we have no buzzer installed
81
   //we have no buzzer installed
82
   #define BEEPER -1
82
   #define BEEPER -1
83
   //LCD Pins
83
   //LCD Pins
84
-  #ifdef LCD_I2C_PANELOLU2
84
+  #if ENABLED(LCD_I2C_PANELOLU2)
85
     #define BTN_EN1 27  //RX1 - fastio.h pin mapping 27
85
     #define BTN_EN1 27  //RX1 - fastio.h pin mapping 27
86
     #define BTN_EN2 26  //TX1 - fastio.h pin mapping 26
86
     #define BTN_EN2 26  //TX1 - fastio.h pin mapping 26
87
     #define BTN_ENC 43 //A3 - fastio.h pin mapping 43
87
     #define BTN_ENC 43 //A3 - fastio.h pin mapping 43
91
   #define SDCARDDETECT -1    
91
   #define SDCARDDETECT -1    
92
 #endif // ULTRA_LCD && NEWPANEL
92
 #endif // ULTRA_LCD && NEWPANEL
93
 
93
 
94
-#if defined(VIKI2) || defined(miniVIKI)
94
+#if ENABLED(VIKI2) || ENABLED(miniVIKI)
95
  #define BEEPER 32 //FastIO
95
  #define BEEPER 32 //FastIO
96
  // Pins for DOGM SPI LCD Support
96
  // Pins for DOGM SPI LCD Support
97
  #define DOGLCD_A0  42 //Non-FastIO
97
  #define DOGLCD_A0  42 //Non-FastIO
106
  #define SDSS 45
106
  #define SDSS 45
107
  #define SDCARDDETECT -1 // FastIO (Manual says 72 I'm not certain cause I can't test) 
107
  #define SDCARDDETECT -1 // FastIO (Manual says 72 I'm not certain cause I can't test) 
108
 
108
 
109
- #ifdef TEMP_STAT_LEDS
109
+ #if ENABLED(TEMP_STAT_LEDS)
110
   #define STAT_LED_RED      12 //Non-FastIO
110
   #define STAT_LED_RED      12 //Non-FastIO
111
   #define STAT_LED_BLUE     10 //Non-FastIO
111
   #define STAT_LED_BLUE     10 //Non-FastIO
112
  #endif  
112
  #endif  

+ 8
- 8
Marlin/pins_RAMBO.h 查看文件

9
 #define LARGE_FLASH true
9
 #define LARGE_FLASH true
10
 
10
 
11
 // Servo support
11
 // Servo support
12
-#ifdef NUM_SERVOS
12
+#if HAS_SERVOS
13
   #define SERVO0_PIN       22 //motor header MX1
13
   #define SERVO0_PIN       22 //motor header MX1
14
   #if NUM_SERVOS > 1
14
   #if NUM_SERVOS > 1
15
     #define SERVO1_PIN     23 //Motor header MX2
15
     #define SERVO1_PIN     23 //Motor header MX2
22
   #endif
22
   #endif
23
 #endif
23
 #endif
24
 
24
 
25
-#ifdef Z_PROBE_SLED
25
+#if ENABLED(Z_PROBE_SLED)
26
   #define SLED_PIN         -1
26
   #define SLED_PIN         -1
27
 #endif
27
 #endif
28
 
28
 
70
 #define HEATER_1_PIN 7
70
 #define HEATER_1_PIN 7
71
 #define TEMP_1_PIN 1
71
 #define TEMP_1_PIN 1
72
 
72
 
73
-#ifdef BARICUDA
73
+#if ENABLED(BARICUDA)
74
   #define HEATER_2_PIN 6
74
   #define HEATER_2_PIN 6
75
 #else
75
 #else
76
   #define HEATER_2_PIN -1
76
   #define HEATER_2_PIN -1
109
 #define KILL_PIN           -1 //80 with Smart Controller LCD
109
 #define KILL_PIN           -1 //80 with Smart Controller LCD
110
 #define SUICIDE_PIN        -1  //PIN that has to be turned on right after start, to keep power flowing.
110
 #define SUICIDE_PIN        -1  //PIN that has to be turned on right after start, to keep power flowing.
111
 
111
 
112
-#ifdef ULTRA_LCD
112
+#if ENABLED(ULTRA_LCD)
113
   #define KILL_PIN 80
113
   #define KILL_PIN 80
114
-  #ifdef NEWPANEL
114
+  #if ENABLED(NEWPANEL)
115
    //arduino pin which triggers an piezzo beeper
115
    //arduino pin which triggers an piezzo beeper
116
     #define BEEPER 79      // Beeper on AUX-4
116
     #define BEEPER 79      // Beeper on AUX-4
117
     #define LCD_PINS_RS 70
117
     #define LCD_PINS_RS 70
164
 
164
 
165
 #endif // ULTRA_LCD
165
 #endif // ULTRA_LCD
166
 
166
 
167
-#if defined(VIKI2) || defined(miniVIKI)
167
+#if ENABLED(VIKI2) || ENABLED(miniVIKI)
168
  #define BEEPER 44
168
  #define BEEPER 44
169
  // Pins for DOGM SPI LCD Support
169
  // Pins for DOGM SPI LCD Support
170
  #define DOGLCD_A0  70 
170
  #define DOGLCD_A0  70 
178
 
178
 
179
  #define SDCARDDETECT -1 // Pin 72 if using easy adapter board   
179
  #define SDCARDDETECT -1 // Pin 72 if using easy adapter board   
180
 
180
 
181
-  #ifdef TEMP_STAT_LEDS
181
+  #if ENABLED(TEMP_STAT_LEDS)
182
    #define STAT_LED_RED      22
182
    #define STAT_LED_RED      22
183
    #define STAT_LED_BLUE     32 
183
    #define STAT_LED_BLUE     32 
184
   #endif
184
   #endif
185
 #endif // VIKI2/miniVIKI
185
 #endif // VIKI2/miniVIKI
186
 
186
 
187
-#ifdef FILAMENT_SENSOR
187
+#if ENABLED(FILAMENT_SENSOR)
188
   //Filip added pin for Filament sensor analog input 
188
   //Filip added pin for Filament sensor analog input 
189
   #define FILWIDTH_PIN        3
189
   #define FILWIDTH_PIN        3
190
 #endif
190
 #endif

+ 20
- 21
Marlin/pins_RAMPS_13.h 查看文件

61
 #define SDSS               53
61
 #define SDSS               53
62
 #define LED_PIN            13
62
 #define LED_PIN            13
63
 
63
 
64
-#if MB(RAMPS_13_EEB) && defined(FILAMENT_SENSOR)  // FMM added for Filament Extruder
64
+#if MB(RAMPS_13_EEB) && ENABLED(FILAMENT_SENSOR)  // FMM added for Filament Extruder
65
   // define analog pin for the filament width sensor input
65
   // define analog pin for the filament width sensor input
66
   // Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
66
   // Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
67
   #define FILWIDTH_PIN        5
67
   #define FILWIDTH_PIN        5
68
 #endif
68
 #endif
69
 
69
 
70
-#ifdef Z_PROBE_ENDSTOP
70
+#if ENABLED(Z_PROBE_ENDSTOP)
71
   // Define a pin to use as the signal pin on Arduino for the Z_PROBE endstop.
71
   // Define a pin to use as the signal pin on Arduino for the Z_PROBE endstop.
72
   #define Z_PROBE_PIN 32
72
   #define Z_PROBE_PIN 32
73
 #endif
73
 #endif
74
 
74
 
75
-#ifdef FILAMENT_RUNOUT_SENSOR
75
+#if ENABLED(FILAMENT_RUNOUT_SENSOR)
76
   // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
76
   // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
77
   #define FILRUNOUT_PIN        4
77
   #define FILRUNOUT_PIN        4
78
 #endif
78
 #endif
79
 
79
 
80
-#if MB(RAMPS_13_EFF) || defined(IS_RAMPS_EFB)
80
+#if MB(RAMPS_13_EFF) || ENABLED(IS_RAMPS_EFB)
81
   #define FAN_PIN            9 // (Sprinter config)
81
   #define FAN_PIN            9 // (Sprinter config)
82
   #if MB(RAMPS_13_EFF)
82
   #if MB(RAMPS_13_EFF)
83
     #define CONTROLLERFAN_PIN  -1 // Pin used for the fan to cool controller
83
     #define CONTROLLERFAN_PIN  -1 // Pin used for the fan to cool controller
90
 
90
 
91
 #define PS_ON_PIN          12
91
 #define PS_ON_PIN          12
92
 
92
 
93
-#if defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL)
93
+#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) || ENABLED(G3D_PANEL)
94
   #define KILL_PIN           41
94
   #define KILL_PIN           41
95
 #else
95
 #else
96
   #define KILL_PIN           -1
96
   #define KILL_PIN           -1
102
   #define HEATER_0_PIN       10   // EXTRUDER 1
102
   #define HEATER_0_PIN       10   // EXTRUDER 1
103
 #endif
103
 #endif
104
 
104
 
105
-#if MB(RAMPS_13_SF) || defined(IS_RAMPS_EFB)
105
+#if MB(RAMPS_13_SF) || ENABLED(IS_RAMPS_EFB)
106
   #define HEATER_1_PIN       -1
106
   #define HEATER_1_PIN       -1
107
 #else
107
 #else
108
   #define HEATER_1_PIN       9    // EXTRUDER 2 (FAN On Sprinter)
108
   #define HEATER_1_PIN       9    // EXTRUDER 2 (FAN On Sprinter)
122
 
122
 
123
 #define TEMP_BED_PIN       14   // ANALOG NUMBERING
123
 #define TEMP_BED_PIN       14   // ANALOG NUMBERING
124
 
124
 
125
-#ifdef NUM_SERVOS
125
+#if HAS_SERVOS
126
   #define SERVO0_PIN         11
126
   #define SERVO0_PIN         11
127
   #if NUM_SERVOS > 1
127
   #if NUM_SERVOS > 1
128
     #define SERVO1_PIN        6
128
     #define SERVO1_PIN        6
135
   #endif
135
   #endif
136
 #endif
136
 #endif
137
 
137
 
138
-#ifdef Z_PROBE_SLED
138
+#if ENABLED(Z_PROBE_SLED)
139
   #define SLED_PIN         -1
139
   #define SLED_PIN         -1
140
 #endif
140
 #endif
141
 
141
 
142
-#ifdef ULTRA_LCD
142
+#if ENABLED(ULTRA_LCD)
143
 
143
 
144
-  #ifdef NEWPANEL
145
-
146
-    #ifdef PANEL_ONE
144
+  #if ENABLED(NEWPANEL)
145
+    #if ENABLED(PANEL_ONE)
147
       #define LCD_PINS_RS 40
146
       #define LCD_PINS_RS 40
148
       #define LCD_PINS_ENABLE 42
147
       #define LCD_PINS_ENABLE 42
149
       #define LCD_PINS_D4 65
148
       #define LCD_PINS_D4 65
159
       #define LCD_PINS_D7 29
158
       #define LCD_PINS_D7 29
160
     #endif
159
     #endif
161
 
160
 
162
-    #ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
161
+    #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
163
       #define BEEPER 37
162
       #define BEEPER 37
164
 
163
 
165
       #define BTN_EN1 31
164
       #define BTN_EN1 31
167
       #define BTN_ENC 35
166
       #define BTN_ENC 35
168
 
167
 
169
       #define SDCARDDETECT 49
168
       #define SDCARDDETECT 49
170
-    #elif defined(LCD_I2C_PANELOLU2)
169
+    #elif ENABLED(LCD_I2C_PANELOLU2)
171
       #define BTN_EN1 47  // reverse if the encoder turns the wrong way.
170
       #define BTN_EN1 47  // reverse if the encoder turns the wrong way.
172
       #define BTN_EN2 43
171
       #define BTN_EN2 43
173
       #define BTN_ENC 32
172
       #define BTN_ENC 32
174
       #define LCD_SDSS 53
173
       #define LCD_SDSS 53
175
       #define SDCARDDETECT -1
174
       #define SDCARDDETECT -1
176
       #define KILL_PIN 41
175
       #define KILL_PIN 41
177
-    #elif defined(LCD_I2C_VIKI)
176
+    #elif ENABLED(LCD_I2C_VIKI)
178
       #define BTN_EN1 22  // reverse if the encoder turns the wrong way.
177
       #define BTN_EN1 22  // reverse if the encoder turns the wrong way.
179
       #define BTN_EN2 7
178
       #define BTN_EN2 7
180
       #define BTN_ENC -1
179
       #define BTN_ENC -1
181
       #define LCD_SDSS 53
180
       #define LCD_SDSS 53
182
       #define SDCARDDETECT 49
181
       #define SDCARDDETECT 49
183
-    #elif defined(ELB_FULL_GRAPHIC_CONTROLLER)
182
+    #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
184
       #define BTN_EN1 35  // reverse if the encoder turns the wrong way.
183
       #define BTN_EN1 35  // reverse if the encoder turns the wrong way.
185
       #define BTN_EN2 37
184
       #define BTN_EN2 37
186
       #define BTN_ENC 31
185
       #define BTN_ENC 31
217
       #define BEEPER 33  // Beeper on AUX-4
216
       #define BEEPER 33  // Beeper on AUX-4
218
 
217
 
219
       // buttons are directly attached using AUX-2
218
       // buttons are directly attached using AUX-2
220
-      #ifdef REPRAPWORLD_KEYPAD
219
+      #if ENABLED(REPRAPWORLD_KEYPAD)
221
         #define BTN_EN1 64 // encoder
220
         #define BTN_EN1 64 // encoder
222
         #define BTN_EN2 59 // encoder
221
         #define BTN_EN2 59 // encoder
223
         #define BTN_ENC 63 // enter button
222
         #define BTN_ENC 63 // enter button
224
         #define SHIFT_OUT 40 // shift register
223
         #define SHIFT_OUT 40 // shift register
225
         #define SHIFT_CLK 44 // shift register
224
         #define SHIFT_CLK 44 // shift register
226
         #define SHIFT_LD 42 // shift register
225
         #define SHIFT_LD 42 // shift register
227
-      #elif defined(PANEL_ONE)
226
+      #elif ENABLED(PANEL_ONE)
228
         #define BTN_EN1 59 // AUX2 PIN 3
227
         #define BTN_EN1 59 // AUX2 PIN 3
229
         #define BTN_EN2 63 // AUX2 PIN 4
228
         #define BTN_EN2 63 // AUX2 PIN 4
230
         #define BTN_ENC 49 // AUX3 PIN 7
229
         #define BTN_ENC 49 // AUX3 PIN 7
234
         #define BTN_ENC 31  // the click
233
         #define BTN_ENC 31  // the click
235
       #endif
234
       #endif
236
 
235
 
237
-      #ifdef G3D_PANEL
236
+      #if ENABLED(G3D_PANEL)
238
         #define SDCARDDETECT 49
237
         #define SDCARDDETECT 49
239
       #else
238
       #else
240
         #define SDCARDDETECT -1  // Ramps does not use this port
239
         #define SDCARDDETECT -1  // Ramps does not use this port
264
 #endif // ULTRA_LCD
263
 #endif // ULTRA_LCD
265
 
264
 
266
 // SPI for Max6675 Thermocouple
265
 // SPI for Max6675 Thermocouple
267
-#ifndef SDSUPPORT
266
+#if DISABLED(SDSUPPORT)
268
   #define MAX6675_SS       66 // Do not use pin 53 if there is even the remote possibility of using Display/SD card
267
   #define MAX6675_SS       66 // Do not use pin 53 if there is even the remote possibility of using Display/SD card
269
 #else
268
 #else
270
   #define MAX6675_SS       66 // Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
269
   #define MAX6675_SS       66 // Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
271
 #endif
270
 #endif
272
 
271
 
273
-#ifndef SDSUPPORT
272
+#if DISABLED(SDSUPPORT)
274
   // these pins are defined in the SD library if building with SD support
273
   // these pins are defined in the SD library if building with SD support
275
   #define SCK_PIN          52
274
   #define SCK_PIN          52
276
   #define MISO_PIN         50
275
   #define MISO_PIN         50

+ 3
- 3
Marlin/pins_RAMPS_OLD.h 查看文件

37
 #define PS_ON_PIN          -1
37
 #define PS_ON_PIN          -1
38
 #define KILL_PIN           -1
38
 #define KILL_PIN           -1
39
 
39
 
40
-#ifdef RAMPS_V_1_0 // RAMPS_V_1_0
40
+#if ENABLED(RAMPS_V_1_0) // RAMPS_V_1_0
41
   #define HEATER_0_PIN     12    // RAMPS 1.0
41
   #define HEATER_0_PIN     12    // RAMPS 1.0
42
   #define HEATER_BED_PIN   -1    // RAMPS 1.0
42
   #define HEATER_BED_PIN   -1    // RAMPS 1.0
43
   #define FAN_PIN          11    // RAMPS 1.0
43
   #define FAN_PIN          11    // RAMPS 1.0
55
 #define TEMP_BED_PIN        1    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
55
 #define TEMP_BED_PIN        1    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
56
 
56
 
57
 // SPI for Max6675 Thermocouple
57
 // SPI for Max6675 Thermocouple
58
-#ifndef SDSUPPORT
58
+#if DISABLED(SDSUPPORT)
59
   #define MAX6675_SS       66// Do not use pin 53 if there is even the remote possibility of using Display/SD card
59
   #define MAX6675_SS       66// Do not use pin 53 if there is even the remote possibility of using Display/SD card
60
 #else
60
 #else
61
   #define MAX6675_SS       66// Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
61
   #define MAX6675_SS       66// Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
62
 #endif
62
 #endif
63
 
63
 
64
-#ifndef SDSUPPORT
64
+#if DISABLED(SDSUPPORT)
65
   // these pins are defined in the SD library if building with SD support
65
   // these pins are defined in the SD library if building with SD support
66
   #define SCK_PIN          52
66
   #define SCK_PIN          52
67
   #define MISO_PIN         50
67
   #define MISO_PIN         50

+ 2
- 2
Marlin/pins_RIGIDBOARD.h 查看文件

4
 
4
 
5
 #include "pins_RAMPS_13.h"
5
 #include "pins_RAMPS_13.h"
6
 
6
 
7
-#ifdef Z_PROBE_ENDSTOP
7
+#if ENABLED(Z_PROBE_ENDSTOP)
8
   #define Z_PROBE_PIN      19
8
   #define Z_PROBE_PIN      19
9
 #endif
9
 #endif
10
 
10
 
20
 
20
 
21
 // LCD Panel options for the RigidBoard
21
 // LCD Panel options for the RigidBoard
22
 
22
 
23
-#ifdef RIGIDBOT_PANEL
23
+#if ENABLED(RIGIDBOT_PANEL)
24
 
24
 
25
   #undef BEEPER
25
   #undef BEEPER
26
   #define BEEPER -1
26
   #define BEEPER -1

+ 10
- 9
Marlin/pins_SANGUINOLOLU_11.h 查看文件

33
   #endif
33
   #endif
34
 #endif
34
 #endif
35
 
35
 
36
-#ifdef Z_PROBE_SLED
36
+#if ENABLED(Z_PROBE_SLED)
37
   #define SLED_PIN         -1
37
   #define SLED_PIN         -1
38
 #endif
38
 #endif
39
 
39
 
40
-#ifdef NUM_SERVOS
40
+#if HAS_SERVOS
41
   #define SERVO0_PIN       -1
41
   #define SERVO0_PIN       -1
42
   #if NUM_SERVOS > 1
42
   #if NUM_SERVOS > 1
43
     #define SERVO1_PIN     -1
43
     #define SERVO1_PIN     -1
57
 #define HEATER_1_PIN       -1
57
 #define HEATER_1_PIN       -1
58
 #define HEATER_2_PIN       -1
58
 #define HEATER_2_PIN       -1
59
 
59
 
60
-#ifdef SANGUINOLOLU_V_1_2
60
+#if ENABLED(SANGUINOLOLU_V_1_2)
61
 
61
 
62
   #define HEATER_BED_PIN   12 // (bed)
62
   #define HEATER_BED_PIN   12 // (bed)
63
   #define X_ENABLE_PIN     14
63
   #define X_ENABLE_PIN     14
65
   #define Z_ENABLE_PIN     26
65
   #define Z_ENABLE_PIN     26
66
   #define E0_ENABLE_PIN    14
66
   #define E0_ENABLE_PIN    14
67
 
67
 
68
-  #ifdef LCD_I2C_PANELOLU2
68
+  #if ENABLED(LCD_I2C_PANELOLU2)
69
     #define FAN_PIN         4 // Uses Transistor1 (PWM) on Panelolu2's Sanguino Adapter Board to drive the fan
69
     #define FAN_PIN         4 // Uses Transistor1 (PWM) on Panelolu2's Sanguino Adapter Board to drive the fan
70
   #endif
70
   #endif
71
 
71
 
92
  */
92
  */
93
 //#define SDSS               24
93
 //#define SDSS               24
94
 
94
 
95
-#if defined(ULTRA_LCD) && defined(NEWPANEL)
95
+#if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
96
 
96
 
97
   // No buzzer installed
97
   // No buzzer installed
98
   #define BEEPER -1
98
   #define BEEPER -1
99
 
99
 
100
   // LCD Pins
100
   // LCD Pins
101
-  #ifdef DOGLCD
101
+  #if ENABLED(DOGLCD)
102
 
102
 
103
-    #ifdef U8GLIB_ST7920 //SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
103
+    #if ENABLED(U8GLIB_ST7920) //SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
104
 
104
 
105
       #if MB(MELZI) // Melzi board
105
       #if MB(MELZI) // Melzi board
106
         #define LCD_PINS_RS     30 //CS chip select /SS chip slave select
106
         #define LCD_PINS_RS     30 //CS chip select /SS chip slave select
144
   //The encoder and click button
144
   //The encoder and click button
145
   #define BTN_EN1               11
145
   #define BTN_EN1               11
146
   #define BTN_EN2               10
146
   #define BTN_EN2               10
147
-  #ifdef LCD_I2C_PANELOLU2
147
+  #if ENABLED(LCD_I2C_PANELOLU2)
148
     #if MB(MELZI)
148
     #if MB(MELZI)
149
       #define BTN_ENC           29
149
       #define BTN_ENC           29
150
       #define LCD_SDSS          30 // Panelolu2 SD card reader rather than the Melzi
150
       #define LCD_SDSS          30 // Panelolu2 SD card reader rather than the Melzi
158
 
158
 
159
   #define SDCARDDETECT          -1
159
   #define SDCARDDETECT          -1
160
 
160
 
161
-#elif defined(MAKRPANEL)
161
+#elif ENABLED(MAKRPANEL)
162
 
162
 
163
   #define BEEPER                29
163
   #define BEEPER                29
164
+
164
   // Pins for DOGM SPI LCD Support
165
   // Pins for DOGM SPI LCD Support
165
   #define DOGLCD_A0             30
166
   #define DOGLCD_A0             30
166
   #define DOGLCD_CS             17
167
   #define DOGLCD_CS             17

+ 4
- 4
Marlin/pins_SAV_MKI.h 查看文件

45
 #define TEMP_1_PIN         -1
45
 #define TEMP_1_PIN         -1
46
 #define TEMP_2_PIN         -1
46
 #define TEMP_2_PIN         -1
47
 
47
 
48
-#ifndef SDSUPPORT
48
+#if DISABLED(SDSUPPORT)
49
    // these pins are defined in the SD library if building with SD support
49
    // these pins are defined in the SD library if building with SD support
50
   #define SCK_PIN          9
50
   #define SCK_PIN          9
51
   #define MISO_PIN         11
51
   #define MISO_PIN         11
93
 #define LCD_PINS_D6        -1
93
 #define LCD_PINS_D6        -1
94
 #define LCD_PINS_D7        -1
94
 #define LCD_PINS_D7        -1
95
 
95
 
96
-#ifdef SAV_3DLCD
96
+#if ENABLED(SAV_3DLCD)
97
   // For LCD SHIFT register LCD
97
   // For LCD SHIFT register LCD
98
   #define SR_DATA_PIN         EXT_AUX_SDA_D1
98
   #define SR_DATA_PIN         EXT_AUX_SDA_D1
99
   #define SR_CLK_PIN          EXT_AUX_SCL_D0
99
   #define SR_CLK_PIN          EXT_AUX_SCL_D0
100
 #endif  // SAV_3DLCD
100
 #endif  // SAV_3DLCD
101
 
101
 
102
-#if defined(SAV_3DLCD)||defined(SAV_3DGLCD)
102
+#if ENABLED(SAV_3DLCD) || ENABLED(SAV_3DGLCD)
103
   #define BTN_EN1            EXT_AUX_A1_IO
103
   #define BTN_EN1            EXT_AUX_A1_IO
104
   #define BTN_EN2            EXT_AUX_A0_IO
104
   #define BTN_EN2            EXT_AUX_A0_IO
105
   #define BTN_ENC            EXT_AUX_PWM_D24
105
   #define BTN_ENC            EXT_AUX_PWM_D24
108
   #define HOME_PIN           EXT_AUX_A4_IO
108
   #define HOME_PIN           EXT_AUX_A4_IO
109
 #endif // SAV_3DLCD || SAV_3DGLCD
109
 #endif // SAV_3DLCD || SAV_3DGLCD
110
 
110
 
111
-#ifdef NUM_SERVOS
111
+#if HAS_SERVOS
112
   #define SERVO0_PIN       41 // In teensy's pin definition for pinMode (in servo.cpp)
112
   #define SERVO0_PIN       41 // In teensy's pin definition for pinMode (in servo.cpp)
113
 #endif
113
 #endif

+ 2
- 2
Marlin/pins_TEENSY2.h 查看文件

93
 #define KILL_PIN           -1
93
 #define KILL_PIN           -1
94
 #define ALARM_PIN          -1
94
 #define ALARM_PIN          -1
95
 
95
 
96
-#ifndef SDSUPPORT
96
+#if DISABLED(SDSUPPORT)
97
 // these pins are defined in the SD library if building with SD support
97
 // these pins are defined in the SD library if building with SD support
98
   #define SCK_PIN         21 // 9
98
   #define SCK_PIN         21 // 9
99
   #define MISO_PIN        23 // 11
99
   #define MISO_PIN        23 // 11
100
   #define MOSI_PIN        22 // 10
100
   #define MOSI_PIN        22 // 10
101
 #endif
101
 #endif
102
 
102
 
103
-#ifdef ULTIPANEL
103
+#if ENABLED(ULTIPANEL)
104
   #define LCD_PINS_RS         8
104
   #define LCD_PINS_RS         8
105
   #define LCD_PINS_ENABLE     9
105
   #define LCD_PINS_ENABLE     9
106
   #define LCD_PINS_D4        10
106
   #define LCD_PINS_D4        10

+ 5
- 5
Marlin/pins_TEENSYLU.h 查看文件

9
   #error Oops!  Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
9
   #error Oops!  Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
10
 #endif
10
 #endif
11
 
11
 
12
-#ifdef AT90USBxx_TEENSYPP_ASSIGNMENTS  // use Teensyduino Teensy++2.0 pin assignments instead of Marlin traditional.
12
+#if ENABLED(AT90USBxx_TEENSYPP_ASSIGNMENTS)  // use Teensyduino Teensy++2.0 pin assignments instead of Marlin traditional.
13
   #error These Teensylu assignments depend on traditional Marlin assignments, not AT90USBxx_TEENSYPP_ASSIGNMENTS in fastio.h
13
   #error These Teensylu assignments depend on traditional Marlin assignments, not AT90USBxx_TEENSYPP_ASSIGNMENTS in fastio.h
14
 #endif
14
 #endif
15
 
15
 
38
 
38
 
39
 // If soft or fast PWM is off then use Teensyduino pin numbering, Marlin
39
 // If soft or fast PWM is off then use Teensyduino pin numbering, Marlin
40
 // fastio pin numbering otherwise
40
 // fastio pin numbering otherwise
41
-#ifdef FAN_SOFT_PWM || FAST_PWM_FAN
41
+#if ENABLED(FAN_SOFT_PWM) || ENABLED(FAST_PWM_FAN)
42
   #define FAN_PIN          22
42
   #define FAN_PIN          22
43
 #else
43
 #else
44
   #define FAN_PIN          16
44
   #define FAN_PIN          16
60
 #define KILL_PIN           -1
60
 #define KILL_PIN           -1
61
 #define ALARM_PIN          -1
61
 #define ALARM_PIN          -1
62
 
62
 
63
-#ifndef SDSUPPORT
63
+#if DISABLED(SDSUPPORT)
64
 // these pins are defined in the SD library if building with SD support
64
 // these pins are defined in the SD library if building with SD support
65
   #define SCK_PIN           9
65
   #define SCK_PIN           9
66
   #define MISO_PIN         11
66
   #define MISO_PIN         11
67
   #define MOSI_PIN         10
67
   #define MOSI_PIN         10
68
 #endif
68
 #endif
69
 
69
 
70
-#if defined(ULTRA_LCD) && defined(NEWPANEL)
70
+#if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
71
   //we have no buzzer installed
71
   //we have no buzzer installed
72
   #define BEEPER -1
72
   #define BEEPER -1
73
   //LCD Pins
73
   //LCD Pins
74
-  #ifdef LCD_I2C_PANELOLU2
74
+  #if ENABLED(LCD_I2C_PANELOLU2)
75
     #define BTN_EN1 27  //RX1 - fastio.h pin mapping 27
75
     #define BTN_EN1 27  //RX1 - fastio.h pin mapping 27
76
     #define BTN_EN2 26  //TX1 - fastio.h pin mapping 26
76
     #define BTN_EN2 26  //TX1 - fastio.h pin mapping 26
77
     #define BTN_ENC 43 //A3 - fastio.h pin mapping 43
77
     #define BTN_ENC 43 //A3 - fastio.h pin mapping 43

+ 2
- 2
Marlin/pins_ULTIMAKER.h 查看文件

55
 #define SUICIDE_PIN        54  //PIN that has to be turned on right after start, to keep power flowing.
55
 #define SUICIDE_PIN        54  //PIN that has to be turned on right after start, to keep power flowing.
56
 #define SERVO0_PIN         13  // untested
56
 #define SERVO0_PIN         13  // untested
57
 
57
 
58
-#ifdef ULTRA_LCD
58
+#if ENABLED(ULTRA_LCD)
59
 
59
 
60
-  #ifdef NEWPANEL
60
+  #if ENABLED(NEWPANEL)
61
   //arduino pin witch triggers an piezzo beeper
61
   //arduino pin witch triggers an piezzo beeper
62
     #define BEEPER 18
62
     #define BEEPER 18
63
 
63
 

Loading…
取消
儲存