Pārlūkot izejas kodu

Clean up after recent commits

Scott Lahteine 8 gadus atpakaļ
vecāks
revīzija
90ccac4bcf
26 mainītis faili ar 217 papildinājumiem un 263 dzēšanām
  1. 8
    8
      Marlin/Configuration_adv.h
  2. 1
    1
      Marlin/boards.h
  3. 9
    11
      Marlin/example_configurations/Cartesio/Configuration_adv.h
  4. 9
    11
      Marlin/example_configurations/Felix/Configuration_adv.h
  5. 9
    11
      Marlin/example_configurations/FolgerTech-i3-2020/Configuration_adv.h
  6. 9
    11
      Marlin/example_configurations/Hephestos/Configuration_adv.h
  7. 9
    11
      Marlin/example_configurations/Hephestos_2/Configuration_adv.h
  8. 9
    11
      Marlin/example_configurations/K8200/Configuration_adv.h
  9. 9
    11
      Marlin/example_configurations/K8400/Configuration_adv.h
  10. 9
    11
      Marlin/example_configurations/M150/Configuration_adv.h
  11. 9
    11
      Marlin/example_configurations/RigidBot/Configuration_adv.h
  12. 9
    11
      Marlin/example_configurations/SCARA/Configuration_adv.h
  13. 9
    11
      Marlin/example_configurations/TAZ4/Configuration_adv.h
  14. 9
    11
      Marlin/example_configurations/TinyBoy2/Configuration_adv.h
  15. 9
    11
      Marlin/example_configurations/WITBOX/Configuration_adv.h
  16. 9
    11
      Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h
  17. 9
    11
      Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h
  18. 9
    11
      Marlin/example_configurations/delta/generic/Configuration_adv.h
  19. 9
    11
      Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
  20. 9
    11
      Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h
  21. 9
    11
      Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h
  22. 9
    11
      Marlin/example_configurations/gCreate_gMax1.5+/Configuration_adv.h
  23. 9
    11
      Marlin/example_configurations/makibox/Configuration_adv.h
  24. 9
    11
      Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h
  25. 9
    11
      Marlin/example_configurations/wt150/Configuration_adv.h
  26. 1
    1
      Marlin/gcode.cpp

+ 8
- 8
Marlin/Configuration_adv.h Parādīt failu

@@ -223,16 +223,16 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board
229
+                                    //  pins_XXX.h file overrides this one
230
+  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0
231 231
   #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232 232
   #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233 233
                                               // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
234
+  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu
235
+#endif
236 236
 
237 237
 //===========================================================================
238 238
 //============================ Mechanical Settings ==========================
@@ -1029,7 +1029,7 @@
1029 1029
    */
1030 1030
   #define  TMC2130_ADV() {  }
1031 1031
 
1032
-#endif // ENABLED(HAVE_TMC2130)
1032
+#endif // HAVE_TMC2130
1033 1033
 
1034 1034
 // @section L6470
1035 1035
 

+ 1
- 1
Marlin/boards.h Parādīt failu

@@ -95,7 +95,7 @@
95 95
 #define BOARD_BAM_DICE          401  // 2PrintBeta BAM&DICE with STK drivers
96 96
 #define BOARD_BAM_DICE_DUE      402  // 2PrintBeta BAM&DICE Due with STK drivers
97 97
 #define BOARD_BQ_ZUM_MEGA_3D    503  // bq ZUM Mega 3D
98
-#define BOARD_ZRIB_V20          504  // zrib V2.0 control board (Chinese knock off RAMPS replica) 
98
+#define BOARD_ZRIB_V20          504  // zrib V2.0 control board (Chinese knock off RAMPS replica)
99 99
 
100 100
 #define MB(board) (MOTHERBOARD==BOARD_##board)
101 101
 

+ 9
- 11
Marlin/example_configurations/Cartesio/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/Felix/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/FolgerTech-i3-2020/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1031,7 +1029,7 @@
1031 1029
    */
1032 1030
   #define  TMC2130_ADV() {  }
1033 1031
 
1034
-#endif // ENABLED(HAVE_TMC2130)
1032
+#endif // HAVE_TMC2130
1035 1033
 
1036 1034
 // @section L6470
1037 1035
 

+ 9
- 11
Marlin/example_configurations/Hephestos/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/Hephestos_2/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1006,7 +1004,7 @@
1006 1004
    */
1007 1005
   #define  TMC2130_ADV() {  }
1008 1006
 
1009
-#endif // ENABLED(HAVE_TMC2130)
1007
+#endif // HAVE_TMC2130
1010 1008
 
1011 1009
 // @section L6470
1012 1010
 

+ 9
- 11
Marlin/example_configurations/K8200/Configuration_adv.h Parādīt failu

@@ -236,16 +236,14 @@
236 236
 /**
237 237
  * M355 Case Light on-off / brightness
238 238
  */
239
-//#define CASE_LIGHT_ENABLE 
240
-#if ENABLED(CASE_LIGHT_ENABLE) 
241
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
242
-                                    //  pins_XXX.h file overrides this one 
243
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
244
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
245
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
246
-                                              // and if CASE_LIGHT_DEFAULT is set to on
247
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
248
-#endif 
239
+//#define CASE_LIGHT_ENABLE
240
+#if ENABLED(CASE_LIGHT_ENABLE)
241
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
242
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
243
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
244
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
245
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
246
+#endif
249 247
 
250 248
 //===========================================================================
251 249
 //============================ Mechanical Settings ==========================
@@ -1035,7 +1033,7 @@
1035 1033
    */
1036 1034
   #define  TMC2130_ADV() {  }
1037 1035
 
1038
-#endif // ENABLED(HAVE_TMC2130)
1036
+#endif // HAVE_TMC2130
1039 1037
 
1040 1038
 // @section L6470
1041 1039
 

+ 9
- 11
Marlin/example_configurations/K8400/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/M150/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1029,7 +1027,7 @@
1029 1027
    */
1030 1028
   #define  TMC2130_ADV() {  }
1031 1029
 
1032
-#endif // ENABLED(HAVE_TMC2130)
1030
+#endif // HAVE_TMC2130
1033 1031
 
1034 1032
 // @section L6470
1035 1033
 

+ 9
- 11
Marlin/example_configurations/RigidBot/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/SCARA/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/TAZ4/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/TinyBoy2/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1025,7 +1023,7 @@
1025 1023
    */
1026 1024
   #define  TMC2130_ADV() {  }
1027 1025
 
1028
-#endif // ENABLED(HAVE_TMC2130)
1026
+#endif // HAVE_TMC2130
1029 1027
 
1030 1028
 // @section L6470
1031 1029
 

+ 9
- 11
Marlin/example_configurations/WITBOX/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1027,7 +1025,7 @@
1027 1025
    */
1028 1026
   #define  TMC2130_ADV() {  }
1029 1027
 
1030
-#endif // ENABLED(HAVE_TMC2130)
1028
+#endif // HAVE_TMC2130
1031 1029
 
1032 1030
 // @section L6470
1033 1031
 

+ 9
- 11
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1026,7 +1024,7 @@
1026 1024
    */
1027 1025
   #define  TMC2130_ADV() {  }
1028 1026
 
1029
-#endif // ENABLED(HAVE_TMC2130)
1027
+#endif // HAVE_TMC2130
1030 1028
 
1031 1029
 // @section L6470
1032 1030
 

+ 9
- 11
Marlin/example_configurations/delta/generic/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1024,7 +1022,7 @@
1024 1022
    */
1025 1023
   #define  TMC2130_ADV() {  }
1026 1024
 
1027
-#endif // ENABLED(HAVE_TMC2130)
1025
+#endif // HAVE_TMC2130
1028 1026
 
1029 1027
 // @section L6470
1030 1028
 

+ 9
- 11
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1024,7 +1022,7 @@
1024 1022
    */
1025 1023
   #define  TMC2130_ADV() {  }
1026 1024
 
1027
-#endif // ENABLED(HAVE_TMC2130)
1025
+#endif // HAVE_TMC2130
1028 1026
 
1029 1027
 // @section L6470
1030 1028
 

+ 9
- 11
Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h Parādīt failu

@@ -228,16 +228,14 @@
228 228
 /**
229 229
  * M355 Case Light on-off / brightness
230 230
  */
231
-//#define CASE_LIGHT_ENABLE 
232
-#if ENABLED(CASE_LIGHT_ENABLE) 
233
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
234
-                                    //  pins_XXX.h file overrides this one 
235
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
236
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
237
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
238
-                                              // and if CASE_LIGHT_DEFAULT is set to on
239
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
240
-#endif 
231
+//#define CASE_LIGHT_ENABLE
232
+#if ENABLED(CASE_LIGHT_ENABLE)
233
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
234
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
235
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
236
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
237
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
238
+#endif
241 239
 
242 240
 //===========================================================================
243 241
 //============================ Mechanical Settings ==========================
@@ -1029,7 +1027,7 @@
1029 1027
    */
1030 1028
   #define  TMC2130_ADV() {  }
1031 1029
 
1032
-#endif // ENABLED(HAVE_TMC2130)
1030
+#endif // HAVE_TMC2130
1033 1031
 
1034 1032
 // @section L6470
1035 1033
 

+ 9
- 11
Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1024,7 +1022,7 @@
1024 1022
    */
1025 1023
   #define  TMC2130_ADV() {  }
1026 1024
 
1027
-#endif // ENABLED(HAVE_TMC2130)
1025
+#endif // HAVE_TMC2130
1028 1026
 
1029 1027
 // @section L6470
1030 1028
 

+ 9
- 11
Marlin/example_configurations/gCreate_gMax1.5+/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1031,7 +1029,7 @@
1031 1029
    */
1032 1030
   #define  TMC2130_ADV() {  }
1033 1031
 
1034
-#endif // ENABLED(HAVE_TMC2130)
1032
+#endif // HAVE_TMC2130
1035 1033
 
1036 1034
 // @section L6470
1037 1035
 

+ 9
- 11
Marlin/example_configurations/makibox/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1022,7 +1020,7 @@
1022 1020
    */
1023 1021
   #define  TMC2130_ADV() {  }
1024 1022
 
1025
-#endif // ENABLED(HAVE_TMC2130)
1023
+#endif // HAVE_TMC2130
1026 1024
 
1027 1025
 // @section L6470
1028 1026
 

+ 9
- 11
Marlin/example_configurations/wt150/Configuration_adv.h Parādīt failu

@@ -223,16 +223,14 @@
223 223
 /**
224 224
  * M355 Case Light on-off / brightness
225 225
  */
226
-//#define CASE_LIGHT_ENABLE 
227
-#if ENABLED(CASE_LIGHT_ENABLE) 
228
-  #define CASE_LIGHT_PIN 4          // can be defined here or in the pins_XXX.h file for your board 
229
-                                    //  pins_XXX.h file overrides this one 
230
-  #define INVERT_CASE_LIGHT false             // set to true if case light is ON when pin is at 0 
231
-  #define CASE_LIGHT_DEFAULT_ON true          // set default power up state to on or off
232
-  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // set power up brightness 0-255 ( only used if on PWM
233
-                                              // and if CASE_LIGHT_DEFAULT is set to on
234
-  //#define MENU_ITEM_CASE_LIGHT              // Uncomment to have a Case Light entry in main menu 
235
-#endif 
226
+//#define CASE_LIGHT_ENABLE
227
+#if ENABLED(CASE_LIGHT_ENABLE)
228
+  //#define CASE_LIGHT_PIN 4                  // Override the default pin if needed
229
+  #define INVERT_CASE_LIGHT false             // Set true if Case Light is ON when pin is LOW
230
+  #define CASE_LIGHT_DEFAULT_ON true          // Set default power-up state on
231
+  #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105   // Set default power-up brightness (0-255, requires PWM pin)
232
+  //#define MENU_ITEM_CASE_LIGHT              // Add a Case Light option to the LCD main menu
233
+#endif
236 234
 
237 235
 //===========================================================================
238 236
 //============================ Mechanical Settings ==========================
@@ -1025,7 +1023,7 @@
1025 1023
    */
1026 1024
   #define  TMC2130_ADV() {  }
1027 1025
 
1028
-#endif // ENABLED(HAVE_TMC2130)
1026
+#endif // HAVE_TMC2130
1029 1027
 
1030 1028
 // @section L6470
1031 1029
 

+ 1
- 1
Marlin/gcode.cpp Parādīt failu

@@ -183,7 +183,7 @@ void GCodeParser::parse(char *p) {
183 183
     #endif
184 184
 
185 185
     if (PARAM_TEST) {
186
-    
186
+
187 187
       while (*p == ' ') p++;                    // skip spaces vetween parameters & values
188 188
       const bool has_num = DECIMAL_SIGNED(*p);  // The parameter has a number [-+0-9.]
189 189
 

Notiek ielāde…
Atcelt
Saglabāt