Переглянути джерело

Merge patches from bugfix-2.0.x

Scott Lahteine 5 роки тому
джерело
коміт
efc19260a7
100 змінених файлів з 3377 додано та 3004 видалено
  1. 2
    3
      Marlin/Configuration.h
  2. 13
    6
      Marlin/Configuration_adv.h
  3. 2
    0
      Marlin/Makefile
  4. 2
    3
      Marlin/src/HAL/DUE/HAL.h
  5. 5
    15
      Marlin/src/HAL/DUE/MarlinSerial.cpp
  6. 2
    6
      Marlin/src/HAL/DUE/MarlinSerial.h
  7. 8
    4
      Marlin/src/HAL/DUE/MarlinSerialUSB.cpp
  8. 9
    3
      Marlin/src/HAL/DUE/MarlinSerialUSB.h
  9. 1
    3
      Marlin/src/HAL/LPC1768/HAL.cpp
  10. 1
    1
      Marlin/src/HAL/LPC1768/HAL.h
  11. 1
    1
      Marlin/src/HAL/STM32/HAL.cpp
  12. 1
    1
      Marlin/src/HAL/STM32/HAL.h
  13. 1
    1
      Marlin/src/HAL/STM32F1/HAL.cpp
  14. 2
    1
      Marlin/src/HAL/STM32F1/HAL.h
  15. 5
    5
      Marlin/src/MarlinCore.cpp
  16. 1
    0
      Marlin/src/core/boards.h
  17. 4
    0
      Marlin/src/core/macros.h
  18. 1
    1
      Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp
  19. 53
    33
      Marlin/src/feature/controllerfan.cpp
  20. 53
    1
      Marlin/src/feature/controllerfan.h
  21. 2
    2
      Marlin/src/feature/power.cpp
  22. 1
    1
      Marlin/src/gcode/config/M220.cpp
  23. 2
    0
      Marlin/src/gcode/config/M43.cpp
  24. 20
    5
      Marlin/src/gcode/control/M42.cpp
  25. 1
    1
      Marlin/src/gcode/feature/advance/M900.cpp
  26. 81
    0
      Marlin/src/gcode/feature/controllerfan/M710.cpp
  27. 4
    0
      Marlin/src/gcode/gcode.cpp
  28. 4
    0
      Marlin/src/gcode/gcode.h
  29. 4
    0
      Marlin/src/inc/Conditionals_LCD.h
  30. 2
    6
      Marlin/src/inc/MarlinConfigPre.h
  31. 10
    6
      Marlin/src/inc/SanityCheck.h
  32. 1
    1
      Marlin/src/inc/Version.h
  33. 1
    1
      Marlin/src/lcd/dogm/u8g_dev_uc1701_mini12864_HAL.cpp
  34. 5
    5
      Marlin/src/lcd/extui/lib/dgus/DGUSDisplay.cpp
  35. 9
    1
      Marlin/src/lcd/extui/lib/dgus/hiprecy/DGUSDisplayDef.cpp
  36. 1
    0
      Marlin/src/lcd/extui/lib/dgus/hiprecy/DGUSDisplayDef.h
  37. 5
    0
      Marlin/src/lcd/language/language_de.h
  38. 5
    0
      Marlin/src/lcd/language/language_en.h
  39. 0
    1
      Marlin/src/lcd/language/language_tr.h
  40. 2
    2
      Marlin/src/lcd/menu/menu.cpp
  41. 13
    9
      Marlin/src/lcd/menu/menu.h
  42. 7
    7
      Marlin/src/lcd/menu/menu_advanced.cpp
  43. 29
    4
      Marlin/src/lcd/menu/menu_configuration.cpp
  44. 1
    1
      Marlin/src/lcd/menu/menu_delta_calibrate.cpp
  45. 1
    1
      Marlin/src/lcd/menu/menu_mixer.cpp
  46. 4
    4
      Marlin/src/lcd/menu/menu_tune.cpp
  47. 1
    1
      Marlin/src/lcd/ultralcd.cpp
  48. 19
    6
      Marlin/src/libs/numtostr.cpp
  49. 6
    3
      Marlin/src/libs/numtostr.h
  50. 47
    0
      Marlin/src/module/configuration_store.cpp
  51. 12
    2
      Marlin/src/module/motion.cpp
  52. 69
    0
      Marlin/src/module/thermistor/thermistor_202.h
  53. 3
    0
      Marlin/src/module/thermistor/thermistors.h
  54. 28
    28
      Marlin/src/pins/esp32/pins_E4D.h
  55. 28
    28
      Marlin/src/pins/esp32/pins_ESP32.h
  56. 34
    34
      Marlin/src/pins/esp32/pins_MRR_ESPA.h
  57. 66
    66
      Marlin/src/pins/esp32/pins_MRR_ESPE.h
  58. 229
    229
      Marlin/src/pins/linux/pins_RAMPS_LINUX.h
  59. 55
    55
      Marlin/src/pins/lpc1768/pins_AZSMZ_MINI.h
  60. 45
    45
      Marlin/src/pins/lpc1768/pins_BIQU_B300_V1.0.h
  61. 38
    43
      Marlin/src/pins/lpc1768/pins_BIQU_BQ111_A4.h
  62. 68
    69
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_1.h
  63. 123
    123
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h
  64. 104
    104
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h
  65. 22
    22
      Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h
  66. 66
    66
      Marlin/src/pins/lpc1768/pins_GMARSH_X6_REV1.h
  67. 118
    118
      Marlin/src/pins/lpc1768/pins_MKS_SBASE.h
  68. 122
    122
      Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h
  69. 160
    160
      Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h
  70. 45
    46
      Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h
  71. 45
    46
      Marlin/src/pins/lpc1769/pins_AZTEEG_X5_GT.h
  72. 73
    73
      Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h
  73. 58
    58
      Marlin/src/pins/lpc1769/pins_COHESION3D_MINI.h
  74. 103
    103
      Marlin/src/pins/lpc1769/pins_COHESION3D_REMIX.h
  75. 11
    11
      Marlin/src/pins/lpc1769/pins_MKS_SGEN.h
  76. 41
    41
      Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h
  77. 57
    57
      Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h
  78. 24
    24
      Marlin/src/pins/mega/pins_CHEAPTRONIC.h
  79. 56
    56
      Marlin/src/pins/mega/pins_CHEAPTRONICv2.h
  80. 66
    66
      Marlin/src/pins/mega/pins_CNCONTROLS_11.h
  81. 69
    69
      Marlin/src/pins/mega/pins_CNCONTROLS_12.h
  82. 39
    39
      Marlin/src/pins/mega/pins_CNCONTROLS_15.h
  83. 34
    34
      Marlin/src/pins/mega/pins_EINSTART-S.h
  84. 52
    52
      Marlin/src/pins/mega/pins_ELEFU_3.h
  85. 60
    60
      Marlin/src/pins/mega/pins_GT2560_REV_A.h
  86. 57
    57
      Marlin/src/pins/mega/pins_GT2560_V3.h
  87. 7
    7
      Marlin/src/pins/mega/pins_GT2560_V3_A20.h
  88. 4
    4
      Marlin/src/pins/mega/pins_GT2560_V3_MC2.h
  89. 63
    63
      Marlin/src/pins/mega/pins_HJC2560C_REV2.h
  90. 33
    33
      Marlin/src/pins/mega/pins_LEAPFROG.h
  91. 36
    36
      Marlin/src/pins/mega/pins_LEAPFROG_XEED2015.h
  92. 55
    55
      Marlin/src/pins/mega/pins_MEGACONTROLLER.h
  93. 48
    48
      Marlin/src/pins/mega/pins_MEGATRONICS.h
  94. 57
    57
      Marlin/src/pins/mega/pins_MEGATRONICS_2.h
  95. 82
    82
      Marlin/src/pins/mega/pins_MEGATRONICS_3.h
  96. 103
    103
      Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h
  97. 54
    54
      Marlin/src/pins/mega/pins_MINITRONICS.h
  98. 50
    50
      Marlin/src/pins/mega/pins_OVERLORD.h
  99. 50
    50
      Marlin/src/pins/mega/pins_PICA.h
  100. 0
    0
      Marlin/src/pins/mega/pins_PICAOLD.h

+ 2
- 3
Marlin/Configuration.h Переглянути файл

@@ -99,6 +99,7 @@
99 99
 /**
100 100
  * Select the serial port on the board to use for communication with the host.
101 101
  * This allows the connection of wireless adapters (for instance) to non-default port pins.
102
+ * Serial port -1 is the USB emulated serial port, if available.
102 103
  * Note: The first serial port (-1 or 0) will always be used by the Arduino bootloader.
103 104
  *
104 105
  * :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
@@ -107,9 +108,6 @@
107 108
 
108 109
 /**
109 110
  * Select a secondary serial port on the board to use for communication with the host.
110
- * This allows the connection of wireless adapters (for instance) to non-default port pins.
111
- * Serial port -1 is the USB emulated serial port, if available.
112
- *
113 111
  * :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
114 112
  */
115 113
 //#define SERIAL_PORT_2 -1
@@ -363,6 +361,7 @@
363 361
  *   331 : (3.3V scaled thermistor 1 table for MEGA)
364 362
  *   332 : (3.3V scaled thermistor 1 table for DUE)
365 363
  *     2 : 200k thermistor - ATC Semitec 204GT-2 (4.7k pullup)
364
+ *   202 : 200k thermistor - Copymaster 3D
366 365
  *     3 : Mendel-parts thermistor (4.7k pullup)
367 366
  *     4 : 10k thermistor !! do not use it for a hotend. It gives bad resolution at high temp. !!
368 367
  *     5 : 100K thermistor - ATC Semitec 104GT-2/104NT-4-R025H42G (Used in ParCan & J-Head) (4.7k pullup)

+ 13
- 6
Marlin/Configuration_adv.h Переглянути файл

@@ -338,15 +338,22 @@
338 338
  * Controller Fan
339 339
  * To cool down the stepper drivers and MOSFETs.
340 340
  *
341
- * The fan will turn on automatically whenever any stepper is enabled
342
- * and turn off after a set period after all steppers are turned off.
341
+ * The fan turns on automatically whenever any driver is enabled and turns
342
+ * off (or reduces to idle speed) shortly after drivers are turned off.
343
+ *
343 344
  */
344 345
 //#define USE_CONTROLLER_FAN
345 346
 #if ENABLED(USE_CONTROLLER_FAN)
346
-  //#define CONTROLLER_FAN_PIN -1           // Set a custom pin for the controller fan
347
-  #define CONTROLLERFAN_SECS 60             // Duration in seconds for the fan to run after all motors are disabled
348
-  #define CONTROLLERFAN_SPEED 255           // 255 == full speed
349
-  //#define CONTROLLERFAN_SPEED_Z_ONLY 127  // Reduce noise on machines that keep Z enabled
347
+  //#define CONTROLLER_FAN_PIN -1        // Set a custom pin for the controller fan
348
+  //#define CONTROLLER_FAN_USE_Z_ONLY    // With this option only the Z axis is considered
349
+  #define CONTROLLERFAN_SPEED_MIN      0 // (0-255) Minimum speed. (If set below this value the fan is turned off.)
350
+  #define CONTROLLERFAN_SPEED_ACTIVE 255 // (0-255) Active speed, used when any motor is enabled
351
+  #define CONTROLLERFAN_SPEED_IDLE     0 // (0-255) Idle speed, used when motors are disabled
352
+  #define CONTROLLERFAN_IDLE_TIME     60 // (seconds) Extra time to keep the fan running after disabling motors
353
+  //#define CONTROLLER_FAN_EDITABLE      // Enable M710 configurable settings
354
+  #if ENABLED(CONTROLLER_FAN_EDITABLE)
355
+    #define CONTROLLER_FAN_MENU          // Enable the Controller Fan submenu
356
+  #endif
350 357
 #endif
351 358
 
352 359
 // When first starting the main fan, run it at full speed for the

+ 2
- 0
Marlin/Makefile Переглянути файл

@@ -267,6 +267,8 @@ else ifeq ($(HARDWARE_MOTHERBOARD),1147)
267 267
 else ifeq ($(HARDWARE_MOTHERBOARD),1148)
268 268
 # MKS GEN L V2
269 269
 else ifeq ($(HARDWARE_MOTHERBOARD),1149)
270
+# Copymaster 3D
271
+else ifeq ($(HARDWARE_MOTHERBOARD),1150)
270 272
 
271 273
 #
272 274
 # RAMBo and derivatives

+ 2
- 3
Marlin/src/HAL/DUE/HAL.h Переглянути файл

@@ -39,7 +39,7 @@
39 39
 #include <stdint.h>
40 40
 
41 41
 // Define MYSERIAL0/1 before MarlinSerial includes!
42
-#if SERIAL_PORT == -1
42
+#if SERIAL_PORT == -1 || ENABLED(EMERGENCY_PARSER)
43 43
   #define MYSERIAL0 customizedSerial1
44 44
 #elif SERIAL_PORT == 0
45 45
   #define MYSERIAL0 Serial
@@ -56,7 +56,7 @@
56 56
 #ifdef SERIAL_PORT_2
57 57
   #if SERIAL_PORT_2 == SERIAL_PORT
58 58
     #error "SERIAL_PORT_2 must be different from SERIAL_PORT. Please update your configuration."
59
-  #elif SERIAL_PORT_2 == -1
59
+  #elif SERIAL_PORT_2 == -1 || ENABLED(EMERGENCY_PARSER)
60 60
     #define MYSERIAL1 customizedSerial2
61 61
   #elif SERIAL_PORT_2 == 0
62 62
     #define MYSERIAL1 Serial
@@ -94,7 +94,6 @@
94 94
   #endif
95 95
 #endif
96 96
 
97
-
98 97
 #include "MarlinSerial.h"
99 98
 #include "MarlinSerialUSB.h"
100 99
 

+ 5
- 15
Marlin/src/HAL/DUE/MarlinSerial.cpp Переглянути файл

@@ -629,23 +629,13 @@ void MarlinSerial<Cfg>::printFloat(double number, uint8_t digits) {
629 629
 
630 630
 // If not using the USB port as serial port
631 631
 #if SERIAL_PORT >= 0
632
-
633
-  // Preinstantiate
634
-  template class MarlinSerial<MarlinSerialCfg<SERIAL_PORT>>;
635
-
636
-  // Instantiate
637
-  MarlinSerial<MarlinSerialCfg<SERIAL_PORT>> customizedSerial1;
638
-
632
+  template class MarlinSerial<MarlinSerialCfg<SERIAL_PORT>>;      // Define
633
+  MarlinSerial<MarlinSerialCfg<SERIAL_PORT>> customizedSerial1;   // Instantiate
639 634
 #endif
640 635
 
641
-#ifdef SERIAL_PORT_2
642
-
643
-  // Preinstantiate
644
-  template class MarlinSerial<MarlinSerialCfg<SERIAL_PORT_2>>;
645
-
646
-  // Instantiate
647
-  MarlinSerial<MarlinSerialCfg<SERIAL_PORT_2>> customizedSerial2;
648
-
636
+#if defined(SERIAL_PORT_2) && SERIAL_PORT_2 >= 0
637
+  template class MarlinSerial<MarlinSerialCfg<SERIAL_PORT_2>>;    // Define
638
+  MarlinSerial<MarlinSerialCfg<SERIAL_PORT_2>> customizedSerial2; // Instantiate
649 639
 #endif
650 640
 
651 641
 #endif // ARDUINO_ARCH_SAM

+ 2
- 6
Marlin/src/HAL/DUE/MarlinSerial.h Переглянути файл

@@ -172,13 +172,9 @@ struct MarlinSerialCfg {
172 172
 };
173 173
 
174 174
 #if SERIAL_PORT >= 0
175
-
176 175
   extern MarlinSerial<MarlinSerialCfg<SERIAL_PORT>> customizedSerial1;
176
+#endif
177 177
 
178
-#endif // SERIAL_PORT >= 0
179
-
180
-#ifdef SERIAL_PORT_2
181
-
178
+#if defined(SERIAL_PORT_2) && SERIAL_PORT_2 >= 0
182 179
   extern MarlinSerial<MarlinSerialCfg<SERIAL_PORT_2>> customizedSerial2;
183
-
184 180
 #endif

+ 8
- 4
Marlin/src/HAL/DUE/MarlinSerialUSB.cpp Переглянути файл

@@ -29,7 +29,7 @@
29 29
 
30 30
 #include "../../inc/MarlinConfig.h"
31 31
 
32
-#if SERIAL_PORT == -1
32
+#if HAS_USB_SERIAL
33 33
 
34 34
 #include "MarlinSerialUSB.h"
35 35
 
@@ -283,8 +283,12 @@ void MarlinSerialUSB::printFloat(double number, uint8_t digits) {
283 283
 }
284 284
 
285 285
 // Preinstantiate
286
-MarlinSerialUSB customizedSerial1;
287
-
288
-#endif // SERIAL_PORT == -1
286
+#if SERIAL_PORT == -1
287
+  MarlinSerialUSB customizedSerial1;
288
+#endif
289
+#if SERIAL_PORT_2 == -1
290
+  MarlinSerialUSB customizedSerial2;
291
+#endif
289 292
 
293
+#endif // HAS_USB_SERIAL
290 294
 #endif // ARDUINO_ARCH_SAM

+ 9
- 3
Marlin/src/HAL/DUE/MarlinSerialUSB.h Переглянути файл

@@ -28,7 +28,7 @@
28 28
 
29 29
 #include "../../inc/MarlinConfig.h"
30 30
 
31
-#if SERIAL_PORT == -1
31
+#if HAS_USB_SERIAL
32 32
 
33 33
 #include <WString.h>
34 34
 
@@ -88,6 +88,12 @@ private:
88 88
   static void printFloat(double, uint8_t);
89 89
 };
90 90
 
91
-extern MarlinSerialUSB customizedSerial1;
91
+#if SERIAL_PORT == -1
92
+  extern MarlinSerialUSB customizedSerial1;
93
+#endif
94
+
95
+#if SERIAL_PORT_2 == -1
96
+  extern MarlinSerialUSB customizedSerial2;
97
+#endif
92 98
 
93
-#endif // SERIAL_PORT == -1
99
+#endif // HAS_USB_SERIAL

+ 1
- 3
Marlin/src/HAL/LPC1768/HAL.cpp Переглянути файл

@@ -67,9 +67,7 @@ int16_t PARSED_PIN_INDEX(const char code, const int16_t dval) {
67 67
   return ind > -1 ? ind : dval;
68 68
 }
69 69
 
70
-void flashFirmware(int16_t value) {
71
-  NVIC_SystemReset();
72
-}
70
+void flashFirmware(const int16_t) { NVIC_SystemReset(); }
73 71
 
74 72
 void HAL_clear_reset_source(void) {
75 73
   #if ENABLED(USE_WATCHDOG)

+ 1
- 1
Marlin/src/HAL/LPC1768/HAL.h Переглянути файл

@@ -195,7 +195,7 @@ int16_t PARSED_PIN_INDEX(const char code, const int16_t dval);
195 195
 void HAL_idletask();
196 196
 
197 197
 #define PLATFORM_M997_SUPPORT
198
-void flashFirmware(int16_t value);
198
+void flashFirmware(const int16_t);
199 199
 
200 200
 /**
201 201
  * set_pwm_frequency

+ 1
- 1
Marlin/src/HAL/STM32/HAL.cpp Переглянути файл

@@ -133,6 +133,6 @@ void HAL_adc_start_conversion(const uint8_t adc_pin) { HAL_adc_result = analogRe
133 133
 
134 134
 uint16_t HAL_adc_get_result() { return HAL_adc_result; }
135 135
 
136
-void flashFirmware(int16_t) { NVIC_SystemReset(); }
136
+void flashFirmware(const int16_t) { NVIC_SystemReset(); }
137 137
 
138 138
 #endif // ARDUINO_ARCH_STM32 && !STM32GENERIC

+ 1
- 1
Marlin/src/HAL/STM32/HAL.h Переглянути файл

@@ -223,4 +223,4 @@ uint16_t HAL_adc_get_result();
223 223
 #define PARSED_PIN_INDEX(code, dval) parser.intval(code, dval)
224 224
 
225 225
 #define PLATFORM_M997_SUPPORT
226
-void flashFirmware(int16_t value);
226
+void flashFirmware(const int16_t);

+ 1
- 1
Marlin/src/HAL/STM32F1/HAL.cpp Переглянути файл

@@ -388,6 +388,6 @@ void analogWrite(pin_t pin, int pwm_val8) {
388 388
     analogWrite(uint8_t(pin), pwm_val8);
389 389
 }
390 390
 
391
-void flashFirmware(int16_t value) { nvic_sys_reset(); }
391
+void flashFirmware(const int16_t) { nvic_sys_reset(); }
392 392
 
393 393
 #endif // __STM32F1__

+ 2
- 1
Marlin/src/HAL/STM32F1/HAL.h Переглянути файл

@@ -160,6 +160,7 @@ void HAL_idletask();
160 160
 
161 161
 #ifndef digitalPinHasPWM
162 162
   #define digitalPinHasPWM(P) (PIN_MAP[P].timer_device != nullptr)
163
+  #define NO_COMPILE_TIME_PWM
163 164
 #endif
164 165
 
165 166
 #define CRITICAL_SECTION_START()  uint32_t primask = __get_primask(); (void)__iCliRetVal()
@@ -287,4 +288,4 @@ void analogWrite(pin_t pin, int pwm_val8); // PWM only! mul by 257 in maple!?
287 288
 #define JTAGSWD_DISABLE() afio_cfg_debug_ports(AFIO_DEBUG_NONE)
288 289
 
289 290
 #define PLATFORM_M997_SUPPORT
290
-void flashFirmware(int16_t value);
291
+void flashFirmware(const int16_t);

+ 5
- 5
Marlin/src/MarlinCore.cpp Переглянути файл

@@ -567,7 +567,7 @@ inline void manage_inactivity(const bool ignore_stepper_queue=false) {
567 567
   #endif
568 568
 
569 569
   #if ENABLED(USE_CONTROLLER_FAN)
570
-    controllerfan_update(); // Check if fan should be turned on to cool stepper drivers down
570
+    controllerFan.update(); // Check if fan should be turned on to cool stepper drivers down
571 571
   #endif
572 572
 
573 573
   #if ENABLED(AUTO_POWER_CONTROL)
@@ -984,6 +984,10 @@ void setup() {
984 984
     SETUP_RUN(leds.setup());
985 985
   #endif
986 986
 
987
+  #if ENABLED(USE_CONTROLLER_FAN)     // Set up fan controller to initialize also the default configurations.
988
+    SETUP_RUN(controllerFan.setup());
989
+  #endif
990
+
987 991
   SETUP_RUN(ui.init());
988 992
   SETUP_RUN(ui.reset_status());       // Load welcome message early. (Retained if no errors exist.)
989 993
 
@@ -1047,10 +1051,6 @@ void setup() {
1047 1051
     SETUP_RUN(endstops.enable_z_probe(false));
1048 1052
   #endif
1049 1053
 
1050
-  #if ENABLED(USE_CONTROLLER_FAN)
1051
-    SET_OUTPUT(CONTROLLER_FAN_PIN);
1052
-  #endif
1053
-
1054 1054
   #if HAS_STEPPER_RESET
1055 1055
     SETUP_RUN(enableStepperDrivers());
1056 1056
   #endif

+ 1
- 0
Marlin/src/core/boards.h Переглянути файл

@@ -103,6 +103,7 @@
103 103
 #define BOARD_HJC2560C_REV2           1147  // ADIMLab Gantry v2
104 104
 #define BOARD_TANGO                   1148  // BIQU Tango V1
105 105
 #define BOARD_MKS_GEN_L_V2            1149  // MKS GEN L V2
106
+#define BOARD_COPYMASTER_3D           1150  // Copymaster 3D
106 107
 
107 108
 //
108 109
 // RAMBo and derivatives

+ 4
- 0
Marlin/src/core/macros.h Переглянути файл

@@ -21,6 +21,10 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
+#if !defined(__has_include)
25
+  #define __has_include(...) 1
26
+#endif
27
+
24 28
 #define ABCE 4
25 29
 #define XYZE 4
26 30
 #define ABC  3

+ 1
- 1
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp Переглянути файл

@@ -1611,7 +1611,7 @@
1611 1611
          * numbers for those locations should be 0.
1612 1612
          */
1613 1613
         #ifdef VALIDATE_MESH_TILT
1614
-          auto d_from = []() { DEBUG_ECHOPGM("D from "); };
1614
+          auto d_from = []{ DEBUG_ECHOPGM("D from "); };
1615 1615
           auto normed = [&](const xy_pos_t &pos, const float &zadd) {
1616 1616
             return normal.x * pos.x + normal.y * pos.y + zadd;
1617 1617
           };

+ 53
- 33
Marlin/src/feature/controllerfan.cpp Переглянути файл

@@ -24,60 +24,80 @@
24 24
 
25 25
 #if ENABLED(USE_CONTROLLER_FAN)
26 26
 
27
+#include "controllerfan.h"
27 28
 #include "../module/stepper/indirection.h"
28 29
 #include "../module/temperature.h"
29 30
 
30
-uint8_t controllerfan_speed;
31
+ControllerFan controllerFan;
31 32
 
32
-void controllerfan_update() {
33
-  static millis_t lastMotorOn = 0, // Last time a motor was turned on
33
+uint8_t ControllerFan::speed;
34
+
35
+#if ENABLED(CONTROLLER_FAN_EDITABLE)
36
+  controllerFan_settings_t ControllerFan::settings; // {0}
37
+#endif
38
+
39
+void ControllerFan::setup() {
40
+  SET_OUTPUT(CONTROLLER_FAN_PIN);
41
+  init();
42
+}
43
+
44
+void ControllerFan::set_fan_speed(const uint8_t s) {
45
+  speed = s < (CONTROLLERFAN_SPEED_MIN) ? 0 : s; // Fan OFF below minimum
46
+}
47
+
48
+void ControllerFan::update() {
49
+  static millis_t lastMotorOn = 0,    // Last time a motor was turned on
34 50
                   nextMotorCheck = 0; // Last time the state was checked
35 51
   const millis_t ms = millis();
36 52
   if (ELAPSED(ms, nextMotorCheck)) {
37 53
     nextMotorCheck = ms + 2500UL; // Not a time critical function, so only check every 2.5s
38 54
 
39
-    const bool xory = X_ENABLE_READ() == bool(X_ENABLE_ON) || Y_ENABLE_READ() == bool(Y_ENABLE_ON);
55
+    #define MOTOR_IS_ON(A,B) (A##_ENABLE_READ() == bool(B##_ENABLE_ON))
56
+    #define _OR_ENABLED_E(N) || MOTOR_IS_ON(E##N,E)
40 57
 
41
-    // If any of the drivers or the bed are enabled...
42
-    if (xory || Z_ENABLE_READ() == bool(Z_ENABLE_ON)
43
-      #if HAS_HEATED_BED
44
-        || thermalManager.temp_bed.soft_pwm_amount > 0
45
-      #endif
46
-      #if HAS_X2_ENABLE
47
-        || X2_ENABLE_READ() == bool(X_ENABLE_ON)
48
-      #endif
49
-      #if HAS_Y2_ENABLE
50
-        || Y2_ENABLE_READ() == bool(Y_ENABLE_ON)
51
-      #endif
58
+    const bool motor_on = MOTOR_IS_ON(Z,Z)
52 59
       #if HAS_Z2_ENABLE
53
-        || Z2_ENABLE_READ() == bool(Z_ENABLE_ON)
60
+        || MOTOR_IS_ON(Z2,Z)
54 61
       #endif
55 62
       #if HAS_Z3_ENABLE
56
-        || Z3_ENABLE_READ() == bool(Z_ENABLE_ON)
63
+        || MOTOR_IS_ON(Z3,Z)
57 64
       #endif
58 65
       #if HAS_Z4_ENABLE
59
-        || Z4_ENABLE_READ() == bool(Z_ENABLE_ON)
60
-      #endif
61
-      #if E_STEPPERS
62
-        #define _OR_ENABLED_E(N) || E##N##_ENABLE_READ() == bool(E_ENABLE_ON)
63
-        REPEAT(E_STEPPERS, _OR_ENABLED_E)
66
+        || MOTOR_IS_ON(Z4,Z)
64 67
       #endif
65
-    ) {
66
-      lastMotorOn = ms; //... set time to NOW so the fan will turn on
67
-    }
68
+      || (DISABLED(CONTROLLER_FAN_USE_Z_ONLY) && (
69
+          MOTOR_IS_ON(X,X) || MOTOR_IS_ON(Y,Y)
70
+          #if HAS_X2_ENABLE
71
+            || MOTOR_IS_ON(X2,X)
72
+          #endif
73
+          #if HAS_Y2_ENABLE
74
+            || MOTOR_IS_ON(Y2,Y)
75
+          #endif
76
+          #if E_STEPPERS
77
+            REPEAT(E_STEPPERS, _OR_ENABLED_E)
78
+          #endif
79
+        )
80
+      )
81
+    ;
68 82
 
69
-    // Fan off if no steppers have been enabled for CONTROLLERFAN_SECS seconds
70
-    controllerfan_speed = (!lastMotorOn || ELAPSED(ms, lastMotorOn + (CONTROLLERFAN_SECS) * 1000UL)) ? 0 : (
71
-      #ifdef CONTROLLERFAN_SPEED_Z_ONLY
72
-        xory ? CONTROLLERFAN_SPEED : CONTROLLERFAN_SPEED_Z_ONLY
73
-      #else
74
-        CONTROLLERFAN_SPEED
83
+    // If any of the drivers or the heated bed are enabled...
84
+    if (motor_on
85
+      #if HAS_HEATED_BED
86
+        || thermalManager.temp_bed.soft_pwm_amount > 0
75 87
       #endif
88
+    ) lastMotorOn = ms; //... set time to NOW so the fan will turn on
89
+
90
+    // Fan Settings. Set fan > 0:
91
+    //  - If AutoMode is on and steppers have been enabled for CONTROLLERFAN_IDLE_TIME seconds.
92
+    //  - If System is on idle and idle fan speed settings is activated.
93
+    set_fan_speed(
94
+      settings.auto_mode && lastMotorOn && PENDING(ms, lastMotorOn + settings.duration * 1000UL)
95
+      ? settings.active_speed : settings.idle_speed
76 96
     );
77 97
 
78 98
     // Allow digital or PWM fan output (see M42 handling)
79
-    WRITE(CONTROLLER_FAN_PIN, controllerfan_speed);
80
-    analogWrite(pin_t(CONTROLLER_FAN_PIN), controllerfan_speed);
99
+    WRITE(CONTROLLER_FAN_PIN, speed);
100
+    analogWrite(pin_t(CONTROLLER_FAN_PIN), speed);
81 101
   }
82 102
 }
83 103
 

+ 53
- 1
Marlin/src/feature/controllerfan.h Переглянути файл

@@ -21,4 +21,56 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
-void controllerfan_update();
24
+#include "../inc/MarlinConfigPre.h"
25
+
26
+typedef struct {
27
+  uint8_t   active_speed,    // 0-255 (fullspeed); Speed with enabled stepper motors
28
+            idle_speed;      // 0-255 (fullspeed); Speed after idle period with all motors are disabled
29
+  uint16_t  duration;        // Duration in seconds for the fan to run after all motors are disabled
30
+  bool      auto_mode;       // Default true
31
+} controllerFan_settings_t;
32
+
33
+#ifndef CONTROLLERFAN_SPEED_ACTIVE
34
+  #define CONTROLLERFAN_SPEED_ACTIVE 255
35
+#endif
36
+#ifndef CONTROLLERFAN_SPEED_IDLE
37
+  #define CONTROLLERFAN_SPEED_IDLE     0
38
+#endif
39
+#ifndef CONTROLLERFAN_IDLE_TIME
40
+  #define CONTROLLERFAN_IDLE_TIME     60
41
+#endif
42
+
43
+static constexpr controllerFan_settings_t controllerFan_defaults = {
44
+  CONTROLLERFAN_SPEED_ACTIVE,
45
+  CONTROLLERFAN_SPEED_IDLE,
46
+  CONTROLLERFAN_IDLE_TIME,
47
+  true
48
+};
49
+
50
+#if ENABLED(USE_CONTROLLER_FAN)
51
+
52
+class ControllerFan {
53
+  private:
54
+    static uint8_t speed;
55
+    static void set_fan_speed(const uint8_t s);
56
+
57
+  public:
58
+    #if ENABLED(CONTROLLER_FAN_EDITABLE)
59
+      static controllerFan_settings_t settings;
60
+    #else
61
+      static const controllerFan_settings_t constexpr &settings = controllerFan_defaults;
62
+    #endif
63
+    static inline bool state() { return speed > 0; }
64
+    static inline void init() { reset(); }
65
+    static inline void reset() {
66
+      #if ENABLED(CONTROLLER_FAN_EDITABLE)
67
+        settings = controllerFan_defaults;
68
+      #endif
69
+    }
70
+    static void setup();
71
+    static void update();
72
+};
73
+
74
+extern ControllerFan controllerFan;
75
+
76
+#endif

+ 2
- 2
Marlin/src/feature/power.cpp Переглянути файл

@@ -46,8 +46,8 @@ bool Power::is_power_needed() {
46 46
     HOTEND_LOOP() if (thermalManager.autofan_speed[e]) return true;
47 47
   #endif
48 48
 
49
-  #if ENABLED(AUTO_POWER_CONTROLLERFAN, USE_CONTROLLER_FAN) && HAS_CONTROLLER_FAN
50
-    if (controllerfan_speed) return true;
49
+  #if BOTH(USE_CONTROLLER_FAN, AUTO_POWER_CONTROLLERFAN)
50
+    if (controllerFan.state()) return true;
51 51
   #endif
52 52
 
53 53
   #if ENABLED(AUTO_POWER_CHAMBER_FAN)

+ 1
- 1
Marlin/src/gcode/config/M220.cpp Переглянути файл

@@ -30,7 +30,7 @@
30 30
  *   S<percent> : Set the feed rate percentage factor
31 31
  *
32 32
  * Report the current speed percentage factor if no parameter is specified
33
- * 
33
+ *
34 34
  * With PRUSA_MMU2...
35 35
  *   B : Flag to back up the current factor
36 36
  *   R : Flag to restore the last-saved factor

+ 2
- 0
Marlin/src/gcode/config/M43.cpp Переглянути файл

@@ -67,6 +67,7 @@ inline void toggle_pins() {
67 67
     else {
68 68
       watchdog_refresh();
69 69
       report_pin_state_extended(pin, ignore_protection, true, PSTR("Pulsing   "));
70
+      const bool prior_mode = GET_PINMODE(pin);
70 71
       #if AVR_AT90USB1286_FAMILY // Teensy IDEs don't know about these pins so must use FASTIO
71 72
         if (pin == TEENSY_E2) {
72 73
           SET_OUTPUT(TEENSY_E2);
@@ -95,6 +96,7 @@ inline void toggle_pins() {
95 96
           watchdog_refresh();
96 97
         }
97 98
       }
99
+      pinMode(pin, prior_mode);
98 100
     }
99 101
     SERIAL_EOL();
100 102
   }

+ 20
- 5
Marlin/src/gcode/control/M42.cpp Переглянути файл

@@ -37,16 +37,33 @@
37 37
  *
38 38
  *  S<byte> Pin status from 0 - 255
39 39
  *  I       Flag to ignore Marlin's pin protection
40
+ *
41
+ *  M<mode> Pin mode: 0=INPUT  1=OUTPUT  2=INPUT_PULLUP  3=INPUT_PULLDOWN
40 42
  */
41 43
 void GcodeSuite::M42() {
42
-  if (!parser.seenval('S')) return;
43
-  const byte pin_status = parser.value_byte();
44
-
45 44
   const int pin_index = PARSED_PIN_INDEX('P', GET_PIN_MAP_INDEX(LED_PIN));
46 45
   if (pin_index < 0) return;
47 46
 
48 47
   const pin_t pin = GET_PIN_MAP_PIN(pin_index);
49 48
 
49
+  if (!parser.boolval('I') && pin_is_protected(pin)) return protected_pin_err();
50
+
51
+  if (parser.seenval('M')) {
52
+    switch (parser.value_byte()) {
53
+      case 0: pinMode(pin, INPUT); break;
54
+      case 1: pinMode(pin, OUTPUT); break;
55
+      case 2: pinMode(pin, INPUT_PULLUP); break;
56
+      #ifdef INPUT_PULLDOWN
57
+        case 3: pinMode(pin, INPUT_PULLDOWN); break;
58
+      #endif
59
+      default: SERIAL_ECHOLNPGM("Invalid Pin Mode");
60
+    }
61
+    return;
62
+  }
63
+
64
+  if (!parser.seenval('S')) return;
65
+  const byte pin_status = parser.value_byte();
66
+
50 67
   #if FAN_COUNT > 0
51 68
     switch (pin) {
52 69
       #if HAS_FAN0
@@ -76,8 +93,6 @@ void GcodeSuite::M42() {
76 93
     }
77 94
   #endif
78 95
 
79
-  if (!parser.boolval('I') && pin_is_protected(pin)) return protected_pin_err();
80
-
81 96
   pinMode(pin, OUTPUT);
82 97
   extDigitalWrite(pin, pin_status);
83 98
   analogWrite(pin, pin_status);

+ 1
- 1
Marlin/src/gcode/feature/advance/M900.cpp Переглянути файл

@@ -42,7 +42,7 @@
42 42
  */
43 43
 void GcodeSuite::M900() {
44 44
 
45
-  auto echo_value_oor = [] (const char ltr, const bool ten=true) {
45
+  auto echo_value_oor = [](const char ltr, const bool ten=true) {
46 46
     SERIAL_CHAR('?'); SERIAL_CHAR(ltr);
47 47
     SERIAL_ECHOPGM(" value out of range");
48 48
     if (ten) SERIAL_ECHOPGM(" (0-10)");

+ 81
- 0
Marlin/src/gcode/feature/controllerfan/M710.cpp Переглянути файл

@@ -0,0 +1,81 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+
23
+#include "../../../inc/MarlinConfigPre.h"
24
+
25
+#if ENABLED(CONTROLLER_FAN_EDITABLE)
26
+
27
+#include "../../gcode.h"
28
+#include "../../../feature/controllerfan.h"
29
+
30
+void M710_report(const bool forReplay) {
31
+  if (!forReplay) { SERIAL_ECHOLNPGM("; Controller Fan"); SERIAL_ECHO_START(); }
32
+  SERIAL_ECHOLNPAIR("M710 "
33
+    "S", int(controllerFan.settings.active_speed),
34
+    "I", int(controllerFan.settings.idle_speed),
35
+    "A", int(controllerFan.settings.auto_mode),
36
+    "D", controllerFan.settings.duration,
37
+    " ; (", (int(controllerFan.settings.active_speed) * 100) / 255, "%"
38
+    " ", (int(controllerFan.settings.idle_speed) * 100) / 255, "%)"
39
+  );
40
+}
41
+
42
+/**
43
+ * M710: Set controller fan settings
44
+ *
45
+ *  R         : Reset to defaults
46
+ *  S[0-255]  : Fan speed when motors are active
47
+ *  I[0-255]  : Fan speed when motors are idle
48
+ *  A[0|1]    : Turn auto mode on or off
49
+ *  D         : Set auto mode idle duration
50
+ *
51
+ * Examples:
52
+ *   M710                   ; Report current Settings
53
+ *   M710 R                 ; Reset SIAD to defaults
54
+ *   M710 I64               ; Set controller fan Idle Speed to 25%
55
+ *   M710 S255              ; Set controller fan Active Speed to 100%
56
+ *   M710 S0                ; Set controller fan Active Speed to OFF
57
+ *   M710 I255 A0           ; Set controller fan Idle Speed to 100% with Auto Mode OFF
58
+ *   M710 I127 A1 S255 D160 ; Set controller fan idle speed 50%, AutoMode On, Fan speed 100%, duration to 160 Secs
59
+ */
60
+void GcodeSuite::M710() {
61
+
62
+  const bool seenR = parser.seen('R');
63
+  if (seenR) controllerFan.reset();
64
+
65
+  const bool seenS = parser.seenval('S');
66
+  if (seenS) controllerFan.settings.active_speed = parser.value_byte();
67
+
68
+  const bool seenI = parser.seenval('I');
69
+  if (seenI) controllerFan.settings.idle_speed = parser.value_byte();
70
+
71
+  const bool seenA = parser.seenval('A');
72
+  if (seenA) controllerFan.settings.auto_mode = parser.value_bool();
73
+
74
+  const bool seenD = parser.seenval('D');
75
+  if (seenD) controllerFan.settings.duration = parser.value_ushort();
76
+
77
+  if (!(seenR || seenS || seenI || seenA || seenD))
78
+    M710_report(false);
79
+}
80
+
81
+#endif // CONTROLLER_FAN_EDITABLE

+ 4
- 0
Marlin/src/gcode/gcode.cpp Переглянути файл

@@ -752,6 +752,10 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
752 752
         case 702: M702(); break;                                  // M702: Unload Filament
753 753
       #endif
754 754
 
755
+      #if ENABLED(CONTROLLER_FAN_EDITABLE)
756
+        case 710: M710(); break;                                  // M710: Set Controller Fan settings
757
+      #endif
758
+
755 759
       #if ENABLED(GCODE_MACROS)
756 760
         case 810: case 811: case 812: case 813: case 814:
757 761
         case 815: case 816: case 817: case 818: case 819:

+ 4
- 0
Marlin/src/gcode/gcode.h Переглянути файл

@@ -972,6 +972,10 @@ private:
972 972
     static void M7219();
973 973
   #endif
974 974
 
975
+  #if ENABLED(CONTROLLER_FAN_EDITABLE)
976
+    static void M710();
977
+  #endif
978
+
975 979
   static void T(const uint8_t tool_index);
976 980
 
977 981
 };

+ 4
- 0
Marlin/src/inc/Conditionals_LCD.h Переглянути файл

@@ -683,6 +683,10 @@
683 683
   #define SPI_SPEED SPI_FULL_SPEED
684 684
 #endif
685 685
 
686
+#if SERIAL_PORT == -1 || SERIAL_PORT_2 == -1
687
+  #define HAS_USB_SERIAL 1
688
+#endif
689
+
686 690
 /**
687 691
  * This setting is also used by M109 when trying to calculate
688 692
  * a ballpark safe margin to prevent wait-forever situation.

+ 2
- 6
Marlin/src/inc/MarlinConfigPre.h Переглянути файл

@@ -37,12 +37,8 @@
37 37
 #include "../../Configuration.h"
38 38
 
39 39
 #ifdef CUSTOM_VERSION_FILE
40
-  #if defined(__has_include)
41
-    #if __has_include(XSTR(../../CUSTOM_VERSION_FILE))
42
-      #include XSTR(../../CUSTOM_VERSION_FILE)
43
-    #endif
44
-  #else
45
-    #include XSTR(../../CUSTOM_VERSION_FILE)
40
+  #if __has_include(STRINGIFY(../../CUSTOM_VERSION_FILE))
41
+    #include STRINGIFY(../../CUSTOM_VERSION_FILE)
46 42
   #endif
47 43
 #endif
48 44
 

+ 10
- 6
Marlin/src/inc/SanityCheck.h Переглянути файл

@@ -270,6 +270,10 @@
270 270
   #error "Replace SLED_PIN with SOL1_PIN (applies to both Z_PROBE_SLED and SOLENOID_PROBE)."
271 271
 #elif defined(CONTROLLERFAN_PIN)
272 272
   #error "CONTROLLERFAN_PIN is now CONTROLLER_FAN_PIN, enabled with USE_CONTROLLER_FAN. Please update your Configuration_adv.h."
273
+#elif defined(CONTROLLERFAN_SPEED)
274
+  #error "CONTROLLERFAN_SPEED is now CONTROLLERFAN_SPEED_ACTIVE. Please update your Configuration_adv.h."
275
+#elif defined(CONTROLLERFAN_SECS)
276
+  #error "CONTROLLERFAN_SECS is now CONTROLLERFAN_IDLE_TIME. Please update your Configuration_adv.h."
273 277
 #elif defined(MIN_RETRACT)
274 278
   #error "MIN_RETRACT is now MIN_AUTORETRACT and MAX_AUTORETRACT. Please update your Configuration_adv.h."
275 279
 #elif defined(ADVANCE)
@@ -1983,7 +1987,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
1983 1987
 /**
1984 1988
  * Auto Fan check for PWM pins
1985 1989
  */
1986
-#if HAS_AUTO_FAN && EXTRUDER_AUTO_FAN_SPEED != 255
1990
+#if HAS_AUTO_FAN && EXTRUDER_AUTO_FAN_SPEED != 255 && DISABLED(NO_COMPILE_TIME_PWM)
1987 1991
   #define AF_ERR_SUFF "_AUTO_FAN_PIN is not a PWM pin. Set EXTRUDER_AUTO_FAN_SPEED to 255."
1988 1992
   #if HAS_AUTO_FAN_0
1989 1993
     static_assert(PWM_PIN(E0_AUTO_FAN_PIN), "E0" AF_ERR_SUFF);
@@ -2649,14 +2653,14 @@ static_assert(   _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
2649 2653
 #endif
2650 2654
 
2651 2655
 #if ENABLED(BACKLASH_COMPENSATION)
2652
-  #if IS_CORE
2653
-    #error "BACKLASH_COMPENSATION is incompatible with CORE kinematics."
2654
-  #endif
2655 2656
   #ifndef BACKLASH_DISTANCE_MM
2656 2657
     #error "BACKLASH_COMPENSATION requires BACKLASH_DISTANCE_MM"
2657
-  #endif
2658
-  #ifndef BACKLASH_CORRECTION
2658
+  #elif !defined(BACKLASH_CORRECTION)
2659 2659
     #error "BACKLASH_COMPENSATION requires BACKLASH_CORRECTION"
2660
+  #elif IS_CORE
2661
+    constexpr float backlash_arr[] = BACKLASH_DISTANCE_MM;
2662
+    static_assert(!backlash_arr[CORE_AXIS_1] && !backlash_arr[CORE_AXIS_2],
2663
+                  "BACKLASH_COMPENSATION can only apply to " STRINGIFY(NORMAL_AXIS) " with your CORE system.");
2660 2664
   #endif
2661 2665
 #endif
2662 2666
 

+ 1
- 1
Marlin/src/inc/Version.h Переглянути файл

@@ -42,7 +42,7 @@
42 42
  * version was tagged.
43 43
  */
44 44
 #ifndef STRING_DISTRIBUTION_DATE
45
-  #define STRING_DISTRIBUTION_DATE "2020-03-16"
45
+  #define STRING_DISTRIBUTION_DATE "2020-03-24"
46 46
 #endif
47 47
 
48 48
 /**

+ 1
- 1
Marlin/src/lcd/dogm/u8g_dev_uc1701_mini12864_HAL.cpp Переглянути файл

@@ -118,7 +118,7 @@ static const uint8_t u8g_dev_uc1701_mini12864_HAL_init_seq[] PROGMEM = {
118 118
 static const uint8_t u8g_dev_uc1701_mini12864_HAL_data_start[] PROGMEM = {
119 119
   U8G_ESC_ADR(0),             // instruction mode
120 120
   U8G_ESC_CS(1),              // enable chip
121
-  #if EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
121
+  #if ANY(MKS_MINI_12864, ENDER2_STOCKDISPLAY, FYSETC_MINI_12864)
122 122
     UC1701_START_LINE(0),     // set display start line to 0
123 123
     UC1701_ADC_REVERSE(0),    // ADC set to reverse
124 124
     UC1701_OUT_MODE(1),       // common output mode

+ 5
- 5
Marlin/src/lcd/extui/lib/dgus/DGUSDisplay.cpp Переглянути файл

@@ -30,10 +30,6 @@
30 30
   #error "More than 2 hotends not implemented on the Display UI design."
31 31
 #endif
32 32
 
33
-#include "DGUSDisplay.h"
34
-#include "DGUSVPVariable.h"
35
-#include "DGUSDisplayDef.h"
36
-
37 33
 #include "../../ui_api.h"
38 34
 
39 35
 #include "../../../../MarlinCore.h"
@@ -48,6 +44,10 @@
48 44
   #include "../../../../feature/powerloss.h"
49 45
 #endif
50 46
 
47
+#include "DGUSDisplay.h"
48
+#include "DGUSVPVariable.h"
49
+#include "DGUSDisplayDef.h"
50
+
51 51
 // Preamble... 2 Bytes, usually 0x5A 0xA5, but configurable
52 52
 constexpr uint8_t DGUS_HEADER1 = 0x5A;
53 53
 constexpr uint8_t DGUS_HEADER2 = 0xA5;
@@ -855,7 +855,7 @@ void DGUSScreenVariableHandler::HandleStepPerMMExtruderChanged(DGUS_VP_Variable
855 855
 void DGUSScreenVariableHandler::HandleProbeOffsetZChanged(DGUS_VP_Variable &var, void *val_ptr) {
856 856
   DEBUG_ECHOLNPGM("HandleProbeOffsetZChanged");
857 857
 
858
-  const float offset = float(swap16(*(uint16_t*)val_ptr)) / 100.0f;
858
+  const float offset = float(int16_t(swap16(*(uint16_t*)val_ptr))) / 100.0f;
859 859
   ExtUI::setZOffset_mm(offset);
860 860
   ScreenHandler.skipVP = var.VP; // don't overwrite value the next update time as the display might autoincrement in parallel
861 861
   return;

+ 9
- 1
Marlin/src/lcd/extui/lib/dgus/hiprecy/DGUSDisplayDef.cpp Переглянути файл

@@ -283,6 +283,13 @@ const uint16_t VPList_FLCPrinting[] PROGMEM = {
283 283
   0x0000
284 284
 };
285 285
 
286
+const uint16_t VPList_Z_Offset[] PROGMEM = {
287
+  #if HOTENDS >= 1
288
+    VP_SD_Print_ProbeOffsetZ,
289
+  #endif
290
+  0x0000
291
+};
292
+
286 293
 const struct VPMapping VPMap[] PROGMEM = {
287 294
   { DGUSLCD_SCREEN_BOOT, VPList_Boot },
288 295
   { DGUSLCD_SCREEN_MAIN, VPList_Main },
@@ -291,6 +298,7 @@ const struct VPMapping VPMap[] PROGMEM = {
291 298
   { DGUSLCD_SCREEN_STATUS2, VPList_Status2 },
292 299
   { DGUSLCD_SCREEN_PREHEAT, VPList_Preheat },
293 300
   { DGUSLCD_SCREEN_MANUALMOVE, VPList_ManualMove },
301
+  { DGUSLCD_SCREEN_Z_OFFSET, VPList_Z_Offset },
294 302
   { DGUSLCD_SCREEN_MANUALEXTRUDE, VPList_ManualExtrude },
295 303
   { DGUSLCD_SCREEN_FILAMENT_HEATING, VPList_Filament_heating },
296 304
   { DGUSLCD_SCREEN_FILAMENT_LOADING, VPList_Filament_load_unload },
@@ -361,7 +369,7 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
361 369
   #if HOTENDS >= 1
362 370
     VPHELPER(VP_T_E0_Is, &thermalManager.temp_hotend[0].celsius, nullptr, DGUSScreenVariableHandler::DGUSLCD_SendFloatAsLongValueToDisplay<0>),
363 371
     VPHELPER(VP_T_E0_Set, &thermalManager.temp_hotend[0].target, DGUSScreenVariableHandler::HandleTemperatureChanged, &DGUSScreenVariableHandler::DGUSLCD_SendWordValueToDisplay),
364
-    VPHELPER(VP_Flowrate_E0, nullptr, DGUSScreenVariableHandler::HandleFlowRateChanged, &DGUSScreenVariableHandler::DGUSLCD_SendWordValueToDisplay),
372
+    VPHELPER(VP_Flowrate_E0, &planner.flow_percentage[ExtUI::extruder_t::E0], DGUSScreenVariableHandler::HandleFlowRateChanged, &DGUSScreenVariableHandler::DGUSLCD_SendWordValueToDisplay),
365 373
     VPHELPER(VP_EPos, &destination.e, nullptr, DGUSScreenVariableHandler::DGUSLCD_SendFloatAsLongValueToDisplay<2>),
366 374
     VPHELPER(VP_MOVE_E0, nullptr, &DGUSScreenVariableHandler::HandleManualExtrude, nullptr),
367 375
     VPHELPER(VP_E0_CONTROL, &thermalManager.temp_hotend[0].target, &DGUSScreenVariableHandler::HandleHeaterControl, nullptr),

+ 1
- 0
Marlin/src/lcd/extui/lib/dgus/hiprecy/DGUSDisplayDef.h Переглянути файл

@@ -35,6 +35,7 @@ enum DGUSLCD_Screens : uint8_t {
35 35
   DGUSLCD_SCREEN_FILAMENT_LOADING     =  76,
36 36
   DGUSLCD_SCREEN_FILAMENT_UNLOADING   =  82,
37 37
   DGUSLCD_SCREEN_MANUALEXTRUDE        =  84,
38
+  DGUSLCD_SCREEN_Z_OFFSET             =  88,
38 39
   DGUSLCD_SCREEN_SDFILELIST           =   3,
39 40
   DGUSLCD_SCREEN_SDPRINTMANIPULATION  =   7,
40 41
   DGUSLCD_SCREEN_SDPRINTTUNE          =   9,

+ 5
- 0
Marlin/src/lcd/language/language_de.h Переглянути файл

@@ -236,6 +236,11 @@ namespace Language_de {
236 236
   PROGMEM Language_Str MSG_FAN_SPEED_N                     = _UxGT("Lüfter ~");
237 237
   PROGMEM Language_Str MSG_EXTRA_FAN_SPEED                 = _UxGT("Geschw. Extralüfter");
238 238
   PROGMEM Language_Str MSG_EXTRA_FAN_SPEED_N               = _UxGT("Geschw. Extralüfter ~");
239
+  PROGMEM Language_Str MSG_CONTROLLER_FAN                  = _UxGT("Lüfter Kontroller");
240
+  PROGMEM Language_Str MSG_CONTROLLER_FAN_IDLE_SPEED       = _UxGT("Lüfter Leerlauf");
241
+  PROGMEM Language_Str MSG_CONTROLLER_FAN_AUTO_ON          = _UxGT("Motorlast Modus");
242
+  PROGMEM Language_Str MSG_CONTROLLER_FAN_SPEED            = _UxGT("Lüfter Motorlast");
243
+  PROGMEM Language_Str MSG_CONTROLLER_FAN_DURATION         = _UxGT("Ausschalt Delay");
239 244
   PROGMEM Language_Str MSG_FLOW                            = _UxGT("Flussrate");
240 245
   PROGMEM Language_Str MSG_FLOW_N                          = _UxGT("Flussrate ~");
241 246
   PROGMEM Language_Str MSG_CONTROL                         = _UxGT("Einstellungen");

+ 5
- 0
Marlin/src/lcd/language/language_en.h Переглянути файл

@@ -247,6 +247,11 @@ namespace Language_en {
247 247
   PROGMEM Language_Str MSG_STORED_FAN_N                    = _UxGT("Stored Fan ~");
248 248
   PROGMEM Language_Str MSG_EXTRA_FAN_SPEED                 = _UxGT("Extra Fan Speed");
249 249
   PROGMEM Language_Str MSG_EXTRA_FAN_SPEED_N               = _UxGT("Extra Fan Speed ~");
250
+  PROGMEM Language_Str MSG_CONTROLLER_FAN                  = _UxGT("Controller Fan");
251
+  PROGMEM Language_Str MSG_CONTROLLER_FAN_IDLE_SPEED       = _UxGT("Idle Speed");
252
+  PROGMEM Language_Str MSG_CONTROLLER_FAN_AUTO_ON          = _UxGT("Auto Mode");
253
+  PROGMEM Language_Str MSG_CONTROLLER_FAN_SPEED            = _UxGT("Active Speed");
254
+  PROGMEM Language_Str MSG_CONTROLLER_FAN_DURATION         = _UxGT("Idle Period");
250 255
   PROGMEM Language_Str MSG_FLOW                            = _UxGT("Flow");
251 256
   PROGMEM Language_Str MSG_FLOW_N                          = _UxGT("Flow ~");
252 257
   PROGMEM Language_Str MSG_CONTROL                         = _UxGT("Control");

+ 0
- 1
Marlin/src/lcd/language/language_tr.h Переглянути файл

@@ -606,4 +606,3 @@ namespace Language_tr {
606 606
   #define MSG_FIRST_FAN_SPEED       MSG_FAN_SPEED_N
607 607
   #define MSG_FIRST_EXTRA_FAN_SPEED MSG_EXTRA_FAN_SPEED_N
608 608
 #endif
609
- 

+ 2
- 2
Marlin/src/lcd/menu/menu.cpp Переглянути файл

@@ -193,7 +193,7 @@ DEFINE_MENU_EDIT_ITEM(uint16_3);    // 123        right-justified
193 193
 DEFINE_MENU_EDIT_ITEM(uint16_4);    // 1234       right-justified
194 194
 DEFINE_MENU_EDIT_ITEM(uint16_5);    // 12345      right-justified
195 195
 DEFINE_MENU_EDIT_ITEM(float3);      // 123        right-justified
196
-DEFINE_MENU_EDIT_ITEM(float52);     // _2.34, 12.34, -2.34 or 123.45, -23.45
196
+DEFINE_MENU_EDIT_ITEM(float42_52);  // _2.34, 12.34, -2.34 or 123.45, -23.45
197 197
 DEFINE_MENU_EDIT_ITEM(float43);     // 1.234
198 198
 DEFINE_MENU_EDIT_ITEM(float5);      // 12345      right-justified
199 199
 DEFINE_MENU_EDIT_ITEM(float5_25);   // 12345      right-justified (25 increment)
@@ -428,7 +428,7 @@ void scroll_screen(const uint8_t limit, const bool is_menu) {
428 428
           MenuEditItemBase::draw_edit_screen(GET_TEXT(MSG_HOTEND_OFFSET_Z), ftostr54sign(hotend_offset[active_extruder].z));
429 429
       #endif
430 430
       if (do_probe) {
431
-        MenuEditItemBase::draw_edit_screen(GET_TEXT(MSG_ZPROBE_ZOFFSET), ftostr52sign(probe.offset.z));
431
+        MenuEditItemBase::draw_edit_screen(GET_TEXT(MSG_ZPROBE_ZOFFSET), BABYSTEP_TO_STR(probe.offset.z));
432 432
         #if ENABLED(BABYSTEP_ZPROBE_GFX_OVERLAY)
433 433
           _lcd_zoffset_overlay_gfx(probe.offset.z);
434 434
         #endif

+ 13
- 9
Marlin/src/lcd/menu/menu.h Переглянути файл

@@ -47,14 +47,18 @@ typedef void (*selectFunc_t)();
47 47
   void _lcd_zoffset_overlay_gfx(const float zvalue);
48 48
 #endif
49 49
 
50
-#if Z_PROBE_OFFSET_RANGE_MIN >= -9 && Z_PROBE_OFFSET_RANGE_MAX <= 9
51
-  // Only values from -9.999 to 9.999
52
-  #define LCD_Z_OFFSET_FUNC(N) ftostr54sign(N)
53
-  #define LCD_Z_OFFSET_TYPE float43
54
-#else
55
-  // Values from -99.99 to 99.99
56
-  #define LCD_Z_OFFSET_FUNC(N) ftostr52sign(N)
57
-  #define LCD_Z_OFFSET_TYPE float52
50
+#if HAS_BED_PROBE
51
+  #if Z_PROBE_OFFSET_RANGE_MIN >= -9 && Z_PROBE_OFFSET_RANGE_MAX <= 9
52
+    #define LCD_Z_OFFSET_TYPE float43    // Values from -9.000 to +9.000
53
+  #else
54
+    #define LCD_Z_OFFSET_TYPE float42_52 // Values from -99.99 to 99.99
55
+  #endif
56
+#endif
57
+
58
+#if ENABLED(BABYSTEP_ZPROBE_OFFSET) && Z_PROBE_OFFSET_RANGE_MIN >= -9 && Z_PROBE_OFFSET_RANGE_MAX <= 9
59
+  #define BABYSTEP_TO_STR(N) ftostr43sign(N)
60
+#elif ENABLED(BABYSTEPPING)
61
+  #define BABYSTEP_TO_STR(N) ftostr53sign(N)
58 62
 #endif
59 63
 
60 64
 ////////////////////////////////////////////
@@ -289,7 +293,7 @@ DEFINE_MENU_EDIT_ITEM_TYPE(uint16_3    ,uint16_t ,ui16tostr3rj    ,   1     );
289 293
 DEFINE_MENU_EDIT_ITEM_TYPE(uint16_4    ,uint16_t ,ui16tostr4rj    ,   0.1f  );   // 1234       right-justified
290 294
 DEFINE_MENU_EDIT_ITEM_TYPE(uint16_5    ,uint16_t ,ui16tostr5rj    ,   0.01f );   // 12345      right-justified
291 295
 DEFINE_MENU_EDIT_ITEM_TYPE(float3      ,float    ,ftostr3         ,   1     );   // 123        right-justified
292
-DEFINE_MENU_EDIT_ITEM_TYPE(float52     ,float    ,ftostr42_52     , 100     );   // _2.34, 12.34, -2.34 or 123.45, -23.45
296
+DEFINE_MENU_EDIT_ITEM_TYPE(float42_52  ,float    ,ftostr42_52     , 100     );   // _2.34, 12.34, -2.34 or 123.45, -23.45
293 297
 DEFINE_MENU_EDIT_ITEM_TYPE(float43     ,float    ,ftostr43sign    ,1000     );   // -1.234, _1.234, +1.234
294 298
 DEFINE_MENU_EDIT_ITEM_TYPE(float5      ,float    ,ftostr5rj       ,   1     );   // 12345      right-justified
295 299
 DEFINE_MENU_EDIT_ITEM_TYPE(float5_25   ,float    ,ftostr5rj       ,   0.04f );   // 12345      right-justified (25 increment)

+ 7
- 7
Marlin/src/lcd/menu/menu_advanced.cpp Переглянути файл

@@ -112,10 +112,10 @@ void menu_cancelobject();
112 112
 
113 113
     #if ENABLED(LIN_ADVANCE)
114 114
       #if EXTRUDERS == 1
115
-        EDIT_ITEM(float52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 999);
115
+        EDIT_ITEM(float42_52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 999);
116 116
       #elif EXTRUDERS > 1
117 117
         LOOP_L_N(n, EXTRUDERS)
118
-          EDIT_ITEM_N(float52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 999);
118
+          EDIT_ITEM_N(float42_52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 999);
119 119
       #endif
120 120
     #endif
121 121
 
@@ -257,7 +257,7 @@ void menu_cancelobject();
257 257
       EDIT_ITEM(bool, MSG_AUTOTEMP, &planner.autotemp_enabled);
258 258
       EDIT_ITEM(float3, MSG_MIN, &planner.autotemp_min, 0, float(HEATER_0_MAXTEMP) - 15);
259 259
       EDIT_ITEM(float3, MSG_MAX, &planner.autotemp_max, 0, float(HEATER_0_MAXTEMP) - 15);
260
-      EDIT_ITEM(float52, MSG_FACTOR, &planner.autotemp_factor, 0, 10);
260
+      EDIT_ITEM(float42_52, MSG_FACTOR, &planner.autotemp_factor, 0, 10);
261 261
     #endif
262 262
 
263 263
     //
@@ -376,12 +376,12 @@ void menu_cancelobject();
376 376
     START_MENU();
377 377
     BACK_ITEM(MSG_ADVANCED_SETTINGS);
378 378
 
379
-    static float max_accel = _MAX(planner.settings.max_acceleration_mm_per_s2[A_AXIS], planner.settings.max_acceleration_mm_per_s2[B_AXIS], planner.settings.max_acceleration_mm_per_s2[C_AXIS]);
379
+    const float max_accel = _MAX(planner.settings.max_acceleration_mm_per_s2[A_AXIS], planner.settings.max_acceleration_mm_per_s2[B_AXIS], planner.settings.max_acceleration_mm_per_s2[C_AXIS]);
380 380
     // M204 P Acceleration
381 381
     EDIT_ITEM_FAST(float5_25, MSG_ACC, &planner.settings.acceleration, 25, max_accel);
382 382
 
383 383
     // M204 R Retract Acceleration
384
-    EDIT_ITEM_FAST(float5, MSG_A_RETRACT, &planner.settings.retract_acceleration, 100, max_accel);
384
+    EDIT_ITEM_FAST(float5, MSG_A_RETRACT, &planner.settings.retract_acceleration, 100, planner.settings.max_acceleration_mm_per_s2[E_AXIS_N(active_extruder)]);
385 385
 
386 386
     // M204 T Travel Acceleration
387 387
     EDIT_ITEM_FAST(float5_25, MSG_A_TRAVEL, &planner.settings.travel_acceleration, 25, max_accel);
@@ -556,10 +556,10 @@ void menu_advanced_settings() {
556 556
     SUBMENU(MSG_FILAMENT, menu_advanced_filament);
557 557
   #elif ENABLED(LIN_ADVANCE)
558 558
     #if EXTRUDERS == 1
559
-      EDIT_ITEM(float52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 999);
559
+      EDIT_ITEM(float42_52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 999);
560 560
     #elif EXTRUDERS > 1
561 561
       LOOP_L_N(n, E_STEPPERS)
562
-        EDIT_ITEM_N(float52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 999);
562
+        EDIT_ITEM_N(float42_52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 999);
563 563
     #endif
564 564
   #endif
565 565
 

+ 29
- 4
Marlin/src/lcd/menu/menu_configuration.cpp Переглянути файл

@@ -138,12 +138,12 @@ void menu_advanced_settings();
138 138
     START_MENU();
139 139
     BACK_ITEM(MSG_CONFIGURATION);
140 140
     #if ENABLED(DUAL_X_CARRIAGE)
141
-      EDIT_ITEM_FAST(float52, MSG_HOTEND_OFFSET_X, &hotend_offset[1].x, float(X2_HOME_POS - 25), float(X2_HOME_POS + 25), _recalc_offsets);
141
+      EDIT_ITEM_FAST(float42_52, MSG_HOTEND_OFFSET_X, &hotend_offset[1].x, float(X2_HOME_POS - 25), float(X2_HOME_POS + 25), _recalc_offsets);
142 142
     #else
143
-      EDIT_ITEM_FAST(float52, MSG_HOTEND_OFFSET_X, &hotend_offset[1].x, -99.0, 99.0, _recalc_offsets);
143
+      EDIT_ITEM_FAST(float42_52, MSG_HOTEND_OFFSET_X, &hotend_offset[1].x, -99.0, 99.0, _recalc_offsets);
144 144
     #endif
145
-    EDIT_ITEM_FAST(float52,   MSG_HOTEND_OFFSET_Y, &hotend_offset[1].y, -99.0, 99.0, _recalc_offsets);
146
-    EDIT_ITEM_FAST(float52,   MSG_HOTEND_OFFSET_Z, &hotend_offset[1].z, Z_PROBE_LOW_POINT, 10.0, _recalc_offsets);
145
+    EDIT_ITEM_FAST(float42_52, MSG_HOTEND_OFFSET_Y, &hotend_offset[1].y, -99.0, 99.0, _recalc_offsets);
146
+    EDIT_ITEM_FAST(float42_52, MSG_HOTEND_OFFSET_Z, &hotend_offset[1].z, Z_PROBE_LOW_POINT, 10.0, _recalc_offsets);
147 147
     #if ENABLED(EEPROM_SETTINGS)
148 148
       ACTION_ITEM(MSG_STORE_EEPROM, lcd_store_settings);
149 149
     #endif
@@ -227,6 +227,24 @@ void menu_advanced_settings();
227 227
   }
228 228
 #endif
229 229
 
230
+#if ENABLED(CONTROLLER_FAN_MENU)
231
+
232
+  #include "../../feature/controllerfan.h"
233
+
234
+  void menu_controller_fan() {
235
+    START_MENU();
236
+    BACK_ITEM(MSG_CONFIGURATION);
237
+    EDIT_ITEM_FAST(percent, MSG_CONTROLLER_FAN_IDLE_SPEED, &controllerFan.settings.idle_speed, _MAX(1, CONTROLLERFAN_SPEED_MIN) - 1, 255);
238
+    EDIT_ITEM(bool, MSG_CONTROLLER_FAN_AUTO_ON, &controllerFan.settings.auto_mode);
239
+    if (controllerFan.settings.auto_mode) {
240
+      EDIT_ITEM_FAST(percent, MSG_CONTROLLER_FAN_SPEED, &controllerFan.settings.active_speed, _MAX(1, CONTROLLERFAN_SPEED_MIN) - 1, 255);
241
+      EDIT_ITEM(uint16_4, MSG_CONTROLLER_FAN_DURATION, &controllerFan.settings.duration, 0, 4800);
242
+    }
243
+    END_MENU();
244
+  }
245
+
246
+#endif
247
+
230 248
 #if ENABLED(CASE_LIGHT_MENU)
231 249
 
232 250
   #include "../../feature/caselight.h"
@@ -320,6 +338,13 @@ void menu_configuration() {
320 338
     EDIT_ITEM(LCD_Z_OFFSET_TYPE, MSG_ZPROBE_ZOFFSET, &probe.offset.z, Z_PROBE_OFFSET_RANGE_MIN, Z_PROBE_OFFSET_RANGE_MAX);
321 339
   #endif
322 340
 
341
+  //
342
+  // Set Fan Controller speed
343
+  //
344
+  #if ENABLED(CONTROLLER_FAN_MENU)
345
+    SUBMENU(MSG_CONTROLLER_FAN, menu_controller_fan);
346
+  #endif
347
+
323 348
   const bool busy = printer_busy();
324 349
   if (!busy) {
325 350
     #if EITHER(DELTA_CALIBRATION_MENU, DELTA_AUTO_CALIBRATION)

+ 1
- 1
Marlin/src/lcd/menu/menu_delta_calibrate.cpp Переглянути файл

@@ -103,7 +103,7 @@ void _man_probe_pt(const xy_pos_t &xy) {
103 103
 #endif
104 104
 
105 105
 void lcd_delta_settings() {
106
-  auto _recalc_delta_settings = []() {
106
+  auto _recalc_delta_settings = []{
107 107
     #if HAS_LEVELING
108 108
       reset_bed_level(); // After changing kinematics bed-level data is no longer valid
109 109
     #endif

+ 1
- 1
Marlin/src/lcd/menu/menu_mixer.cpp Переглянути файл

@@ -182,7 +182,7 @@ void lcd_mixer_mix_edit() {
182 182
     #if CHANNEL_MIX_EDITING
183 183
 
184 184
       LOOP_S_LE_N(n, 1, MIXING_STEPPERS)
185
-        EDIT_ITEM_FAST_N(float52, n, MSG_MIX_COMPONENT_N, &mixer.collector[n-1], 0, 10);
185
+        EDIT_ITEM_FAST_N(float42_52, n, MSG_MIX_COMPONENT_N, &mixer.collector[n-1], 0, 10);
186 186
 
187 187
       ACTION_ITEM(MSG_CYCLE_MIX, _lcd_mixer_cycle_mix);
188 188
       ACTION_ITEM(MSG_COMMIT_VTOOL, _lcd_mixer_commit_vtool);

+ 4
- 4
Marlin/src/lcd/menu/menu_tune.cpp Переглянути файл

@@ -65,7 +65,7 @@
65 65
     }
66 66
     if (ui.should_draw()) {
67 67
       const float spm = planner.steps_to_mm[axis];
68
-      MenuEditItemBase::draw_edit_screen(msg, LCD_Z_OFFSET_FUNC(spm * babystep.accum));
68
+      MenuEditItemBase::draw_edit_screen(msg, BABYSTEP_TO_STR(spm * babystep.accum));
69 69
       #if ENABLED(BABYSTEP_DISPLAY_TOTAL)
70 70
         const bool in_view = (true
71 71
           #if HAS_GRAPHICAL_LCD
@@ -81,7 +81,7 @@
81 81
           #endif
82 82
           lcd_put_u8str_P(GET_TEXT(MSG_BABYSTEP_TOTAL));
83 83
           lcd_put_wchar(':');
84
-          lcd_put_u8str(LCD_Z_OFFSET_FUNC(spm * babystep.axis_total[BS_TOTAL_IND(axis)]));
84
+          lcd_put_u8str(BABYSTEP_TO_STR(spm * babystep.axis_total[BS_TOTAL_IND(axis)]));
85 85
         }
86 86
       #endif
87 87
     }
@@ -232,10 +232,10 @@ void menu_tune() {
232 232
   //
233 233
   #if ENABLED(LIN_ADVANCE) && DISABLED(SLIM_LCD_MENUS)
234 234
     #if EXTRUDERS == 1
235
-      EDIT_ITEM(float52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 999);
235
+      EDIT_ITEM(float42_52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 999);
236 236
     #elif EXTRUDERS > 1
237 237
       LOOP_L_N(n, EXTRUDERS)
238
-        EDIT_ITEM_N(float52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 999);
238
+        EDIT_ITEM_N(float42_52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 999);
239 239
     #endif
240 240
   #endif
241 241
 

+ 1
- 1
Marlin/src/lcd/ultralcd.cpp Переглянути файл

@@ -227,7 +227,7 @@ millis_t MarlinUI::next_button_update_ms; // = 0
227 227
     SETCURSOR(col, row);
228 228
     if (!string) return;
229 229
 
230
-    auto _newline = [&col, &row]() {
230
+    auto _newline = [&col, &row]{
231 231
       col = 0; row++;                 // Move col to string len (plus space)
232 232
       SETCURSOR(0, row);              // Simulate carriage return
233 233
     };

+ 19
- 6
Marlin/src/libs/numtostr.cpp Переглянути файл

@@ -174,9 +174,9 @@ const char* ftostr12ns(const float &f) {
174 174
   return &conv[3];
175 175
 }
176 176
 
177
-// Convert signed float to fixed-length string with 12.34 / -2.34 or 023.45 / -23.45 format
177
+// Convert signed float to fixed-length string with 12.34 / _2.34 / -2.34 or -23.45 / 123.45 format
178 178
 const char* ftostr42_52(const float &f) {
179
-  if (f <= -10 || f >= 100) return ftostr52(f); // need more digits
179
+  if (f <= -10 || f >= 100) return ftostr52(f); // -23.45 / 123.45
180 180
   long i = (f * 1000 + (f < 0 ? -5: 5)) / 10;
181 181
   conv[2] = (f >= 0 && f < 10) ? ' ' : MINUSOR(i, DIGIMOD(i, 1000));
182 182
   conv[3] = DIGIMOD(i, 100);
@@ -198,9 +198,9 @@ const char* ftostr52(const float &f) {
198 198
   return &conv[1];
199 199
 }
200 200
 
201
-// Convert signed float to fixed-length string with 12.345 / -2.345 or 023.456 / -23.456 format
202
-const char* ftostr43_53(const float &f) {
203
-  if (f <= -10 || f >= 100) return ftostr53(f); // need more digits
201
+// Convert signed float to fixed-length string with 12.345 / _2.345 / -2.345 or -23.45 / 123.45 format
202
+const char* ftostr53_63(const float &f) {
203
+  if (f <= -10 || f >= 100) return ftostr63(f); // -23.456 / 123.456
204 204
   long i = (f * 10000 + (f < 0 ? -5: 5)) / 10;
205 205
   conv[1] = (f >= 0 && f < 10) ? ' ' : MINUSOR(i, DIGIMOD(i, 10000));
206 206
   conv[2] = DIGIMOD(i, 1000);
@@ -212,7 +212,7 @@ const char* ftostr43_53(const float &f) {
212 212
 }
213 213
 
214 214
 // Convert signed float to fixed-length string with 023.456 / -23.456 format
215
-const char* ftostr53(const float &f) {
215
+const char* ftostr63(const float &f) {
216 216
   long i = (f * 10000 + (f < 0 ? -5: 5)) / 10;
217 217
   conv[0] = MINUSOR(i, DIGIMOD(i, 100000));
218 218
   conv[1] = DIGIMOD(i, 10000);
@@ -310,6 +310,19 @@ const char* ftostr52sign(const float &f) {
310 310
   return conv;
311 311
 }
312 312
 
313
+// Convert signed float to string with +12.345 format
314
+const char* ftostr53sign(const float &f) {
315
+  long i = (f * 1000 + (f < 0 ? -5: 5)) / 10;
316
+  conv[0] = MINUSOR(i, '+');
317
+  conv[1] = DIGIMOD(i, 10000);
318
+  conv[2] = DIGIMOD(i, 1000);
319
+  conv[3] = '.';
320
+  conv[4] = DIGIMOD(i, 100);
321
+  conv[5] = DIGIMOD(i, 10);
322
+  conv[6] = DIGIMOD(i, 1);
323
+  return conv;
324
+}
325
+
313 326
 // Convert unsigned float to string with ____4.5, __34.5, _234.5, 1234.5 format
314 327
 const char* ftostr51rj(const float &f) {
315 328
   const long i = ((f < 0 ? -f : f) * 100 + 5) / 10;

+ 6
- 3
Marlin/src/libs/numtostr.h Переглянути файл

@@ -58,17 +58,17 @@ const char* i16tostr4signrj(const int16_t x);
58 58
 // Convert unsigned float to string with 1.23 format
59 59
 const char* ftostr12ns(const float &x);
60 60
 
61
-// Convert signed float to fixed-length string with 12.34 / -2.34 or 023.45 / -23.45 format
61
+// Convert signed float to fixed-length string with 12.34 / _2.34 / -2.34 or -23.45 / 123.45 format
62 62
 const char* ftostr42_52(const float &x);
63 63
 
64 64
 // Convert signed float to fixed-length string with 023.45 / -23.45 format
65 65
 const char* ftostr52(const float &x);
66 66
 
67 67
 // Convert signed float to fixed-length string with 12.345 / -2.345 or 023.456 / -23.456 format
68
-const char* ftostr43_53(const float &x);
68
+const char* ftostr53_63(const float &x);
69 69
 
70 70
 // Convert signed float to fixed-length string with 023.456 / -23.456 format
71
-const char* ftostr53(const float &x);
71
+const char* ftostr63(const float &x);
72 72
 
73 73
 // Convert float to fixed-length string with +123.4 / -123.4 format
74 74
 const char* ftostr41sign(const float &x);
@@ -91,6 +91,9 @@ const char* ftostr52sp(const float &x);
91 91
 // Convert signed float to string with +123.45 format
92 92
 const char* ftostr52sign(const float &x);
93 93
 
94
+// Convert signed float to string with +12.345 format
95
+const char* ftostr53sign(const float &f);
96
+
94 97
 // Convert unsigned float to string with 1234.5 format omitting trailing zeros
95 98
 const char* ftostr51rj(const float &x);
96 99
 

+ 47
- 0
Marlin/src/module/configuration_store.cpp Переглянути файл

@@ -122,6 +122,11 @@
122 122
   #include "../feature/probe_temp_comp.h"
123 123
 #endif
124 124
 
125
+#include "../feature/controllerfan.h"
126
+#if ENABLED(CONTROLLER_FAN_EDITABLE)
127
+  void M710_report(const bool forReplay);
128
+#endif
129
+
125 130
 #pragma pack(push, 1) // No padding between variables
126 131
 
127 132
 typedef struct { uint16_t X, Y, Z, X2, Y2, Z2, Z3, Z4, E0, E1, E2, E3, E4, E5; } tmc_stepper_current_t;
@@ -293,6 +298,11 @@ typedef struct SettingsDataStruct {
293 298
   int16_t lcd_contrast;                                 // M250 C
294 299
 
295 300
   //
301
+  // Controller fan settings
302
+  //
303
+  controllerFan_settings_t controllerFan_settings;      // M710
304
+
305
+  //
296 306
   // POWER_LOSS_RECOVERY
297 307
   //
298 308
   bool recovery_enabled;                                // M413 S
@@ -881,6 +891,19 @@ void MarlinSettings::postprocess() {
881 891
     }
882 892
 
883 893
     //
894
+    // Controller Fan
895
+    //
896
+    {
897
+      _FIELD_TEST(controllerFan_settings);
898
+      #if ENABLED(USE_CONTROLLER_FAN)
899
+        const controllerFan_settings_t &cfs = controllerFan.settings;
900
+      #else
901
+        controllerFan_settings_t cfs = controllerFan_defaults;
902
+      #endif
903
+      EEPROM_WRITE(cfs);
904
+    }
905
+
906
+    //
884 907
     // Power-Loss Recovery
885 908
     //
886 909
     {
@@ -1720,6 +1743,19 @@ void MarlinSettings::postprocess() {
1720 1743
       }
1721 1744
 
1722 1745
       //
1746
+      // Controller Fan
1747
+      //
1748
+      {
1749
+        _FIELD_TEST(controllerFan_settings);
1750
+        #if ENABLED(CONTROLLER_FAN_EDITABLE)
1751
+          const controllerFan_settings_t &cfs = controllerFan.settings;
1752
+        #else
1753
+          controllerFan_settings_t cfs = { 0 };
1754
+        #endif
1755
+        EEPROM_READ(cfs);
1756
+      }
1757
+
1758
+      //
1723 1759
       // Power-Loss Recovery
1724 1760
       //
1725 1761
       {
@@ -2591,6 +2627,13 @@ void MarlinSettings::reset() {
2591 2627
   #endif
2592 2628
 
2593 2629
   //
2630
+  // Controller Fan
2631
+  //
2632
+  #if ENABLED(USE_CONTROLLER_FAN)
2633
+    controllerFan.reset();
2634
+  #endif
2635
+
2636
+  //
2594 2637
   // Power-Loss Recovery
2595 2638
   //
2596 2639
 
@@ -3154,6 +3197,10 @@ void MarlinSettings::reset() {
3154 3197
       SERIAL_ECHOLNPAIR("  M250 C", ui.contrast);
3155 3198
     #endif
3156 3199
 
3200
+    #if ENABLED(CONTROLLER_FAN_EDITABLE)
3201
+      M710_report(forReplay);
3202
+    #endif
3203
+
3157 3204
     #if ENABLED(POWER_LOSS_RECOVERY)
3158 3205
       CONFIG_ECHO_HEADING("Power-Loss Recovery:");
3159 3206
       CONFIG_ECHO_START();

+ 12
- 2
Marlin/src/module/motion.cpp Переглянути файл

@@ -218,7 +218,6 @@ inline void report_more_positions() {
218 218
 inline void report_logical_position(const xyze_pos_t &rpos) {
219 219
   const xyze_pos_t lpos = rpos.asLogical();
220 220
   SERIAL_ECHOPAIR_P(X_LBL, lpos.x, SP_Y_LBL, lpos.y, SP_Z_LBL, lpos.z, SP_E_LBL, lpos.e);
221
-  report_more_positions();
222 221
 }
223 222
 
224 223
 // Report the real current position according to the steppers.
@@ -237,10 +236,14 @@ void report_real_position() {
237 236
   #endif
238 237
 
239 238
   report_logical_position(npos);
239
+  report_more_positions();
240 240
 }
241 241
 
242 242
 // Report the logical current position according to the most recent G-code command
243
-void report_current_position() { report_logical_position(current_position); }
243
+void report_current_position() {
244
+  report_logical_position(current_position);
245
+  report_more_positions();
246
+}
244 247
 
245 248
 /**
246 249
  * Report the logical current position according to the most recent G-code command.
@@ -1776,6 +1779,13 @@ void homeaxis(const AxisEnum axis) {
1776 1779
         #endif
1777 1780
         homing_feedrate(axis)
1778 1781
       );
1782
+
1783
+      #if ENABLED(SENSORLESS_HOMING)
1784
+        planner.synchronize();
1785
+        #if IS_CORE
1786
+          if (axis != NORMAL_AXIS) safe_delay(200);  // Short delay to allow belts to spring back
1787
+        #endif
1788
+      #endif
1779 1789
     }
1780 1790
   #endif
1781 1791
 

+ 69
- 0
Marlin/src/module/thermistor/thermistor_202.h Переглянути файл

@@ -0,0 +1,69 @@
1
+//
2
+// Unknown 200K thermistor on a Copymaster 3D hotend
3
+// Temptable sent from dealer technologyoutlet.co.uk
4
+//
5
+
6
+const short temptable_202[][2] PROGMEM = {
7
+  { OV(   1), 864 },
8
+  { OV(  35), 300 },
9
+  { OV(  38), 295 },
10
+  { OV(  41), 290 },
11
+  { OV(  44), 285 },
12
+  { OV(  47), 280 },
13
+  { OV(  51), 275 },
14
+  { OV(  55), 270 },
15
+  { OV(  60), 265 },
16
+  { OV(  65), 260 },
17
+  { OV(  70), 255 },
18
+  { OV(  76), 250 },
19
+  { OV(  83), 245 },
20
+  { OV(  90), 240 },
21
+  { OV(  98), 235 },
22
+  { OV( 107), 230 },
23
+  { OV( 116), 225 },
24
+  { OV( 127), 220 },
25
+  { OV( 138), 215 },
26
+  { OV( 151), 210 },
27
+  { OV( 164), 205 },
28
+  { OV( 179), 200 },
29
+  { OV( 195), 195 },
30
+  { OV( 213), 190 },
31
+  { OV( 232), 185 },
32
+  { OV( 253), 180 },
33
+  { OV( 275), 175 },
34
+  { OV( 299), 170 },
35
+  { OV( 325), 165 },
36
+  { OV( 352), 160 },
37
+  { OV( 381), 155 },
38
+  { OV( 411), 150 },
39
+  { OV( 443), 145 },
40
+  { OV( 476), 140 },
41
+  { OV( 511), 135 },
42
+  { OV( 546), 130 },
43
+  { OV( 581), 125 },
44
+  { OV( 617), 120 },
45
+  { OV( 652), 115 },
46
+  { OV( 687), 110 },
47
+  { OV( 720), 105 },
48
+  { OV( 753), 100 },
49
+  { OV( 783),  95 },
50
+  { OV( 812),  90 },
51
+  { OV( 839),  85 },
52
+  { OV( 864),  80 },
53
+  { OV( 886),  75 },
54
+  { OV( 906),  70 },
55
+  { OV( 924),  65 },
56
+  { OV( 940),  60 },
57
+  { OV( 954),  55 },
58
+  { OV( 966),  50 },
59
+  { OV( 976),  45 },
60
+  { OV( 985),  40 },
61
+  { OV( 992),  35 },
62
+  { OV( 998),  30 },
63
+  { OV(1003),  25 },
64
+  { OV(1007),  20 },
65
+  { OV(1011),  15 },
66
+  { OV(1014),  10 },
67
+  { OV(1016),   5 },
68
+  { OV(1018),   0 }
69
+};

+ 3
- 0
Marlin/src/module/thermistor/thermistors.h Переглянути файл

@@ -151,6 +151,9 @@
151 151
 #if ANY_THERMISTOR_IS(201) // Pt100 with LMV324 Overlord
152 152
   #include "thermistor_201.h"
153 153
 #endif
154
+#if ANY_THERMISTOR_IS(202) // 200K thermistor in Copymaker3D hotend
155
+  #include "thermistor_202.h"
156
+#endif
154 157
 #if ANY_THERMISTOR_IS(331) // Like table 1, but with 3V3 as input voltage for MEGA
155 158
   #include "thermistor_331.h"
156 159
 #endif

+ 28
- 28
Marlin/src/pins/esp32/pins_E4D.h Переглянути файл

@@ -42,49 +42,49 @@
42 42
 //
43 43
 // Limit Switches
44 44
 //
45
-#define X_MIN_PIN          34
46
-#define Y_MIN_PIN          35
47
-#define Z_MIN_PIN          16   // 15
45
+#define X_MIN_PIN                             34
46
+#define Y_MIN_PIN                             35
47
+#define Z_MIN_PIN                             16  // 15
48 48
 
49 49
 //
50 50
 // Steppers
51 51
 //
52
-#define X_STEP_PIN         12   // 34//27
53
-#define X_DIR_PIN          13   // 35//26
54
-#define X_ENABLE_PIN       17   // 0//17//25 // used free pin
55
-//#define X_CS_PIN            0
52
+#define X_STEP_PIN                            12  // 34//27
53
+#define X_DIR_PIN                             13  // 35//26
54
+#define X_ENABLE_PIN                          17  // 0//17//25 // used free pin
55
+//#define X_CS_PIN                             0
56 56
 
57
-#define Y_STEP_PIN         32   // 33
58
-#define Y_DIR_PIN          33   // 32
59
-#define Y_ENABLE_PIN       X_ENABLE_PIN
60
-//#define Y_CS_PIN           13
57
+#define Y_STEP_PIN                            32  // 33
58
+#define Y_DIR_PIN                             33  // 32
59
+#define Y_ENABLE_PIN                X_ENABLE_PIN
60
+//#define Y_CS_PIN                            13
61 61
 
62
-#define Z_STEP_PIN         25   // 14
63
-#define Z_DIR_PIN          26   // 12
64
-#define Z_ENABLE_PIN       X_ENABLE_PIN
65
-//#define Z_CS_PIN            5   // SS_PIN
62
+#define Z_STEP_PIN                            25  // 14
63
+#define Z_DIR_PIN                             26  // 12
64
+#define Z_ENABLE_PIN                X_ENABLE_PIN
65
+//#define Z_CS_PIN                             5  // SS_PIN
66 66
 
67
-#define E0_STEP_PIN        27   // 16
68
-#define E0_DIR_PIN         14   // 17
69
-#define E0_ENABLE_PIN      X_ENABLE_PIN
70
-//#define E0_CS_PIN          21
67
+#define E0_STEP_PIN                           27  // 16
68
+#define E0_DIR_PIN                            14  // 17
69
+#define E0_ENABLE_PIN               X_ENABLE_PIN
70
+//#define E0_CS_PIN                           21
71 71
 
72 72
 //
73 73
 // Temperature Sensors
74 74
 //
75
-#define TEMP_0_PIN         36   // Analog Input
76
-#define TEMP_BED_PIN       39   // Analog Input
75
+#define TEMP_0_PIN                            36  // Analog Input
76
+#define TEMP_BED_PIN                          39  // Analog Input
77 77
 
78 78
 //
79 79
 // Heaters / Fans
80 80
 //
81
-#define HEATER_0_PIN        2   // 4//2//(D8)
82
-#define FAN_PIN             0   // 2//15//13 (D9)
83
-#define HEATER_BED_PIN     15   // 15//0 //(D10)
81
+#define HEATER_0_PIN                           2  // 4//2//(D8)
82
+#define FAN_PIN                                0  // 2//15//13 (D9)
83
+#define HEATER_BED_PIN                        15  // 15//0 //(D10)
84 84
 
85 85
 // SPI
86
-#define SDSS                 5
86
+#define SDSS                                   5
87 87
 #define I2S_STEPPER_STREAM
88
-#define I2S_WS              23
89
-#define I2S_BCK             22
90
-#define I2S_DATA            21
88
+#define I2S_WS                                23
89
+#define I2S_BCK                               22
90
+#define I2S_DATA                              21

+ 28
- 28
Marlin/src/pins/esp32/pins_ESP32.h Переглянути файл

@@ -35,52 +35,52 @@
35 35
 // I2S (steppers & other output-only pins)
36 36
 //
37 37
 #define I2S_STEPPER_STREAM
38
-#define I2S_WS              25
39
-#define I2S_BCK             26
40
-#define I2S_DATA            27
38
+#define I2S_WS                                25
39
+#define I2S_BCK                               26
40
+#define I2S_DATA                              27
41 41
 
42 42
 //
43 43
 // Limit Switches
44 44
 //
45
-#define X_MIN_PIN           34
46
-#define Y_MIN_PIN           35
47
-#define Z_MIN_PIN           15
45
+#define X_MIN_PIN                             34
46
+#define Y_MIN_PIN                             35
47
+#define Z_MIN_PIN                             15
48 48
 
49 49
 //
50 50
 // Steppers
51 51
 //
52
-#define X_STEP_PIN         128
53
-#define X_DIR_PIN          129
54
-#define X_ENABLE_PIN       130
55
-//#define X_CS_PIN           0
52
+#define X_STEP_PIN                           128
53
+#define X_DIR_PIN                            129
54
+#define X_ENABLE_PIN                         130
55
+//#define X_CS_PIN                             0
56 56
 
57
-#define Y_STEP_PIN         131
58
-#define Y_DIR_PIN          132
59
-#define Y_ENABLE_PIN       133
60
-//#define Y_CS_PIN          13
57
+#define Y_STEP_PIN                           131
58
+#define Y_DIR_PIN                            132
59
+#define Y_ENABLE_PIN                         133
60
+//#define Y_CS_PIN                            13
61 61
 
62
-#define Z_STEP_PIN         134
63
-#define Z_DIR_PIN          135
64
-#define Z_ENABLE_PIN       136
65
-//#define Z_CS_PIN           5 // SS_PIN
62
+#define Z_STEP_PIN                           134
63
+#define Z_DIR_PIN                            135
64
+#define Z_ENABLE_PIN                         136
65
+//#define Z_CS_PIN                             5  // SS_PIN
66 66
 
67
-#define E0_STEP_PIN        137
68
-#define E0_DIR_PIN         138
69
-#define E0_ENABLE_PIN      139
70
-//#define E0_CS_PIN         21
67
+#define E0_STEP_PIN                          137
68
+#define E0_DIR_PIN                           138
69
+#define E0_ENABLE_PIN                        139
70
+//#define E0_CS_PIN                           21
71 71
 
72 72
 //
73 73
 // Temperature Sensors
74 74
 //
75
-#define TEMP_0_PIN          36   // Analog Input
76
-#define TEMP_BED_PIN        39   // Analog Input
75
+#define TEMP_0_PIN                            36  // Analog Input
76
+#define TEMP_BED_PIN                          39  // Analog Input
77 77
 
78 78
 //
79 79
 // Heaters / Fans
80 80
 //
81
-#define HEATER_0_PIN         2
82
-#define FAN_PIN             13
83
-#define HEATER_BED_PIN       4
81
+#define HEATER_0_PIN                           2
82
+#define FAN_PIN                               13
83
+#define HEATER_BED_PIN                         4
84 84
 
85 85
 // SPI
86
-#define SDSS                 5
86
+#define SDSS                                   5

+ 34
- 34
Marlin/src/pins/esp32/pins_MRR_ESPA.h Переглянути файл

@@ -45,66 +45,66 @@
45 45
 #ifdef I2S_STEPPER_STREAM
46 46
   #undef I2S_STEPPER_STREAM
47 47
 #endif
48
-#define I2S_WS              -1
49
-#define I2S_BCK             -1
50
-#define I2S_DATA            -1
48
+#define I2S_WS                                -1
49
+#define I2S_BCK                               -1
50
+#define I2S_DATA                              -1
51 51
 
52 52
 //
53 53
 // Limit Switches
54 54
 //
55
-#define X_STOP_PIN         34
56
-#define Y_STOP_PIN         35
57
-#define Z_STOP_PIN         15
55
+#define X_STOP_PIN                            34
56
+#define Y_STOP_PIN                            35
57
+#define Z_STOP_PIN                            15
58 58
 
59 59
 //
60 60
 // Steppers
61 61
 //
62
-#define X_STEP_PIN         27
63
-#define X_DIR_PIN          26
64
-#define X_ENABLE_PIN       25
65
-//#define X_CS_PIN           21
62
+#define X_STEP_PIN                            27
63
+#define X_DIR_PIN                             26
64
+#define X_ENABLE_PIN                          25
65
+//#define X_CS_PIN                            21
66 66
 
67
-#define Y_STEP_PIN         33
68
-#define Y_DIR_PIN          32
69
-#define Y_ENABLE_PIN       X_ENABLE_PIN
70
-//#define Y_CS_PIN           22
67
+#define Y_STEP_PIN                            33
68
+#define Y_DIR_PIN                             32
69
+#define Y_ENABLE_PIN                X_ENABLE_PIN
70
+//#define Y_CS_PIN                            22
71 71
 
72
-#define Z_STEP_PIN         14
73
-#define Z_DIR_PIN          12
74
-#define Z_ENABLE_PIN       X_ENABLE_PIN
75
-//#define Z_CS_PIN            5 // SS_PIN
72
+#define Z_STEP_PIN                            14
73
+#define Z_DIR_PIN                             12
74
+#define Z_ENABLE_PIN                X_ENABLE_PIN
75
+//#define Z_CS_PIN                             5  // SS_PIN
76 76
 
77
-#define E0_STEP_PIN        16
78
-#define E0_DIR_PIN         17
79
-#define E0_ENABLE_PIN      X_ENABLE_PIN
80
-//#define E0_CS_PIN          21
77
+#define E0_STEP_PIN                           16
78
+#define E0_DIR_PIN                            17
79
+#define E0_ENABLE_PIN               X_ENABLE_PIN
80
+//#define E0_CS_PIN                           21
81 81
 
82 82
 //
83 83
 // Temperature Sensors
84 84
 //
85
-#define TEMP_0_PIN         36   // Analog Input
86
-#define TEMP_BED_PIN       39   // Analog Input
85
+#define TEMP_0_PIN                            36  // Analog Input
86
+#define TEMP_BED_PIN                          39  // Analog Input
87 87
 
88 88
 //
89 89
 // Heaters / Fans
90 90
 //
91
-#define HEATER_0_PIN        2
92
-#define FAN_PIN            13
93
-#define HEATER_BED_PIN      4
91
+#define HEATER_0_PIN                           2
92
+#define FAN_PIN                               13
93
+#define HEATER_BED_PIN                         4
94 94
 
95 95
 //
96 96
 // MicroSD card
97 97
 //
98
-#define MOSI_PIN           23
99
-#define MISO_PIN           19
100
-#define SCK_PIN            18
101
-#define SDSS                5
102
-#define USES_SHARED_SPI  // SPI is shared by SD card with TMC SPI drivers
98
+#define MOSI_PIN                              23
99
+#define MISO_PIN                              19
100
+#define SCK_PIN                               18
101
+#define SDSS                                   5
102
+#define USES_SHARED_SPI                           // SPI is shared by SD card with TMC SPI drivers
103 103
 
104 104
 // Hardware serial pins
105 105
 // Add the following to Configuration.h or Configuration_adv.h to assign
106 106
 // specific pins to hardware Serial1.
107 107
 // Note: Serial2 can be defined using HARDWARE_SERIAL2_RX and HARDWARE_SERIAL2_TX but
108 108
 // MRR ESPA does not have enough spare pins for such reassignment.
109
-//#define HARDWARE_SERIAL1_RX 21
110
-//#define HARDWARE_SERIAL1_TX 22
109
+//#define HARDWARE_SERIAL1_RX                 21
110
+//#define HARDWARE_SERIAL1_TX                 22

+ 66
- 66
Marlin/src/pins/esp32/pins_MRR_ESPE.h Переглянути файл

@@ -43,9 +43,9 @@
43 43
 //
44 44
 // Limit Switches
45 45
 //
46
-#define X_STOP_PIN         35
47
-#define Y_STOP_PIN         32
48
-#define Z_STOP_PIN         33
46
+#define X_STOP_PIN                            35
47
+#define Y_STOP_PIN                            32
48
+#define Z_STOP_PIN                            33
49 49
 
50 50
 //
51 51
 // Enable I2S stepper stream
@@ -53,72 +53,72 @@
53 53
 #undef I2S_STEPPER_STREAM
54 54
 #define I2S_STEPPER_STREAM
55 55
 
56
-#undef LIN_ADVANCE  // Currently, I2S stream does not work with linear advance
56
+#undef LIN_ADVANCE                                // Currently, I2S stream does not work with linear advance
57 57
 
58
-#define I2S_WS             26
59
-#define I2S_BCK            25
60
-#define I2S_DATA           27
58
+#define I2S_WS                                26
59
+#define I2S_BCK                               25
60
+#define I2S_DATA                              27
61 61
 
62 62
 //
63 63
 // Steppers
64 64
 //
65
-#define X_STEP_PIN        129
66
-#define X_DIR_PIN         130
67
-#define X_ENABLE_PIN      128
68
-//#define X_CS_PIN           21
69
-
70
-#define Y_STEP_PIN        132
71
-#define Y_DIR_PIN         133
72
-#define Y_ENABLE_PIN      131
73
-//#define Y_CS_PIN           22
74
-
75
-#define Z_STEP_PIN        135
76
-#define Z_DIR_PIN         136
77
-#define Z_ENABLE_PIN      134
78
-//#define Z_CS_PIN            5 // SS_PIN
79
-
80
-#define E0_STEP_PIN       138
81
-#define E0_DIR_PIN        139
82
-#define E0_ENABLE_PIN     137
83
-//#define E0_CS_PIN          21
84
-
85
-#define E1_STEP_PIN       141
86
-#define E1_DIR_PIN        142
87
-#define E1_ENABLE_PIN     140
88
-//#define E1_CS_PIN          22
89
-
90
-#define Z2_STEP_PIN       141
91
-#define Z2_DIR_PIN        142
92
-#define Z2_ENABLE_PIN     140
93
-//#define Z2_CS_PIN            5
65
+#define X_STEP_PIN                           129
66
+#define X_DIR_PIN                            130
67
+#define X_ENABLE_PIN                         128
68
+//#define X_CS_PIN                            21
69
+
70
+#define Y_STEP_PIN                           132
71
+#define Y_DIR_PIN                            133
72
+#define Y_ENABLE_PIN                         131
73
+//#define Y_CS_PIN                            22
74
+
75
+#define Z_STEP_PIN                           135
76
+#define Z_DIR_PIN                            136
77
+#define Z_ENABLE_PIN                         134
78
+//#define Z_CS_PIN                             5  // SS_PIN
79
+
80
+#define E0_STEP_PIN                          138
81
+#define E0_DIR_PIN                           139
82
+#define E0_ENABLE_PIN                        137
83
+//#define E0_CS_PIN                           21
84
+
85
+#define E1_STEP_PIN                          141
86
+#define E1_DIR_PIN                           142
87
+#define E1_ENABLE_PIN                        140
88
+//#define E1_CS_PIN                           22
89
+
90
+#define Z2_STEP_PIN                          141
91
+#define Z2_DIR_PIN                           142
92
+#define Z2_ENABLE_PIN                        140
93
+//#define Z2_CS_PIN                            5
94 94
 
95 95
 //
96 96
 // Temperature Sensors
97 97
 //
98
-#define TEMP_0_PIN         36   // Analog Input
99
-#define TEMP_1_PIN         34   // Analog Input
100
-#define TEMP_BED_PIN       39   // Analog Input
98
+#define TEMP_0_PIN                            36  // Analog Input
99
+#define TEMP_1_PIN                            34  // Analog Input
100
+#define TEMP_BED_PIN                          39  // Analog Input
101 101
 
102 102
 //
103 103
 // Heaters / Fans
104 104
 //
105
-#define HEATER_0_PIN      145 // 2
106
-#define FAN_PIN           146 // 15
107
-#define HEATER_BED_PIN    144 // 4
105
+#define HEATER_0_PIN                         145  // 2
106
+#define FAN_PIN                              146  // 15
107
+#define HEATER_BED_PIN                       144  // 4
108 108
 
109
-#define CONTROLLER_FAN_PIN 147
110
-//#define E0_AUTO_FAN_PIN 148 // need to update Configuration_adv.h @section extruder
111
-//#define E1_AUTO_FAN_PIN 149 // need to update Configuration_adv.h @section extruder
112
-#define FAN1_PIN 149
109
+#define CONTROLLER_FAN_PIN                   147
110
+//#define E0_AUTO_FAN_PIN                    148  // need to update Configuration_adv.h @section extruder
111
+//#define E1_AUTO_FAN_PIN                    149  // need to update Configuration_adv.h @section extruder
112
+#define FAN1_PIN                             149
113 113
 
114 114
 //
115 115
 // MicroSD card
116 116
 //
117
-#define MOSI_PIN           23
118
-#define MISO_PIN           19
119
-#define SCK_PIN            18
120
-#define SDSS                5
121
-#define USES_SHARED_SPI  // SPI is shared by SD card with TMC SPI drivers
117
+#define MOSI_PIN                              23
118
+#define MISO_PIN                              19
119
+#define SCK_PIN                               18
120
+#define SDSS                                   5
121
+#define USES_SHARED_SPI                           // SPI is shared by SD card with TMC SPI drivers
122 122
 
123 123
 //////////////////////////
124 124
 // LCDs and Controllers //
@@ -126,21 +126,21 @@
126 126
 
127 127
 #if HAS_GRAPHICAL_LCD
128 128
 
129
-  #define LCD_PINS_RS        13
130
-  #define LCD_PINS_ENABLE    17
131
-  #define LCD_PINS_D4        16
129
+  #define LCD_PINS_RS                         13
130
+  #define LCD_PINS_ENABLE                     17
131
+  #define LCD_PINS_D4                         16
132 132
 
133 133
   #if ENABLED(CR10_STOCKDISPLAY)
134 134
 
135
-    #define BEEPER_PIN      151
135
+    #define BEEPER_PIN                       151
136 136
 
137 137
   #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
138 138
 
139
-    #define BEEPER_PIN      151
139
+    #define BEEPER_PIN                       151
140 140
 
141
-    //#define LCD_PINS_D5     150
142
-    //#define LCD_PINS_D6     152
143
-    //#define LCD_PINS_D7     153
141
+    //#define LCD_PINS_D5                    150
142
+    //#define LCD_PINS_D6                    152
143
+    //#define LCD_PINS_D7                    153
144 144
 
145 145
   #else
146 146
 
@@ -148,9 +148,9 @@
148 148
 
149 149
   #endif
150 150
 
151
-  #define BTN_EN1             0
152
-  #define BTN_EN2            12
153
-  #define BTN_ENC            14
151
+  #define BTN_EN1                              0
152
+  #define BTN_EN2                             12
153
+  #define BTN_ENC                             14
154 154
 
155 155
 #endif // HAS_GRAPHICAL_LCD
156 156
 
@@ -159,7 +159,7 @@
159 159
 // specific pins to hardware Serial1 and Serial2.
160 160
 // Note: Serial2 can be defined using HARDWARE_SERIAL2_RX and HARDWARE_SERIAL2_TX but
161 161
 // MRR ESPA does not have enough spare pins for such reassignment.
162
-//#define HARDWARE_SERIAL1_RX 21
163
-//#define HARDWARE_SERIAL1_TX 22
164
-//#define HARDWARE_SERIAL2_RX  2
165
-//#define HARDWARE_SERIAL2_TX  4
162
+//#define HARDWARE_SERIAL1_RX                 21
163
+//#define HARDWARE_SERIAL1_TX                 22
164
+//#define HARDWARE_SERIAL2_RX                  2
165
+//#define HARDWARE_SERIAL2_TX                  4

+ 229
- 229
Marlin/src/pins/linux/pins_RAMPS_LINUX.h Переглянути файл

@@ -49,7 +49,7 @@
49 49
   #define BOARD_INFO_NAME "RAMPS 1.4"
50 50
 #endif
51 51
 
52
-#define E2END 0xFFF // 4KB
52
+#define E2END 0xFFF                               // 4KB
53 53
 
54 54
 #define IS_RAMPS_EFB
55 55
 
@@ -57,85 +57,85 @@
57 57
 // Servos
58 58
 //
59 59
 #ifdef IS_RAMPS_13
60
-  #define SERVO0_PIN        7   // RAMPS_13 // Will conflict with BTN_EN2 on LCD_I2C_VIKI
60
+  #define SERVO0_PIN                           7  // RAMPS_13 // Will conflict with BTN_EN2 on LCD_I2C_VIKI
61 61
 #else
62
-  #define SERVO0_PIN       11
62
+  #define SERVO0_PIN                          11
63 63
 #endif
64
-#define SERVO1_PIN          6
65
-#define SERVO2_PIN          5
64
+#define SERVO1_PIN                             6
65
+#define SERVO2_PIN                             5
66 66
 #ifndef SERVO3_PIN
67
-  #define SERVO3_PIN        4
67
+  #define SERVO3_PIN                           4
68 68
 #endif
69 69
 
70 70
 //
71 71
 // Limit Switches
72 72
 //
73
-#define X_MIN_PIN           3
73
+#define X_MIN_PIN                              3
74 74
 #ifndef X_MAX_PIN
75
-  #define X_MAX_PIN         2
75
+  #define X_MAX_PIN                            2
76 76
 #endif
77
-#define Y_MIN_PIN          14
78
-#define Y_MAX_PIN          15
79
-#define Z_MIN_PIN          18
80
-#define Z_MAX_PIN          19
77
+#define Y_MIN_PIN                             14
78
+#define Y_MAX_PIN                             15
79
+#define Z_MIN_PIN                             18
80
+#define Z_MAX_PIN                             19
81 81
 
82 82
 //
83 83
 // Z Probe (when not Z_MIN_PIN)
84 84
 //
85 85
 #ifndef Z_MIN_PROBE_PIN
86
-  #define Z_MIN_PROBE_PIN  32
86
+  #define Z_MIN_PROBE_PIN                     32
87 87
 #endif
88 88
 
89 89
 //
90 90
 // Steppers
91 91
 //
92
-#define X_STEP_PIN         54
93
-#define X_DIR_PIN          55
94
-#define X_ENABLE_PIN       38
92
+#define X_STEP_PIN                            54
93
+#define X_DIR_PIN                             55
94
+#define X_ENABLE_PIN                          38
95 95
 #ifndef X_CS_PIN
96
-  #define X_CS_PIN         53
96
+  #define X_CS_PIN                            53
97 97
 #endif
98 98
 
99
-#define Y_STEP_PIN         60
100
-#define Y_DIR_PIN          61
101
-#define Y_ENABLE_PIN       56
99
+#define Y_STEP_PIN                            60
100
+#define Y_DIR_PIN                             61
101
+#define Y_ENABLE_PIN                          56
102 102
 #ifndef Y_CS_PIN
103
-  #define Y_CS_PIN         49
103
+  #define Y_CS_PIN                            49
104 104
 #endif
105 105
 
106
-#define Z_STEP_PIN         46
107
-#define Z_DIR_PIN          48
108
-#define Z_ENABLE_PIN       62
106
+#define Z_STEP_PIN                            46
107
+#define Z_DIR_PIN                             48
108
+#define Z_ENABLE_PIN                          62
109 109
 #ifndef Z_CS_PIN
110
-  #define Z_CS_PIN         40
110
+  #define Z_CS_PIN                            40
111 111
 #endif
112 112
 
113
-#define E0_STEP_PIN        26
114
-#define E0_DIR_PIN         28
115
-#define E0_ENABLE_PIN      24
113
+#define E0_STEP_PIN                           26
114
+#define E0_DIR_PIN                            28
115
+#define E0_ENABLE_PIN                         24
116 116
 #ifndef E0_CS_PIN
117
-  #define E0_CS_PIN        42
117
+  #define E0_CS_PIN                           42
118 118
 #endif
119 119
 
120
-#define E1_STEP_PIN        36
121
-#define E1_DIR_PIN         34
122
-#define E1_ENABLE_PIN      30
120
+#define E1_STEP_PIN                           36
121
+#define E1_DIR_PIN                            34
122
+#define E1_ENABLE_PIN                         30
123 123
 #ifndef E1_CS_PIN
124
-  #define E1_CS_PIN        44
124
+  #define E1_CS_PIN                           44
125 125
 #endif
126 126
 
127 127
 //
128 128
 // Temperature Sensors
129 129
 //
130
-#define TEMP_0_PIN          0   // Analog Input
131
-#define TEMP_1_PIN          1   // Analog Input
132
-#define TEMP_BED_PIN        2   // Analog Input
130
+#define TEMP_0_PIN                             0  // Analog Input
131
+#define TEMP_1_PIN                             1  // Analog Input
132
+#define TEMP_BED_PIN                           2  // Analog Input
133 133
 
134 134
 // SPI for Max6675 or Max31855 Thermocouple
135 135
 #if DISABLED(SDSUPPORT)
136
-  #define MAX6675_SS_PIN   66   // Don't use 53 if using Display/SD card
136
+  #define MAX6675_SS_PIN                      66  // Don't use 53 if using Display/SD card
137 137
 #else
138
-  #define MAX6675_SS_PIN   66   // Don't use 49 (SD_DETECT_PIN)
138
+  #define MAX6675_SS_PIN                      66  // Don't use 49 (SD_DETECT_PIN)
139 139
 #endif
140 140
 
141 141
 //
@@ -159,72 +159,72 @@
159 159
 // Heaters / Fans
160 160
 //
161 161
 #ifndef MOSFET_D_PIN
162
-  #define MOSFET_D_PIN     -1
162
+  #define MOSFET_D_PIN                        -1
163 163
 #endif
164 164
 #ifndef RAMPS_D8_PIN
165
-  #define RAMPS_D8_PIN      8
165
+  #define RAMPS_D8_PIN                         8
166 166
 #endif
167 167
 #ifndef RAMPS_D9_PIN
168
-  #define RAMPS_D9_PIN      9
168
+  #define RAMPS_D9_PIN                         9
169 169
 #endif
170 170
 #ifndef RAMPS_D10_PIN
171
-  #define RAMPS_D10_PIN    10
171
+  #define RAMPS_D10_PIN                       10
172 172
 #endif
173 173
 
174
-#define HEATER_0_PIN     RAMPS_D10_PIN
175
-
176
-#if ENABLED(IS_RAMPS_EFB)                      // Hotend, Fan, Bed
177
-  #define FAN_PIN        RAMPS_D9_PIN
178
-  #define HEATER_BED_PIN RAMPS_D8_PIN
179
-#elif ENABLED(IS_RAMPS_EEF)                    // Hotend, Hotend, Fan
180
-  #define HEATER_1_PIN   RAMPS_D9_PIN
181
-  #define FAN_PIN        RAMPS_D8_PIN
182
-#elif ENABLED(IS_RAMPS_EEB)                    // Hotend, Hotend, Bed
183
-  #define HEATER_1_PIN   RAMPS_D9_PIN
184
-  #define HEATER_BED_PIN RAMPS_D8_PIN
185
-#elif ENABLED(IS_RAMPS_EFF)                    // Hotend, Fan, Fan
186
-  #define FAN_PIN        RAMPS_D9_PIN
187
-  #define FAN1_PIN       RAMPS_D8_PIN
188
-#elif ENABLED(IS_RAMPS_SF)                     // Spindle, Fan
189
-  #define FAN_PIN        RAMPS_D8_PIN
190
-#else                                          // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
191
-  #define FAN_PIN        RAMPS_D9_PIN
192
-  #define HEATER_BED_PIN RAMPS_D8_PIN
174
+#define HEATER_0_PIN               RAMPS_D10_PIN
175
+
176
+#if ENABLED(IS_RAMPS_EFB)                         // Hotend, Fan, Bed
177
+  #define FAN_PIN                   RAMPS_D9_PIN
178
+  #define HEATER_BED_PIN            RAMPS_D8_PIN
179
+#elif ENABLED(IS_RAMPS_EEF)                       // Hotend, Hotend, Fan
180
+  #define HEATER_1_PIN              RAMPS_D9_PIN
181
+  #define FAN_PIN                   RAMPS_D8_PIN
182
+#elif ENABLED(IS_RAMPS_EEB)                       // Hotend, Hotend, Bed
183
+  #define HEATER_1_PIN              RAMPS_D9_PIN
184
+  #define HEATER_BED_PIN            RAMPS_D8_PIN
185
+#elif ENABLED(IS_RAMPS_EFF)                       // Hotend, Fan, Fan
186
+  #define FAN_PIN                   RAMPS_D9_PIN
187
+  #define FAN1_PIN                  RAMPS_D8_PIN
188
+#elif ENABLED(IS_RAMPS_SF)                        // Spindle, Fan
189
+  #define FAN_PIN                   RAMPS_D8_PIN
190
+#else                                             // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
191
+  #define FAN_PIN                   RAMPS_D9_PIN
192
+  #define HEATER_BED_PIN            RAMPS_D8_PIN
193 193
   #if HOTENDS == 1
194
-    #define FAN1_PIN     MOSFET_D_PIN
194
+    #define FAN1_PIN                MOSFET_D_PIN
195 195
   #else
196
-    #define HEATER_1_PIN MOSFET_D_PIN
196
+    #define HEATER_1_PIN            MOSFET_D_PIN
197 197
   #endif
198 198
 #endif
199 199
 
200 200
 #ifndef FAN_PIN
201
-  #define FAN_PIN           4   // IO pin. Buffer needed
201
+  #define FAN_PIN                              4  // IO pin. Buffer needed
202 202
 #endif
203 203
 
204 204
 //
205 205
 // Misc. Functions
206 206
 //
207
-#define SDSS               53
208
-#define LED_PIN            13
207
+#define SDSS                                  53
208
+#define LED_PIN                               13
209 209
 
210 210
 #ifndef FILWIDTH_PIN
211
-  #define FILWIDTH_PIN      5   // Analog Input on AUX2
211
+  #define FILWIDTH_PIN                         5  // Analog Input on AUX2
212 212
 #endif
213 213
 
214 214
 // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
215 215
 #ifndef FIL_RUNOUT_PIN
216
-  #define FIL_RUNOUT_PIN    4
216
+  #define FIL_RUNOUT_PIN                       4
217 217
 #endif
218 218
 
219 219
 #ifndef PS_ON_PIN
220
-  #define PS_ON_PIN        12
220
+  #define PS_ON_PIN                           12
221 221
 #endif
222 222
 
223 223
 #if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN) && !defined(SPINDLE_LASER_ENA_PIN)
224
-  #if NUM_SERVOS <= 1 // Prefer the servo connector
225
-    #define CASE_LIGHT_PIN    6   // Hardware PWM
226
-  #elif HAS_FREE_AUX2_PINS        // try to use AUX 2
227
-    #define CASE_LIGHT_PIN   44   // Hardware PWM
224
+  #if NUM_SERVOS <= 1                             // Prefer the servo connector
225
+    #define CASE_LIGHT_PIN                     6  // Hardware PWM
226
+  #elif HAS_FREE_AUX2_PINS                        // try to use AUX 2
227
+    #define CASE_LIGHT_PIN                    44  // Hardware PWM
228 228
   #endif
229 229
 #endif
230 230
 
@@ -232,14 +232,14 @@
232 232
 // M3/M4/M5 - Spindle/Laser Control
233 233
 //
234 234
 #if HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA)
235
-  #if !defined(NUM_SERVOS) || NUM_SERVOS == 0 // Prefer the servo connector
236
-    #define SPINDLE_LASER_ENA_PIN     4   // Pullup or pulldown!
237
-    #define SPINDLE_LASER_PWM_PIN     6   // Hardware PWM
238
-    #define SPINDLE_DIR_PIN           5
239
-  #elif HAS_FREE_AUX2_PINS                // try to use AUX 2
240
-    #define SPINDLE_LASER_ENA_PIN    40   // Pullup or pulldown!
241
-    #define SPINDLE_LASER_PWM_PIN    44   // Hardware PWM
242
-    #define SPINDLE_DIR_PIN          65
235
+  #if !defined(NUM_SERVOS) || NUM_SERVOS == 0     // Prefer the servo connector
236
+    #define SPINDLE_LASER_ENA_PIN              4  // Pullup or pulldown!
237
+    #define SPINDLE_LASER_PWM_PIN              6  // Hardware PWM
238
+    #define SPINDLE_DIR_PIN                    5
239
+  #elif HAS_FREE_AUX2_PINS                        // try to use AUX 2
240
+    #define SPINDLE_LASER_ENA_PIN             40  // Pullup or pulldown!
241
+    #define SPINDLE_LASER_PWM_PIN             44  // Hardware PWM
242
+    #define SPINDLE_DIR_PIN                   65
243 243
   #endif
244 244
 #endif
245 245
 
@@ -247,13 +247,13 @@
247 247
 // Průša i3 MK2 Multiplexer Support
248 248
 //
249 249
 #ifndef E_MUX0_PIN
250
-  #define E_MUX0_PIN 40   // Z_CS_PIN
250
+  #define E_MUX0_PIN                          40  // Z_CS_PIN
251 251
 #endif
252 252
 #ifndef E_MUX1_PIN
253
-  #define E_MUX1_PIN 42   // E0_CS_PIN
253
+  #define E_MUX1_PIN                          42  // E0_CS_PIN
254 254
 #endif
255 255
 #ifndef E_MUX2_PIN
256
-  #define E_MUX2_PIN 44   // E1_CS_PIN
256
+  #define E_MUX2_PIN                          44  // E1_CS_PIN
257 257
 #endif
258 258
 
259 259
 /**
@@ -261,17 +261,17 @@
261 261
  */
262 262
 #if ENABLED(TMC_USE_SW_SPI)
263 263
   #ifndef TMC_SW_MOSI
264
-    #define TMC_SW_MOSI    66
264
+    #define TMC_SW_MOSI                       66
265 265
   #endif
266 266
   #ifndef TMC_SW_MISO
267
-    #define TMC_SW_MISO    44
267
+    #define TMC_SW_MISO                       44
268 268
   #endif
269 269
   #ifndef TMC_SW_SCK
270
-    #define TMC_SW_SCK     64
270
+    #define TMC_SW_SCK                        64
271 271
   #endif
272 272
 #endif
273 273
 
274
-#if HAS_TMC220x
274
+#if HAS_TMC_UART
275 275
   /**
276 276
    * TMC2208/TMC2209 stepper drivers
277 277
    *
@@ -295,91 +295,91 @@
295 295
    */
296 296
 
297 297
   #ifndef X_SERIAL_TX_PIN
298
-    #define X_SERIAL_TX_PIN  40
298
+    #define X_SERIAL_TX_PIN                   40
299 299
   #endif
300 300
   #ifndef X_SERIAL_RX_PIN
301
-    #define X_SERIAL_RX_PIN  63
301
+    #define X_SERIAL_RX_PIN                   63
302 302
   #endif
303 303
   #ifndef X2_SERIAL_TX_PIN
304
-    #define X2_SERIAL_TX_PIN -1
304
+    #define X2_SERIAL_TX_PIN                  -1
305 305
   #endif
306 306
   #ifndef X2_SERIAL_RX_PIN
307
-    #define X2_SERIAL_RX_PIN -1
307
+    #define X2_SERIAL_RX_PIN                  -1
308 308
   #endif
309 309
 
310 310
   #ifndef Y_SERIAL_TX_PIN
311
-    #define Y_SERIAL_TX_PIN  59
311
+    #define Y_SERIAL_TX_PIN                   59
312 312
   #endif
313 313
   #ifndef Y_SERIAL_RX_PIN
314
-    #define Y_SERIAL_RX_PIN  64
314
+    #define Y_SERIAL_RX_PIN                   64
315 315
   #endif
316 316
   #ifndef Y2_SERIAL_TX_PIN
317
-    #define Y2_SERIAL_TX_PIN -1
317
+    #define Y2_SERIAL_TX_PIN                  -1
318 318
   #endif
319 319
   #ifndef Y2_SERIAL_RX_PIN
320
-    #define Y2_SERIAL_RX_PIN -1
320
+    #define Y2_SERIAL_RX_PIN                  -1
321 321
   #endif
322 322
 
323 323
   #ifndef Z_SERIAL_TX_PIN
324
-    #define Z_SERIAL_TX_PIN  42
324
+    #define Z_SERIAL_TX_PIN                   42
325 325
   #endif
326 326
   #ifndef Z_SERIAL_RX_PIN
327
-    #define Z_SERIAL_RX_PIN  65
327
+    #define Z_SERIAL_RX_PIN                   65
328 328
   #endif
329 329
   #ifndef Z2_SERIAL_TX_PIN
330
-    #define Z2_SERIAL_TX_PIN -1
330
+    #define Z2_SERIAL_TX_PIN                  -1
331 331
   #endif
332 332
   #ifndef Z2_SERIAL_RX_PIN
333
-    #define Z2_SERIAL_RX_PIN -1
333
+    #define Z2_SERIAL_RX_PIN                  -1
334 334
   #endif
335 335
 
336 336
   #ifndef E0_SERIAL_TX_PIN
337
-    #define E0_SERIAL_TX_PIN 44
337
+    #define E0_SERIAL_TX_PIN                  44
338 338
   #endif
339 339
   #ifndef E0_SERIAL_RX_PIN
340
-    #define E0_SERIAL_RX_PIN 66
340
+    #define E0_SERIAL_RX_PIN                  66
341 341
   #endif
342 342
   #ifndef E1_SERIAL_TX_PIN
343
-    #define E1_SERIAL_TX_PIN -1
343
+    #define E1_SERIAL_TX_PIN                  -1
344 344
   #endif
345 345
   #ifndef E1_SERIAL_RX_PIN
346
-    #define E1_SERIAL_RX_PIN -1
346
+    #define E1_SERIAL_RX_PIN                  -1
347 347
   #endif
348 348
   #ifndef E2_SERIAL_TX_PIN
349
-    #define E2_SERIAL_TX_PIN -1
349
+    #define E2_SERIAL_TX_PIN                  -1
350 350
   #endif
351 351
   #ifndef E2_SERIAL_RX_PIN
352
-    #define E2_SERIAL_RX_PIN -1
352
+    #define E2_SERIAL_RX_PIN                  -1
353 353
   #endif
354 354
   #ifndef E3_SERIAL_TX_PIN
355
-    #define E3_SERIAL_TX_PIN -1
355
+    #define E3_SERIAL_TX_PIN                  -1
356 356
   #endif
357 357
   #ifndef E3_SERIAL_RX_PIN
358
-    #define E3_SERIAL_RX_PIN -1
358
+    #define E3_SERIAL_RX_PIN                  -1
359 359
   #endif
360 360
   #ifndef E4_SERIAL_TX_PIN
361
-    #define E4_SERIAL_TX_PIN -1
361
+    #define E4_SERIAL_TX_PIN                  -1
362 362
   #endif
363 363
   #ifndef E4_SERIAL_RX_PIN
364
-    #define E4_SERIAL_RX_PIN -1
364
+    #define E4_SERIAL_RX_PIN                  -1
365 365
   #endif
366 366
   #ifndef E5_SERIAL_TX_PIN
367
-    #define E5_SERIAL_TX_PIN -1
367
+    #define E5_SERIAL_TX_PIN                  -1
368 368
   #endif
369 369
   #ifndef E5_SERIAL_RX_PIN
370
-    #define E5_SERIAL_RX_PIN -1
370
+    #define E5_SERIAL_RX_PIN                  -1
371 371
   #endif
372 372
   #ifndef E6_SERIAL_TX_PIN
373
-    #define E6_SERIAL_TX_PIN -1
373
+    #define E6_SERIAL_TX_PIN                  -1
374 374
   #endif
375 375
   #ifndef E6_SERIAL_RX_PIN
376
-    #define E6_SERIAL_RX_PIN -1
376
+    #define E6_SERIAL_RX_PIN                  -1
377 377
   #endif
378 378
   #ifndef E7_SERIAL_TX_PIN
379
-    #define E7_SERIAL_TX_PIN -1
379
+    #define E7_SERIAL_TX_PIN                  -1
380 380
   #endif
381 381
   #ifndef E7_SERIAL_RX_PIN
382
-    #define E7_SERIAL_RX_PIN -1
382
+    #define E7_SERIAL_RX_PIN                  -1
383 383
   #endif
384 384
 #endif
385 385
 
@@ -394,62 +394,62 @@
394 394
   //
395 395
   #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
396 396
 
397
-    #define LCD_PINS_RS         49   // CS chip select /SS chip slave select
398
-    #define LCD_PINS_ENABLE     51   // SID (MOSI)
399
-    #define LCD_PINS_D4         52   // SCK (CLK) clock
397
+    #define LCD_PINS_RS                       49  // CS chip select /SS chip slave select
398
+    #define LCD_PINS_ENABLE                   51  // SID (MOSI)
399
+    #define LCD_PINS_D4                       52  // SCK (CLK) clock
400 400
 
401 401
   #elif BOTH(NEWPANEL, PANEL_ONE)
402 402
 
403
-    #define LCD_PINS_RS         40
404
-    #define LCD_PINS_ENABLE     42
405
-    #define LCD_PINS_D4         65
406
-    #define LCD_PINS_D5         66
407
-    #define LCD_PINS_D6         44
408
-    #define LCD_PINS_D7         64
403
+    #define LCD_PINS_RS                       40
404
+    #define LCD_PINS_ENABLE                   42
405
+    #define LCD_PINS_D4                       65
406
+    #define LCD_PINS_D5                       66
407
+    #define LCD_PINS_D6                       44
408
+    #define LCD_PINS_D7                       64
409 409
 
410 410
   #else
411 411
 
412 412
     #if ENABLED(CR10_STOCKDISPLAY)
413 413
 
414
-      #define LCD_PINS_RS       27
415
-      #define LCD_PINS_ENABLE   29
416
-      #define LCD_PINS_D4       25
414
+      #define LCD_PINS_RS                     27
415
+      #define LCD_PINS_ENABLE                 29
416
+      #define LCD_PINS_D4                     25
417 417
 
418 418
       #if DISABLED(NEWPANEL)
419
-        #define BEEPER_PIN      37
419
+        #define BEEPER_PIN                    37
420 420
       #endif
421 421
 
422 422
     #elif ENABLED(ZONESTAR_LCD)
423 423
 
424
-      #define LCD_PINS_RS       64
425
-      #define LCD_PINS_ENABLE   44
426
-      #define LCD_PINS_D4       63
427
-      #define LCD_PINS_D5       40
428
-      #define LCD_PINS_D6       42
429
-      #define LCD_PINS_D7       65
424
+      #define LCD_PINS_RS                     64
425
+      #define LCD_PINS_ENABLE                 44
426
+      #define LCD_PINS_D4                     63
427
+      #define LCD_PINS_D5                     40
428
+      #define LCD_PINS_D6                     42
429
+      #define LCD_PINS_D7                     65
430 430
 
431 431
     #else
432 432
 
433 433
       #if EITHER(MKS_12864OLED, MKS_12864OLED_SSD1306)
434
-        #define LCD_PINS_DC     25   // Set as output on init
435
-        #define LCD_PINS_RS     27   // Pull low for 1s to init
434
+        #define LCD_PINS_DC                   25  // Set as output on init
435
+        #define LCD_PINS_RS                   27  // Pull low for 1s to init
436 436
         // DOGM SPI LCD Support
437
-        #define DOGLCD_CS       16
438
-        #define DOGLCD_MOSI     17
439
-        #define DOGLCD_SCK      23
440
-        #define DOGLCD_A0       LCD_PINS_DC
437
+        #define DOGLCD_CS                     16
438
+        #define DOGLCD_MOSI                   17
439
+        #define DOGLCD_SCK                    23
440
+        #define DOGLCD_A0            LCD_PINS_DC
441 441
       #else
442
-        #define LCD_PINS_RS     16
443
-        #define LCD_PINS_ENABLE 17
444
-        #define LCD_PINS_D4     23
445
-        #define LCD_PINS_D5     25
446
-        #define LCD_PINS_D6     27
442
+        #define LCD_PINS_RS                   16
443
+        #define LCD_PINS_ENABLE               17
444
+        #define LCD_PINS_D4                   23
445
+        #define LCD_PINS_D5                   25
446
+        #define LCD_PINS_D6                   27
447 447
       #endif
448 448
 
449
-      #define LCD_PINS_D7       29
449
+      #define LCD_PINS_D7                     29
450 450
 
451 451
       #if DISABLED(NEWPANEL)
452
-        #define BEEPER_PIN      33
452
+        #define BEEPER_PIN                    33
453 453
       #endif
454 454
 
455 455
     #endif
@@ -457,10 +457,10 @@
457 457
     #if DISABLED(NEWPANEL)
458 458
       // Buttons attached to a shift register
459 459
       // Not wired yet
460
-      //#define SHIFT_CLK       38
461
-      //#define SHIFT_LD        42
462
-      //#define SHIFT_OUT       40
463
-      //#define SHIFT_EN        17
460
+      //#define SHIFT_CLK                     38
461
+      //#define SHIFT_LD                      42
462
+      //#define SHIFT_OUT                     40
463
+      //#define SHIFT_EN                      17
464 464
     #endif
465 465
 
466 466
   #endif
@@ -472,85 +472,85 @@
472 472
 
473 473
     #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
474 474
 
475
-      #define BEEPER_PIN        37
475
+      #define BEEPER_PIN                      37
476 476
 
477 477
       #if ENABLED(CR10_STOCKDISPLAY)
478
-        #define BTN_EN1         17
479
-        #define BTN_EN2         23
478
+        #define BTN_EN1                       17
479
+        #define BTN_EN2                       23
480 480
       #else
481
-        #define BTN_EN1         31
482
-        #define BTN_EN2         33
481
+        #define BTN_EN1                       31
482
+        #define BTN_EN2                       33
483 483
       #endif
484 484
 
485
-      #define BTN_ENC           35
486
-      #define SD_DETECT_PIN     49
487
-      #define KILL_PIN          41
485
+      #define BTN_ENC                         35
486
+      #define SD_DETECT_PIN                   49
487
+      #define KILL_PIN                        41
488 488
 
489 489
       #if ENABLED(BQ_LCD_SMART_CONTROLLER)
490
-        #define LCD_BACKLIGHT_PIN 39
490
+        #define LCD_BACKLIGHT_PIN             39
491 491
       #endif
492 492
 
493 493
     #elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
494 494
 
495
-      #define BTN_EN1           64
496
-      #define BTN_EN2           59
497
-      #define BTN_ENC           63
498
-      #define SD_DETECT_PIN     42
495
+      #define BTN_EN1                         64
496
+      #define BTN_EN2                         59
497
+      #define BTN_ENC                         63
498
+      #define SD_DETECT_PIN                   42
499 499
 
500 500
     #elif ENABLED(LCD_I2C_PANELOLU2)
501 501
 
502
-      #define BTN_EN1           47
503
-      #define BTN_EN2           43
504
-      #define BTN_ENC           32
505
-      #define LCD_SDSS          SDSS
506
-      #define KILL_PIN          41
502
+      #define BTN_EN1                         47
503
+      #define BTN_EN2                         43
504
+      #define BTN_ENC                         32
505
+      #define LCD_SDSS                      SDSS
506
+      #define KILL_PIN                        41
507 507
 
508 508
     #elif ENABLED(LCD_I2C_VIKI)
509 509
 
510
-      #define BTN_EN1           22   // http://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
511
-      #define BTN_EN2            7   // 22/7 are unused on RAMPS_14. 22 is unused and 7 the SERVO0_PIN on RAMPS_13.
512
-      #define BTN_ENC           -1
510
+      #define BTN_EN1                         22  // http://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
511
+      #define BTN_EN2                          7  // 22/7 are unused on RAMPS_14. 22 is unused and 7 the SERVO0_PIN on RAMPS_13.
512
+      #define BTN_ENC                         -1
513 513
 
514
-      #define LCD_SDSS          SDSS
515
-      #define SD_DETECT_PIN     49
514
+      #define LCD_SDSS                      SDSS
515
+      #define SD_DETECT_PIN                   49
516 516
 
517 517
     #elif ANY(VIKI2, miniVIKI)
518 518
 
519
-      #define DOGLCD_CS         45
520
-      #define DOGLCD_A0         44
519
+      #define DOGLCD_CS                       45
520
+      #define DOGLCD_A0                       44
521 521
       #define LCD_SCREEN_ROT_180
522 522
 
523
-      #define BEEPER_PIN        33
524
-      #define STAT_LED_RED_PIN  32
525
-      #define STAT_LED_BLUE_PIN 35
523
+      #define BEEPER_PIN                      33
524
+      #define STAT_LED_RED_PIN                32
525
+      #define STAT_LED_BLUE_PIN               35
526 526
 
527
-      #define BTN_EN1           22
528
-      #define BTN_EN2            7
529
-      #define BTN_ENC           39
527
+      #define BTN_EN1                         22
528
+      #define BTN_EN2                          7
529
+      #define BTN_ENC                         39
530 530
 
531
-      #define SD_DETECT_PIN     -1   // Pin 49 for display sd interface, 72 for easy adapter board
532
-      #define KILL_PIN          31
531
+      #define SD_DETECT_PIN                   -1  // Pin 49 for display sd interface, 72 for easy adapter board
532
+      #define KILL_PIN                        31
533 533
 
534 534
     #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
535 535
 
536
-      #define DOGLCD_CS         29
537
-      #define DOGLCD_A0         27
536
+      #define DOGLCD_CS                       29
537
+      #define DOGLCD_A0                       27
538 538
 
539
-      #define BEEPER_PIN        23
540
-      #define LCD_BACKLIGHT_PIN 33
539
+      #define BEEPER_PIN                      23
540
+      #define LCD_BACKLIGHT_PIN               33
541 541
 
542
-      #define BTN_EN1           35
543
-      #define BTN_EN2           37
544
-      #define BTN_ENC           31
542
+      #define BTN_EN1                         35
543
+      #define BTN_EN2                         37
544
+      #define BTN_ENC                         31
545 545
 
546
-      #define LCD_SDSS          SDSS
547
-      #define SD_DETECT_PIN     49
548
-      #define KILL_PIN          41
546
+      #define LCD_SDSS                      SDSS
547
+      #define SD_DETECT_PIN                   49
548
+      #define KILL_PIN                        41
549 549
 
550 550
     #elif ENABLED(MKS_MINI_12864)
551 551
 
552
-      #define DOGLCD_A0         27
553
-      #define DOGLCD_CS         25
552
+      #define DOGLCD_A0                       27
553
+      #define DOGLCD_CS                       25
554 554
 
555 555
       // GLCD features
556 556
       // Uncomment screen orientation
@@ -558,25 +558,25 @@
558 558
       //#define LCD_SCREEN_ROT_180
559 559
       //#define LCD_SCREEN_ROT_270
560 560
 
561
-      #define BEEPER_PIN        37
561
+      #define BEEPER_PIN                      37
562 562
       // not connected to a pin
563
-      #define LCD_BACKLIGHT_PIN 65   // backlight LED on A11/D65
563
+      #define LCD_BACKLIGHT_PIN               65  // backlight LED on A11/D65
564 564
 
565
-      #define BTN_EN1           31
566
-      #define BTN_EN2           33
567
-      #define BTN_ENC           35
565
+      #define BTN_EN1                         31
566
+      #define BTN_EN2                         33
567
+      #define BTN_ENC                         35
568 568
 
569
-      #define SD_DETECT_PIN     49
570
-      #define KILL_PIN          64
569
+      #define SD_DETECT_PIN                   49
570
+      #define KILL_PIN                        64
571 571
 
572 572
     #elif ENABLED(MINIPANEL)
573 573
 
574
-      #define BEEPER_PIN        42
574
+      #define BEEPER_PIN                      42
575 575
       // not connected to a pin
576
-      #define LCD_BACKLIGHT_PIN 65   // backlight LED on A11/D65
576
+      #define LCD_BACKLIGHT_PIN               65  // backlight LED on A11/D65
577 577
 
578
-      #define DOGLCD_A0         44
579
-      #define DOGLCD_CS         66
578
+      #define DOGLCD_A0                       44
579
+      #define DOGLCD_CS                       66
580 580
 
581 581
       // GLCD features
582 582
       // Uncomment screen orientation
@@ -584,16 +584,16 @@
584 584
       //#define LCD_SCREEN_ROT_180
585 585
       //#define LCD_SCREEN_ROT_270
586 586
 
587
-      #define BTN_EN1           40
588
-      #define BTN_EN2           63
589
-      #define BTN_ENC           59
587
+      #define BTN_EN1                         40
588
+      #define BTN_EN2                         63
589
+      #define BTN_ENC                         59
590 590
 
591
-      #define SD_DETECT_PIN     49
592
-      #define KILL_PIN          64
591
+      #define SD_DETECT_PIN                   49
592
+      #define KILL_PIN                        64
593 593
 
594 594
     #elif ENABLED(ZONESTAR_LCD)
595 595
 
596
-      #define ADC_KEYPAD_PIN    12
596
+      #define ADC_KEYPAD_PIN                  12
597 597
 
598 598
     #elif ENABLED(AZSMZ_12864)
599 599
 
@@ -602,29 +602,29 @@
602 602
     #else
603 603
 
604 604
       // Beeper on AUX-4
605
-      #define BEEPER_PIN        33
605
+      #define BEEPER_PIN                      33
606 606
 
607 607
       // Buttons are directly attached to AUX-2
608 608
       #if ENABLED(REPRAPWORLD_KEYPAD)
609
-        #define SHIFT_OUT       40
610
-        #define SHIFT_CLK       44
611
-        #define SHIFT_LD        42
612
-        #define BTN_EN1         64
613
-        #define BTN_EN2         59
614
-        #define BTN_ENC         63
609
+        #define SHIFT_OUT                     40
610
+        #define SHIFT_CLK                     44
611
+        #define SHIFT_LD                      42
612
+        #define BTN_EN1                       64
613
+        #define BTN_EN2                       59
614
+        #define BTN_ENC                       63
615 615
       #elif ENABLED(PANEL_ONE)
616
-        #define BTN_EN1         59   // AUX2 PIN 3
617
-        #define BTN_EN2         63   // AUX2 PIN 4
618
-        #define BTN_ENC         49   // AUX3 PIN 7
616
+        #define BTN_EN1                       59  // AUX2 PIN 3
617
+        #define BTN_EN2                       63  // AUX2 PIN 4
618
+        #define BTN_ENC                       49  // AUX3 PIN 7
619 619
       #else
620
-        #define BTN_EN1         37
621
-        #define BTN_EN2         35
622
-        #define BTN_ENC         31
620
+        #define BTN_EN1                       37
621
+        #define BTN_EN2                       35
622
+        #define BTN_ENC                       31
623 623
       #endif
624 624
 
625 625
       #if ENABLED(G3D_PANEL)
626
-        #define SD_DETECT_PIN   49
627
-        #define KILL_PIN        41
626
+        #define SD_DETECT_PIN                 49
627
+        #define KILL_PIN                      41
628 628
       #endif
629 629
 
630 630
     #endif

+ 55
- 55
Marlin/src/pins/lpc1768/pins_AZSMZ_MINI.h Переглянути файл

@@ -40,84 +40,84 @@
40 40
 //
41 41
 // Servos
42 42
 //
43
-#define SERVO0_PIN         P1_23
43
+#define SERVO0_PIN                         P1_23
44 44
 
45 45
 //
46 46
 // Limit Switches
47 47
 //
48
-#define X_MIN_PIN          P1_24
49
-#define Y_MIN_PIN          P1_26
50
-#define Z_MIN_PIN          P1_28
51
-#define Z_MAX_PIN          P1_29
48
+#define X_MIN_PIN                          P1_24
49
+#define Y_MIN_PIN                          P1_26
50
+#define Z_MIN_PIN                          P1_28
51
+#define Z_MAX_PIN                          P1_29
52 52
 
53 53
 //
54 54
 // Steppers
55 55
 //
56
-#define X_STEP_PIN         P2_00
57
-#define X_DIR_PIN          P0_05
58
-#define X_ENABLE_PIN       P0_04
56
+#define X_STEP_PIN                         P2_00
57
+#define X_DIR_PIN                          P0_05
58
+#define X_ENABLE_PIN                       P0_04
59 59
 
60
-#define Y_STEP_PIN         P2_01
61
-#define Y_DIR_PIN          P0_11
62
-#define Y_ENABLE_PIN       P0_10
60
+#define Y_STEP_PIN                         P2_01
61
+#define Y_DIR_PIN                          P0_11
62
+#define Y_ENABLE_PIN                       P0_10
63 63
 
64
-#define Z_STEP_PIN         P2_02
65
-#define Z_DIR_PIN          P0_20
66
-#define Z_ENABLE_PIN       P0_19
64
+#define Z_STEP_PIN                         P2_02
65
+#define Z_DIR_PIN                          P0_20
66
+#define Z_ENABLE_PIN                       P0_19
67 67
 
68
-#define E0_STEP_PIN        P2_03
69
-#define E0_DIR_PIN         P0_22
70
-#define E0_ENABLE_PIN      P0_21
68
+#define E0_STEP_PIN                        P2_03
69
+#define E0_DIR_PIN                         P0_22
70
+#define E0_ENABLE_PIN                      P0_21
71 71
 
72
-#define E1_STEP_PIN        P2_08
73
-#define E1_DIR_PIN         P2_13
74
-#define E1_ENABLE_PIN      P4_29
72
+#define E1_STEP_PIN                        P2_08
73
+#define E1_DIR_PIN                         P2_13
74
+#define E1_ENABLE_PIN                      P4_29
75 75
 
76 76
 //
77 77
 // Temperature Sensors
78 78
 //  3.3V max when defined as an analog input
79 79
 //
80
-#define TEMP_0_PIN          P0_23_A0   // A0 (TH1)
81
-#define TEMP_BED_PIN        P0_24_A1   // A1 (TH2)
82
-#define TEMP_1_PIN          P0_25_A2   // A2 (TH3)
80
+#define TEMP_0_PIN                      P0_23_A0  // A0 (TH1)
81
+#define TEMP_BED_PIN                    P0_24_A1  // A1 (TH2)
82
+#define TEMP_1_PIN                      P0_25_A2  // A2 (TH3)
83 83
 
84 84
 //
85 85
 // Heaters / Fans
86 86
 //
87 87
 // EFB
88
-#define HEATER_0_PIN       P2_04
89
-#define HEATER_BED_PIN     P2_05
88
+#define HEATER_0_PIN                       P2_04
89
+#define HEATER_BED_PIN                     P2_05
90 90
 #ifndef FAN_PIN
91
-  #define FAN_PIN          P2_07
91
+  #define FAN_PIN                          P2_07
92 92
 #endif
93
-#define FAN1_PIN           P0_26
93
+#define FAN1_PIN                           P0_26
94 94
 
95
-#define LCD_SDSS           P0_16   // LCD SD chip select
96
-#define ONBOARD_SD_CS_PIN  P0_06   // Chip select for "System" SD card
95
+#define LCD_SDSS                           P0_16  // LCD SD chip select
96
+#define ONBOARD_SD_CS_PIN                  P0_06  // Chip select for "System" SD card
97 97
 
98 98
 #if ENABLED(AZSMZ_12864)
99
-  #define BEEPER_PIN       P1_30
100
-  #define DOGLCD_A0        P2_06
101
-  #define DOGLCD_CS        P1_22
102
-  #define BTN_EN1          P4_28
103
-  #define BTN_EN2          P1_27
104
-  #define BTN_ENC          P3_26
99
+  #define BEEPER_PIN                       P1_30
100
+  #define DOGLCD_A0                        P2_06
101
+  #define DOGLCD_CS                        P1_22
102
+  #define BTN_EN1                          P4_28
103
+  #define BTN_EN2                          P1_27
104
+  #define BTN_ENC                          P3_26
105 105
   #ifndef SDCARD_CONNECTION
106
-    #define SDCARD_CONNECTION LCD
106
+    #define SDCARD_CONNECTION                LCD
107 107
   #endif
108 108
 #endif
109 109
 
110 110
 #if SD_CONNECTION_IS(LCD)
111
-  #define SCK_PIN          P0_15
112
-  #define MISO_PIN         P0_17
113
-  #define MOSI_PIN         P0_18
114
-  #define SS_PIN           LCD_SDSS
115
-  #define SD_DETECT_PIN    P3_25
111
+  #define SCK_PIN                          P0_15
112
+  #define MISO_PIN                         P0_17
113
+  #define MOSI_PIN                         P0_18
114
+  #define SS_PIN                        LCD_SDSS
115
+  #define SD_DETECT_PIN                    P3_25
116 116
 #elif SD_CONNECTION_IS(ONBOARD)
117
-  #define SCK_PIN          P0_07
118
-  #define MISO_PIN         P0_08
119
-  #define MOSI_PIN         P0_09
120
-  #define SS_PIN           ONBOARD_SD_CS_PIN
117
+  #define SCK_PIN                          P0_07
118
+  #define MISO_PIN                         P0_08
119
+  #define MOSI_PIN                         P0_09
120
+  #define SS_PIN               ONBOARD_SD_CS_PIN
121 121
 #elif SD_CONNECTION_IS(CUSTOM_CABLE)
122 122
   #error "No custom SD drive cable defined for this board."
123 123
 #endif
@@ -125,16 +125,16 @@
125 125
 //
126 126
 // Ethernet pins
127 127
 //
128
-#define ENET_MDIO          P1_17
129
-#define ENET_RX_ER         P1_14
130
-#define ENET_RXD1          P1_10
131
-#define ENET_MOC           P1_16
132
-#define REF_CLK            P1_15
133
-#define ENET_RXD0          P1_09
134
-#define ENET_CRS           P1_08
135
-#define ENET_TX_EN         P1_04
136
-#define ENET_TXD0          P1_00
137
-#define ENET_TXD1          P1_01
128
+#define ENET_MDIO                          P1_17
129
+#define ENET_RX_ER                         P1_14
130
+#define ENET_RXD1                          P1_10
131
+#define ENET_MOC                           P1_16
132
+#define REF_CLK                            P1_15
133
+#define ENET_RXD0                          P1_09
134
+#define ENET_CRS                           P1_08
135
+#define ENET_TX_EN                         P1_04
136
+#define ENET_TXD0                          P1_00
137
+#define ENET_TXD1                          P1_01
138 138
 
139 139
 /**
140 140
  *  PWMs

+ 45
- 45
Marlin/src/pins/lpc1768/pins_BIQU_B300_V1.0.h Переглянути файл

@@ -47,42 +47,42 @@
47 47
 //
48 48
 // Limit Switches
49 49
 //
50
-#define X_MIN_PIN          P1_24   // 10k pullup to 3.3V, 1K series
51
-#define X_MAX_PIN          P1_25   // 10k pullup to 3.3V, 1K series
52
-#define Y_MIN_PIN          P1_26   // 10k pullup to 3.3V, 1K series
53
-#define Y_MAX_PIN          P1_27   // 10k pullup to 3.3V, 1K series
54
-#define Z_MIN_PIN          P1_28   // 10k pullup to 3.3V, 1K series
55
-#define Z_MAX_PIN          P1_29   // 10k pullup to 3.3V, 1K series
50
+#define X_MIN_PIN                          P1_24  // 10k pullup to 3.3V, 1K series
51
+#define X_MAX_PIN                          P1_25  // 10k pullup to 3.3V, 1K series
52
+#define Y_MIN_PIN                          P1_26  // 10k pullup to 3.3V, 1K series
53
+#define Y_MAX_PIN                          P1_27  // 10k pullup to 3.3V, 1K series
54
+#define Z_MIN_PIN                          P1_28  // 10k pullup to 3.3V, 1K series
55
+#define Z_MAX_PIN                          P1_29  // 10k pullup to 3.3V, 1K series
56 56
 
57 57
 //
58 58
 // Steppers
59 59
 //
60
-#define X_STEP_PIN         P2_00
61
-#define X_DIR_PIN          P0_05
62
-#define X_ENABLE_PIN       P0_04
60
+#define X_STEP_PIN                         P2_00
61
+#define X_DIR_PIN                          P0_05
62
+#define X_ENABLE_PIN                       P0_04
63 63
 #ifndef X_CS_PIN
64
-  #define X_CS_PIN         P1_15   // ETH
64
+  #define X_CS_PIN                         P1_15  // ETH
65 65
 #endif
66 66
 
67
-#define Y_STEP_PIN         P2_01
68
-#define Y_DIR_PIN          P0_11
69
-#define Y_ENABLE_PIN       P0_10
67
+#define Y_STEP_PIN                         P2_01
68
+#define Y_DIR_PIN                          P0_11
69
+#define Y_ENABLE_PIN                       P0_10
70 70
 #ifndef Y_CS_PIN
71
-  #define Y_CS_PIN         P1_14   // ETH
71
+  #define Y_CS_PIN                         P1_14  // ETH
72 72
 #endif
73 73
 
74
-#define Z_STEP_PIN         P2_02
75
-#define Z_DIR_PIN          P0_20
76
-#define Z_ENABLE_PIN       P0_19
74
+#define Z_STEP_PIN                         P2_02
75
+#define Z_DIR_PIN                          P0_20
76
+#define Z_ENABLE_PIN                       P0_19
77 77
 #ifndef Z_CS_PIN
78
-  #define Z_CS_PIN         P1_16   // ETH
78
+  #define Z_CS_PIN                         P1_16  // ETH
79 79
 #endif
80 80
 
81
-#define E0_STEP_PIN        P2_03
82
-#define E0_DIR_PIN         P0_22
83
-#define E0_ENABLE_PIN      P0_21
81
+#define E0_STEP_PIN                        P2_03
82
+#define E0_DIR_PIN                         P0_22
83
+#define E0_ENABLE_PIN                      P0_21
84 84
 #ifndef E0_CS_PIN
85
-  #define E0_CS_PIN        P1_17   // ETH
85
+  #define E0_CS_PIN                        P1_17  // ETH
86 86
 #endif
87 87
 
88 88
 //
@@ -90,13 +90,13 @@
90 90
 //
91 91
 #if ENABLED(TMC_USE_SW_SPI)
92 92
   #ifndef TMC_SW_MOSI
93
-    #define TMC_SW_MOSI    P0_18   // ETH
93
+    #define TMC_SW_MOSI                    P0_18  // ETH
94 94
   #endif
95 95
   #ifndef TMC_SW_MISO
96
-    #define TMC_SW_MISO    P0_17   // ETH
96
+    #define TMC_SW_MISO                    P0_17  // ETH
97 97
   #endif
98 98
   #ifndef TMC_SW_SCK
99
-    #define TMC_SW_SCK     P0_15   // ETH
99
+    #define TMC_SW_SCK                     P0_15  // ETH
100 100
   #endif
101 101
 #endif
102 102
 
@@ -104,23 +104,23 @@
104 104
 // Temperature Sensors
105 105
 //  3.3V max when defined as an analog input
106 106
 //
107
-#define TEMP_0_PIN          P0_24_A1   // A0 (T0)
108
-#define TEMP_BED_PIN        P0_23_A0   // A1 (T1)
107
+#define TEMP_0_PIN                      P0_24_A1  // A0 (T0)
108
+#define TEMP_BED_PIN                    P0_23_A0  // A1 (T1)
109 109
 
110 110
 //
111 111
 // Heaters / Fans
112 112
 //
113
-#define HEATER_0_PIN       P2_07
114
-#define HEATER_BED_PIN     P2_05
113
+#define HEATER_0_PIN                       P2_07
114
+#define HEATER_BED_PIN                     P2_05
115 115
 #ifndef FAN_PIN
116
-  #define FAN_PIN          P2_04
116
+  #define FAN_PIN                          P2_04
117 117
 #endif
118 118
 
119 119
 //
120 120
 // Unused
121 121
 //
122
-//#define PIN_P2_10        P2_10   // IBOOT-1
123
-//#define PIN_P0_27        P0_27   // Onboard SD Detect
122
+//#define PIN_P2_10                        P2_10  // IBOOT-1
123
+//#define PIN_P0_27                        P0_27  // Onboard SD Detect
124 124
 
125 125
 /**
126 126
  * LCD / Controller
@@ -134,16 +134,16 @@
134 134
  */
135 135
 #if HAS_SPI_LCD
136 136
 
137
-  #define BEEPER_PIN       P1_31   // EXP1-1
137
+  #define BEEPER_PIN                       P1_31  // EXP1-1
138 138
 
139
-  #define BTN_EN1          P3_26   // EXP2-3
140
-  #define BTN_EN2          P3_25   // EXP2-5
141
-  #define BTN_ENC          P1_30   // EXP1-2
139
+  #define BTN_EN1                          P3_26  // EXP2-3
140
+  #define BTN_EN2                          P3_25  // EXP2-5
141
+  #define BTN_ENC                          P1_30  // EXP1-2
142 142
 
143
-  #define SD_DETECT_PIN    P0_27   // EXP2-7
144
-  #define LCD_PINS_RS      P0_16   // EXP1-4
145
-  #define LCD_PINS_ENABLE  P0_18   // (MOSI) EXP1-3
146
-  #define LCD_PINS_D4      P0_15   // (SCK)  EXP1-5
143
+  #define SD_DETECT_PIN                    P0_27  // EXP2-7
144
+  #define LCD_PINS_RS                      P0_16  // EXP1-4
145
+  #define LCD_PINS_ENABLE                  P0_18  // (MOSI) EXP1-3
146
+  #define LCD_PINS_D4                      P0_15  // (SCK)  EXP1-5
147 147
 
148 148
   #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) && HAS_CHARACTER_LCD
149 149
     #error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU B300 v1.0"
@@ -162,11 +162,11 @@
162 162
  * Hardware SPI can't be used because P0_17 (MISO) is not brought out on this board.
163 163
  */
164 164
 #if ENABLED(SDSUPPORT)
165
-  #define SCK_PIN          P0_15   // EXP1-5
166
-  #define MISO_PIN         P0_16   // EXP1-4
167
-  #define MOSI_PIN         P0_18   // EXP1-3
168
-  #define SS_PIN           P1_30   // EXP1-2
169
-  #define SDSS             SS_PIN
165
+  #define SCK_PIN                          P0_15  // EXP1-5
166
+  #define MISO_PIN                         P0_16  // EXP1-4
167
+  #define MOSI_PIN                         P0_18  // EXP1-3
168
+  #define SS_PIN                           P1_30  // EXP1-2
169
+  #define SDSS                            SS_PIN
170 170
 #endif
171 171
 
172 172
 /**

+ 38
- 43
Marlin/src/pins/lpc1768/pins_BIQU_BQ111_A4.h Переглянути файл

@@ -45,56 +45,53 @@
45 45
 //
46 46
 // Limit Switches
47 47
 //
48
-#define X_MIN_PIN         P1_24   // 10k pullup to 3.3V, 1K series
49
-#define X_MAX_PIN         P1_25   // 10k pullup to 3.3V, 1K series
50
-#define Y_MIN_PIN         P1_26   // 10k pullup to 3.3V, 1K series
51
-#define Y_MAX_PIN         P1_27   // 10k pullup to 3.3V, 1K series
52
-#define Z_MIN_PIN         P1_28   // 10k pullup to 3.3V, 1K series
53
-#define Z_MAX_PIN         P1_29   // 10k pullup to 3.3V, 1K series
54
-
48
+#define X_MIN_PIN                          P1_24  // 10k pullup to 3.3V, 1K series
49
+#define X_MAX_PIN                          P1_25  // 10k pullup to 3.3V, 1K series
50
+#define Y_MIN_PIN                          P1_26  // 10k pullup to 3.3V, 1K series
51
+#define Y_MAX_PIN                          P1_27  // 10k pullup to 3.3V, 1K series
52
+#define Z_MIN_PIN                          P1_28  // 10k pullup to 3.3V, 1K series
53
+#define Z_MAX_PIN                          P1_29  // 10k pullup to 3.3V, 1K series
55 54
 
56 55
 //
57 56
 // Steppers
58 57
 //
59
-#define X_STEP_PIN         P2_0
60
-#define X_DIR_PIN          P0_5
61
-#define X_ENABLE_PIN       P0_4
62
-
63
-#define Y_STEP_PIN         P2_1
64
-#define Y_DIR_PIN          P0_11
65
-#define Y_ENABLE_PIN       P0_10
58
+#define X_STEP_PIN                         P2_0
59
+#define X_DIR_PIN                          P0_5
60
+#define X_ENABLE_PIN                       P0_4
66 61
 
67
-#define Z_STEP_PIN         P2_2
68
-#define Z_DIR_PIN          P0_20
69
-#define Z_ENABLE_PIN       P0_19
62
+#define Y_STEP_PIN                         P2_1
63
+#define Y_DIR_PIN                          P0_11
64
+#define Y_ENABLE_PIN                       P0_10
70 65
 
71
-#define E0_STEP_PIN        P2_3
72
-#define E0_DIR_PIN         P0_22
73
-#define E0_ENABLE_PIN      P0_21
66
+#define Z_STEP_PIN                         P2_2
67
+#define Z_DIR_PIN                          P0_20
68
+#define Z_ENABLE_PIN                       P0_19
74 69
 
70
+#define E0_STEP_PIN                        P2_3
71
+#define E0_DIR_PIN                         P0_22
72
+#define E0_ENABLE_PIN                      P0_21
75 73
 
76 74
 //
77 75
 // Temperature Sensors
78 76
 //  3.3V max when defined as an analog input
79 77
 //
80
-#define TEMP_0_PIN          P0_23_A0   // A0 (T0)
81
-#define TEMP_BED_PIN        P0_24_A1   // A1 (T1)
82
-
78
+#define TEMP_0_PIN                      P0_23_A0  // A0 (T0)
79
+#define TEMP_BED_PIN                    P0_24_A1  // A1 (T1)
83 80
 
84 81
 //
85 82
 // Heaters / Fans
86 83
 //
87
-#define HEATER_0_PIN       P2_7
88
-#define HEATER_BED_PIN     P2_5
84
+#define HEATER_0_PIN                       P2_7
85
+#define HEATER_BED_PIN                     P2_5
89 86
 #ifndef FAN_PIN
90
-  #define FAN_PIN          P2_4
87
+  #define FAN_PIN                          P2_4
91 88
 #endif
92 89
 
93 90
 //
94 91
 // Unused
95 92
 //
96
-//#define PIN_P2_10         P2_10   // IBOOT-1
97
-//#define PIN_P0_27         P0_27   // Onboard SD Detect
93
+//#define PIN_P2_10                        P2_10  // IBOOT-1
94
+//#define PIN_P0_27                        P0_27  // Onboard SD Detect
98 95
 
99 96
 /**
100 97
  * LCD / Controller
@@ -108,16 +105,16 @@
108 105
  */
109 106
 #if HAS_SPI_LCD
110 107
 
111
-  #define BEEPER_PIN          P1_31   // EXP1-1
108
+  #define BEEPER_PIN                       P1_31  // EXP1-1
112 109
 
113
-  #define BTN_EN1             P3_26   // EXP2-3
114
-  #define BTN_EN2             P3_25   // EXP2-5
115
-  #define BTN_ENC             P1_30   // EXP1-2
110
+  #define BTN_EN1                          P3_26  // EXP2-3
111
+  #define BTN_EN2                          P3_25  // EXP2-5
112
+  #define BTN_ENC                          P1_30  // EXP1-2
116 113
 
117
-  #define SD_DETECT_PIN       P0_27   // EXP2-7
118
-  #define LCD_PINS_RS         P0_16   // EXP1-4
119
-  #define LCD_PINS_ENABLE     P0_18   // (MOSI) EXP1-3
120
-  #define LCD_PINS_D4         P0_15   // (SCK)  EXP1-5
114
+  #define SD_DETECT_PIN                    P0_27  // EXP2-7
115
+  #define LCD_PINS_RS                      P0_16  // EXP1-4
116
+  #define LCD_PINS_ENABLE                  P0_18  // (MOSI) EXP1-3
117
+  #define LCD_PINS_D4                      P0_15  // (SCK)  EXP1-5
121 118
 
122 119
   #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) && HAS_CHARACTER_LCD
123 120
     #error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU BQ111-A4"
@@ -129,7 +126,6 @@
129 126
 
130 127
 #endif // HAS_SPI_LCD
131 128
 
132
-
133 129
 /**
134 130
  * SD Card Reader
135 131
  *
@@ -138,15 +134,14 @@
138 134
  */
139 135
 #if ENABLED(SDSUPPORT)
140 136
 
141
-  #define SCK_PIN   P0_15   // EXP1-5
142
-  #define MISO_PIN  P0_16   // EXP1-4
143
-  #define MOSI_PIN  P0_18   // EXP1-3
144
-  #define SS_PIN    P1_30   // EXP1-2
145
-  #define SDSS      SS_PIN
137
+  #define SCK_PIN                          P0_15  // EXP1-5
138
+  #define MISO_PIN                         P0_16  // EXP1-4
139
+  #define MOSI_PIN                         P0_18  // EXP1-3
140
+  #define SS_PIN                           P1_30  // EXP1-2
141
+  #define SDSS                            SS_PIN
146 142
 
147 143
 #endif // SDSUPPORT
148 144
 
149
-
150 145
 /**
151 146
  *  PWMS
152 147
  *

+ 68
- 69
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_1.h Переглянути файл

@@ -33,31 +33,31 @@
33 33
 // Limit Switches
34 34
 //
35 35
 
36
-#define X_MIN_PIN          P1_29
37
-#define X_MAX_PIN          P1_28
38
-#define Y_MIN_PIN          P1_27
39
-#define Y_MAX_PIN          P1_26
40
-#define Z_MIN_PIN          P1_25
41
-#define Z_MAX_PIN          P1_24
36
+#define X_MIN_PIN                          P1_29
37
+#define X_MAX_PIN                          P1_28
38
+#define Y_MIN_PIN                          P1_27
39
+#define Y_MAX_PIN                          P1_26
40
+#define Z_MIN_PIN                          P1_25
41
+#define Z_MAX_PIN                          P1_24
42 42
 
43 43
 //
44 44
 // Steppers
45 45
 //
46
-#define X_STEP_PIN         P0_04
47
-#define X_DIR_PIN          P0_05
48
-#define X_ENABLE_PIN       P4_28
46
+#define X_STEP_PIN                         P0_04
47
+#define X_DIR_PIN                          P0_05
48
+#define X_ENABLE_PIN                       P4_28
49 49
 
50
-#define Y_STEP_PIN         P2_01
51
-#define Y_DIR_PIN          P2_02
52
-#define Y_ENABLE_PIN       P2_00
50
+#define Y_STEP_PIN                         P2_01
51
+#define Y_DIR_PIN                          P2_02
52
+#define Y_ENABLE_PIN                       P2_00
53 53
 
54
-#define Z_STEP_PIN         P0_20
55
-#define Z_DIR_PIN          P0_21
56
-#define Z_ENABLE_PIN       P0_19
54
+#define Z_STEP_PIN                         P0_20
55
+#define Z_DIR_PIN                          P0_21
56
+#define Z_ENABLE_PIN                       P0_19
57 57
 
58
-#define E0_STEP_PIN        P0_11
59
-#define E0_DIR_PIN         P2_13
60
-#define E0_ENABLE_PIN      P2_12
58
+#define E0_STEP_PIN                        P0_11
59
+#define E0_DIR_PIN                         P2_13
60
+#define E0_ENABLE_PIN                      P2_12
61 61
 
62 62
 /**
63 63
  * LCD / Controller
@@ -73,19 +73,19 @@
73 73
  */
74 74
 
75 75
 #if HAS_SPI_LCD
76
-  #define BTN_EN1          P3_26
77
-  #define BTN_EN2          P3_25
78
-  #define BTN_ENC          P2_11
76
+  #define BTN_EN1                          P3_26
77
+  #define BTN_EN2                          P3_25
78
+  #define BTN_ENC                          P2_11
79 79
 
80
-  #define SD_DETECT_PIN    P1_31
81
-  #define LCD_SDSS         P1_23
82
-  #define LCD_PINS_RS      P0_16
83
-  #define LCD_PINS_ENABLE  P0_18
84
-  #define LCD_PINS_D4      P0_15
80
+  #define SD_DETECT_PIN                    P1_31
81
+  #define LCD_SDSS                         P1_23
82
+  #define LCD_PINS_RS                      P0_16
83
+  #define LCD_PINS_ENABLE                  P0_18
84
+  #define LCD_PINS_D4                      P0_15
85 85
 
86 86
   #if ENABLED(MKS_MINI_12864)
87
-    #define DOGLCD_CS      P2_06
88
-    #define DOGLCD_A0      P0_16
87
+    #define DOGLCD_CS                      P2_06
88
+    #define DOGLCD_A0                      P0_16
89 89
   #endif
90 90
 #endif
91 91
 
@@ -97,14 +97,14 @@
97 97
 // https://www.facebook.com/groups/505736576548648/permalink/630639874058317/
98 98
 #ifndef SDCARD_CONNECTION
99 99
   #if EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
100
-    #define SDCARD_CONNECTION LCD
100
+    #define SDCARD_CONNECTION                LCD
101 101
   #else
102
-    #define SDCARD_CONNECTION ONBOARD
102
+    #define SDCARD_CONNECTION            ONBOARD
103 103
   #endif
104 104
 #endif
105 105
 
106 106
 #if SD_CONNECTION_IS(LCD)
107
-  #define SS_PIN           P1_23
107
+  #define SS_PIN                           P1_23
108 108
 #endif
109 109
 
110 110
 // Trinamic driver support
@@ -137,49 +137,48 @@
137 137
   // When using any TMC SPI-based drivers, software SPI is used
138 138
   // because pins may be shared with the display or SD card.
139 139
   #define TMC_USE_SW_SPI
140
-  #define TMC_SW_MOSI       P0_18
141
-  #define TMC_SW_MISO       P0_17
140
+  #define TMC_SW_MOSI                      P0_18
141
+  #define TMC_SW_MISO                      P0_17
142 142
   // To minimize pin usage use the same clock pin as the display/SD card reader. (May generate LCD noise.)
143
-  #define TMC_SW_SCK        P0_15
143
+  #define TMC_SW_SCK                       P0_15
144 144
   // If pin 2_06 is unused, it can be used for the clock to avoid the LCD noise.
145
-  //#define TMC_SW_SCK        P2_06
145
+  //#define TMC_SW_SCK                     P2_06
146 146
 
147 147
   #if ENABLED(SOFTWARE_DRIVER_ENABLE)
148 148
 
149 149
     // Software enable allows the enable pins to be repurposed as chip-select pins.
150 150
     // Note: Requires the driver modules to be modified to always be enabled with the enable pin removed.
151 151
     #if AXIS_DRIVER_TYPE_X(TMC2130)
152
-      #define X_CS_PIN         P4_28
153
-      #undef  X_ENABLE_PIN
154
-      #define X_ENABLE_PIN     -1
152
+      #define X_CS_PIN                     P4_28
153
+      #undef X_ENABLE_PIN
154
+      #define X_ENABLE_PIN                 -1
155 155
     #endif
156 156
 
157 157
     #if AXIS_DRIVER_TYPE_Y(TMC2130)
158
-      #define Y_CS_PIN         P2_00
159
-      #undef  Y_ENABLE_PIN
160
-      #define Y_ENABLE_PIN     -1
158
+      #define Y_CS_PIN                     P2_00
159
+      #undef Y_ENABLE_PIN
160
+      #define Y_ENABLE_PIN                 -1
161 161
     #endif
162 162
 
163 163
     #if AXIS_DRIVER_TYPE_Z(TMC2130)
164
-      #define Z_CS_PIN         P0_19
165
-      #undef  Z_ENABLE_PIN
166
-      #define Z_ENABLE_PIN     -1
164
+      #define Z_CS_PIN                     P0_19
165
+      #undef Z_ENABLE_PIN
166
+      #define Z_ENABLE_PIN                 -1
167 167
     #endif
168 168
 
169 169
     #if AXIS_DRIVER_TYPE_E0(TMC2130)
170
-      #define E0_CS_PIN        P2_12
171
-      #undef  E0_ENABLE_PIN
172
-      #define E0_ENABLE_PIN    -1
170
+      #define E0_CS_PIN                    P2_12
171
+      #undef E0_ENABLE_PIN
172
+      #define E0_ENABLE_PIN                -1
173 173
     #endif
174 174
 
175
-
176 175
     #if AXIS_DRIVER_TYPE_E1(TMC2130)
177
-      #define E1_CS_PIN        P0_10
178
-      #undef  E1_ENABLE_PIN
179
-      #define E1_ENABLE_PIN    -1
176
+      #define E1_CS_PIN                    P0_10
177
+      #undef E1_ENABLE_PIN
178
+      #define E1_ENABLE_PIN                -1
180 179
     #endif
181 180
 
182
-  #else // !SOFTWARE_DRIVER_ENABLE
181
+  #else                                           // !SOFTWARE_DRIVER_ENABLE
183 182
 
184 183
     // A chip-select pin is needed for each driver.
185 184
 
@@ -192,11 +191,11 @@
192 191
       #if SD_CONNECTION_IS(LCD)
193 192
         #error "SDCARD_CONNECTION must not be 'LCD' with SKR_USE_LCD_PINS_FOR_CS."
194 193
       #endif
195
-      #define X_CS_PIN      P1_23
196
-      #define Y_CS_PIN      P3_26
197
-      #define Z_CS_PIN      P2_11
198
-      #define E0_CS_PIN     P3_25
199
-      #define E1_CS_PIN     P1_31
194
+      #define X_CS_PIN                     P1_23
195
+      #define Y_CS_PIN                     P3_26
196
+      #define Z_CS_PIN                     P2_11
197
+      #define E0_CS_PIN                    P3_25
198
+      #define E1_CS_PIN                    P1_31
200 199
     #endif
201 200
 
202 201
     // Example 2: A REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
@@ -207,16 +206,16 @@
207 206
       #if SD_CONNECTION_IS(LCD)
208 207
         #error "SDCARD_CONNECTION must not be 'LCD' with SKR_USE_LCD_SD_CARD_PINS_FOR_CS."
209 208
       #endif
210
-      #define X_CS_PIN      P0_02
211
-      #define Y_CS_PIN      P0_03
212
-      #define Z_CS_PIN      P2_06
209
+      #define X_CS_PIN                     P0_02
210
+      #define Y_CS_PIN                     P0_03
211
+      #define Z_CS_PIN                     P2_06
213 212
       // We use SD_DETECT_PIN for E0
214 213
       #undef SD_DETECT_PIN
215
-      #define E0_CS_PIN     P1_31
214
+      #define E0_CS_PIN                    P1_31
216 215
       // We use LCD_SDSS pin for E1
217
-      #undef  LCD_SDSS
218
-      #define LCD_SDSS      -1
219
-      #define E1_CS_PIN     P1_23
216
+      #undef LCD_SDSS
217
+      #define LCD_SDSS                     -1
218
+      #define E1_CS_PIN                    P1_23
220 219
     #endif
221 220
 
222 221
     // Example 3: Use the driver enable pins for chip-select.
@@ -224,11 +223,11 @@
224 223
     //            advanced features (like driver monitoring) will not be available.
225 224
     //#define SKR_USE_ENABLE_CS
226 225
     #if ENABLED(SKR_USE_ENABLE_FOR_CS)
227
-      #define X_CS_PIN      X_ENABLE_PIN
228
-      #define Y_CS_PIN      Y_ENABLE_PIN
229
-      #define Z_CS_PIN      Z_ENABLE_PIN
230
-      #define E0_CS_PIN     E0_ENABLE_PIN
231
-      #define E1_CS_PIN     E1_ENABLE_PIN
226
+      #define X_CS_PIN              X_ENABLE_PIN
227
+      #define Y_CS_PIN              Y_ENABLE_PIN
228
+      #define Z_CS_PIN              Z_ENABLE_PIN
229
+      #define E0_CS_PIN            E0_ENABLE_PIN
230
+      #define E1_CS_PIN            E1_ENABLE_PIN
232 231
     #endif
233 232
 
234 233
   #endif // SOFTWARE_DRIVER_ENABLE

+ 123
- 123
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h Переглянути файл

@@ -32,107 +32,107 @@
32 32
 /**
33 33
  * Trinamic Stallguard pins
34 34
  */
35
-#define X_DIAG_PIN           P1_29   // X-
36
-#define Y_DIAG_PIN           P1_27   // Y-
37
-#define Z_DIAG_PIN           P1_25   // Z-
38
-#define E0_DIAG_PIN          P1_28   // X+
39
-#define E1_DIAG_PIN          P1_26   // Y+
35
+#define X_DIAG_PIN                         P1_29  // X-
36
+#define Y_DIAG_PIN                         P1_27  // Y-
37
+#define Z_DIAG_PIN                         P1_25  // Z-
38
+#define E0_DIAG_PIN                        P1_28  // X+
39
+#define E1_DIAG_PIN                        P1_26  // Y+
40 40
 
41 41
 /**
42 42
  * Limit Switches
43 43
  */
44 44
 #if X_STALL_SENSITIVITY
45
-  #define X_STOP_PIN         X_DIAG_PIN
45
+  #define X_STOP_PIN                  X_DIAG_PIN
46 46
   #if X_HOME_DIR < 0
47
-    #define X_MAX_PIN        P1_28   // X+
47
+    #define X_MAX_PIN                      P1_28  // X+
48 48
   #else
49
-    #define X_MIN_PIN        P1_28   // X+
49
+    #define X_MIN_PIN                      P1_28  // X+
50 50
   #endif
51 51
 #else
52
-  #define X_MIN_PIN          P1_29   // X-
53
-  #define X_MAX_PIN          P1_28   // X+
52
+  #define X_MIN_PIN                        P1_29  // X-
53
+  #define X_MAX_PIN                        P1_28  // X+
54 54
 #endif
55 55
 
56 56
 #if Y_STALL_SENSITIVITY
57
-  #define Y_STOP_PIN         Y_DIAG_PIN
57
+  #define Y_STOP_PIN                  Y_DIAG_PIN
58 58
   #if Y_HOME_DIR < 0
59
-    #define Y_MAX_PIN        P1_26   // Y+
59
+    #define Y_MAX_PIN                      P1_26  // Y+
60 60
   #else
61
-    #define Y_MIN_PIN        P1_26   // Y+
61
+    #define Y_MIN_PIN                      P1_26  // Y+
62 62
   #endif
63 63
 #else
64
-  #define Y_MIN_PIN          P1_27   // Y-
65
-  #define Y_MAX_PIN          P1_26   // Y+
64
+  #define Y_MIN_PIN                        P1_27  // Y-
65
+  #define Y_MAX_PIN                        P1_26  // Y+
66 66
 #endif
67 67
 
68 68
 #if Z_STALL_SENSITIVITY
69
-  #define Z_STOP_PIN         Z_DIAG_PIN
69
+  #define Z_STOP_PIN                  Z_DIAG_PIN
70 70
   #if Z_HOME_DIR < 0
71
-    #define Z_MAX_PIN        P1_24   // Z+
71
+    #define Z_MAX_PIN                      P1_24  // Z+
72 72
   #else
73
-    #define Z_MIN_PIN        P1_24   // Z+
73
+    #define Z_MIN_PIN                      P1_24  // Z+
74 74
   #endif
75 75
 #else
76
-  #define Z_MIN_PIN          P1_25   // Z-
77
-  #define Z_MAX_PIN          P1_24   // Z+
76
+  #define Z_MIN_PIN                        P1_25  // Z-
77
+  #define Z_MAX_PIN                        P1_24  // Z+
78 78
 #endif
79 79
 
80
-#define ONBOARD_ENDSTOPPULLUPS     // Board has built-in pullups
80
+#define ONBOARD_ENDSTOPPULLUPS                    // Board has built-in pullups
81 81
 
82 82
 //
83 83
 // Servos
84 84
 //
85 85
 #ifndef SERVO0_PIN
86
-  #define SERVO0_PIN       P2_00
86
+  #define SERVO0_PIN                       P2_00
87 87
 #endif
88 88
 
89 89
 //
90 90
 // Z Probe (when not Z_MIN_PIN)
91 91
 //
92 92
 #ifndef Z_MIN_PROBE_PIN
93
-  #define Z_MIN_PROBE_PIN  P1_24
93
+  #define Z_MIN_PROBE_PIN                  P1_24
94 94
 #endif
95 95
 
96 96
 //
97 97
 // Filament Runout Sensor
98 98
 //
99 99
 #ifndef FIL_RUNOUT_PIN
100
-  #define FIL_RUNOUT_PIN   P1_28
100
+  #define FIL_RUNOUT_PIN                   P1_28
101 101
 #endif
102 102
 
103 103
 //
104 104
 // Steppers
105 105
 //
106
-#define X_STEP_PIN         P2_02
107
-#define X_DIR_PIN          P2_06
108
-#define X_ENABLE_PIN       P2_01
106
+#define X_STEP_PIN                         P2_02
107
+#define X_DIR_PIN                          P2_06
108
+#define X_ENABLE_PIN                       P2_01
109 109
 #ifndef X_CS_PIN
110
-  #define X_CS_PIN         P1_17
110
+  #define X_CS_PIN                         P1_17
111 111
 #endif
112 112
 
113
-#define Y_STEP_PIN         P0_19
114
-#define Y_DIR_PIN          P0_20
115
-#define Y_ENABLE_PIN       P2_08
113
+#define Y_STEP_PIN                         P0_19
114
+#define Y_DIR_PIN                          P0_20
115
+#define Y_ENABLE_PIN                       P2_08
116 116
 #ifndef Y_CS_PIN
117
-  #define Y_CS_PIN         P1_15
117
+  #define Y_CS_PIN                         P1_15
118 118
 #endif
119 119
 
120
-#define Z_STEP_PIN         P0_22
121
-#define Z_DIR_PIN          P2_11
122
-#define Z_ENABLE_PIN       P0_21
120
+#define Z_STEP_PIN                         P0_22
121
+#define Z_DIR_PIN                          P2_11
122
+#define Z_ENABLE_PIN                       P0_21
123 123
 #ifndef Z_CS_PIN
124
-  #define Z_CS_PIN         P1_10
124
+  #define Z_CS_PIN                         P1_10
125 125
 #endif
126 126
 
127
-#define E0_STEP_PIN        P2_13
128
-#define E0_DIR_PIN         P0_11
129
-#define E0_ENABLE_PIN      P2_12
127
+#define E0_STEP_PIN                        P2_13
128
+#define E0_DIR_PIN                         P0_11
129
+#define E0_ENABLE_PIN                      P2_12
130 130
 #ifndef E0_CS_PIN
131
-  #define E0_CS_PIN        P1_08
131
+  #define E0_CS_PIN                        P1_08
132 132
 #endif
133 133
 
134 134
 #ifndef E1_CS_PIN
135
-  #define E1_CS_PIN        P1_01
135
+  #define E1_CS_PIN                        P1_01
136 136
 #endif
137 137
 
138 138
 //
@@ -140,17 +140,17 @@
140 140
 //
141 141
 #if ENABLED(TMC_USE_SW_SPI)
142 142
   #ifndef TMC_SW_MOSI
143
-    #define TMC_SW_MOSI    P4_28
143
+    #define TMC_SW_MOSI                    P4_28
144 144
   #endif
145 145
   #ifndef TMC_SW_MISO
146
-    #define TMC_SW_MISO    P0_05
146
+    #define TMC_SW_MISO                    P0_05
147 147
   #endif
148 148
   #ifndef TMC_SW_SCK
149
-    #define TMC_SW_SCK     P0_04
149
+    #define TMC_SW_SCK                     P0_04
150 150
   #endif
151 151
 #endif
152 152
 
153
-#if HAS_TMC220x
153
+#if HAS_TMC_UART
154 154
   /**
155 155
    * TMC2208/TMC2209 stepper drivers
156 156
    *
@@ -172,20 +172,20 @@
172 172
   //
173 173
   // Software serial
174 174
   //
175
-  #define X_SERIAL_TX_PIN  P4_29
176
-  #define X_SERIAL_RX_PIN  P1_17
175
+  #define X_SERIAL_TX_PIN                  P4_29
176
+  #define X_SERIAL_RX_PIN                  P1_17
177 177
 
178
-  #define Y_SERIAL_TX_PIN  P1_16
179
-  #define Y_SERIAL_RX_PIN  P1_15
178
+  #define Y_SERIAL_TX_PIN                  P1_16
179
+  #define Y_SERIAL_RX_PIN                  P1_15
180 180
 
181
-  #define Z_SERIAL_TX_PIN  P1_14
182
-  #define Z_SERIAL_RX_PIN  P1_10
181
+  #define Z_SERIAL_TX_PIN                  P1_14
182
+  #define Z_SERIAL_RX_PIN                  P1_10
183 183
 
184
-  #define E0_SERIAL_TX_PIN P1_09
185
-  #define E0_SERIAL_RX_PIN P1_08
184
+  #define E0_SERIAL_TX_PIN                 P1_09
185
+  #define E0_SERIAL_RX_PIN                 P1_08
186 186
 
187
-  #define E1_SERIAL_TX_PIN P1_04
188
-  #define E1_SERIAL_RX_PIN P1_01
187
+  #define E1_SERIAL_TX_PIN                 P1_04
188
+  #define E1_SERIAL_RX_PIN                 P1_01
189 189
 
190 190
   // Reduce baud rate to improve software serial reliability
191 191
   #define TMC_BAUD_RATE 19200
@@ -202,23 +202,23 @@
202 202
  *               EXP2                                               EXP1
203 203
  */
204 204
 
205
-#define EXPA1_03_PIN        P1_23
206
-#define EXPA1_04_PIN        P1_22
207
-#define EXPA1_05_PIN        P1_21
208
-#define EXPA1_06_PIN        P1_20
209
-#define EXPA1_07_PIN        P1_19
210
-#define EXPA1_08_PIN        P1_18
211
-#define EXPA1_09_PIN        P0_28
212
-#define EXPA1_10_PIN        P1_30
213
-
214
-#define EXPA2_03_PIN        -1
215
-#define EXPA2_04_PIN        P1_31
216
-#define EXPA2_05_PIN        P0_18
217
-#define EXPA2_06_PIN        P3_25
218
-#define EXPA2_07_PIN        P0_16
219
-#define EXPA2_08_PIN        P3_26
220
-#define EXPA2_09_PIN        P0_15
221
-#define EXPA2_10_PIN        P0_17
205
+#define EXPA1_03_PIN                       P1_23
206
+#define EXPA1_04_PIN                       P1_22
207
+#define EXPA1_05_PIN                       P1_21
208
+#define EXPA1_06_PIN                       P1_20
209
+#define EXPA1_07_PIN                       P1_19
210
+#define EXPA1_08_PIN                       P1_18
211
+#define EXPA1_09_PIN                       P0_28
212
+#define EXPA1_10_PIN                       P1_30
213
+
214
+#define EXPA2_03_PIN                       -1
215
+#define EXPA2_04_PIN                       P1_31
216
+#define EXPA2_05_PIN                       P0_18
217
+#define EXPA2_06_PIN                       P3_25
218
+#define EXPA2_07_PIN                       P0_16
219
+#define EXPA2_08_PIN                       P3_26
220
+#define EXPA2_09_PIN                       P0_15
221
+#define EXPA2_10_PIN                       P0_17
222 222
 
223 223
 #if HAS_SPI_LCD
224 224
 
@@ -247,75 +247,75 @@
247 247
     *                   LCD                             LCD
248 248
     */
249 249
 
250
-    #define LCD_PINS_RS    EXPA1_03_PIN
250
+    #define LCD_PINS_RS             EXPA1_03_PIN
251 251
 
252
-    #define BTN_EN1        EXPA1_06_PIN
253
-    #define BTN_EN2        EXPA1_04_PIN
254
-    #define BTN_ENC        EXPA1_08_PIN
252
+    #define BTN_EN1                 EXPA1_06_PIN
253
+    #define BTN_EN2                 EXPA1_04_PIN
254
+    #define BTN_ENC                 EXPA1_08_PIN
255 255
 
256
-    #define LCD_PINS_ENABLE EXPA1_05_PIN
257
-    #define LCD_PINS_D4    EXPA1_07_PIN
256
+    #define LCD_PINS_ENABLE         EXPA1_05_PIN
257
+    #define LCD_PINS_D4             EXPA1_07_PIN
258 258
 
259 259
   #elif ENABLED(CR10_STOCKDISPLAY)
260 260
 
261
-    #define LCD_PINS_RS    EXPA1_04_PIN
261
+    #define LCD_PINS_RS             EXPA1_04_PIN
262 262
 
263
-    #define BTN_EN1        EXPA1_08_PIN
264
-    #define BTN_EN2        EXPA1_06_PIN
265
-    #define BTN_ENC        EXPA1_09_PIN   // (58) open-drain
263
+    #define BTN_EN1                 EXPA1_08_PIN
264
+    #define BTN_EN2                 EXPA1_06_PIN
265
+    #define BTN_ENC                 EXPA1_09_PIN  // (58) open-drain
266 266
 
267
-    #define LCD_PINS_ENABLE EXPA1_03_PIN
268
-    #define LCD_PINS_D4    EXPA1_05_PIN
267
+    #define LCD_PINS_ENABLE         EXPA1_03_PIN
268
+    #define LCD_PINS_D4             EXPA1_05_PIN
269 269
 
270
-  #else // !CR10_STOCKDISPLAY
270
+  #else                                           // !CR10_STOCKDISPLAY
271 271
 
272
-    #define LCD_PINS_RS    EXPA1_07_PIN
272
+    #define LCD_PINS_RS             EXPA1_07_PIN
273 273
 
274
-    #define BTN_EN1        EXPA2_08_PIN   // (31) J3-2 & AUX-4
275
-    #define BTN_EN2        EXPA2_06_PIN   // (33) J3-4 & AUX-4
276
-    #define BTN_ENC        EXPA1_09_PIN   // (58) open-drain
274
+    #define BTN_EN1                 EXPA2_08_PIN  // (31) J3-2 & AUX-4
275
+    #define BTN_EN2                 EXPA2_06_PIN  // (33) J3-4 & AUX-4
276
+    #define BTN_ENC                 EXPA1_09_PIN  // (58) open-drain
277 277
 
278
-    #define LCD_PINS_ENABLE EXPA1_08_PIN
279
-    #define LCD_PINS_D4    EXPA1_06_PIN
278
+    #define LCD_PINS_ENABLE         EXPA1_08_PIN
279
+    #define LCD_PINS_D4             EXPA1_06_PIN
280 280
 
281
-    #define LCD_SDSS       EXPA2_07_PIN   // (16) J3-7 & AUX-4
282
-    #define SD_DETECT_PIN  EXPA2_04_PIN   // (49) (NOT 5V tolerant)
281
+    #define LCD_SDSS                EXPA2_07_PIN  // (16) J3-7 & AUX-4
282
+    #define SD_DETECT_PIN           EXPA2_04_PIN  // (49) (NOT 5V tolerant)
283 283
 
284 284
     #if ENABLED(FYSETC_MINI_12864)
285
-      #define DOGLCD_CS    EXPA1_08_PIN
286
-      #define DOGLCD_A0    EXPA1_07_PIN
287
-      #define DOGLCD_SCK   EXPA2_09_PIN
288
-      #define DOGLCD_MOSI  EXPA2_05_PIN
285
+      #define DOGLCD_CS             EXPA1_08_PIN
286
+      #define DOGLCD_A0             EXPA1_07_PIN
287
+      #define DOGLCD_SCK            EXPA2_09_PIN
288
+      #define DOGLCD_MOSI           EXPA2_05_PIN
289 289
 
290
-      #define LCD_BACKLIGHT_PIN -1
290
+      #define LCD_BACKLIGHT_PIN            -1
291 291
 
292
-      #define FORCE_SOFT_SPI      // Use this if default of hardware SPI causes display problems
293
-                                  //   results in LCD soft SPI mode 3, SD soft SPI mode 0
292
+      #define FORCE_SOFT_SPI                      // Use this if default of hardware SPI causes display problems
293
+                                                  //   results in LCD soft SPI mode 3, SD soft SPI mode 0
294 294
 
295
-      #define LCD_RESET_PIN EXPA1_06_PIN   // Must be high or open for LCD to operate normally.
295
+      #define LCD_RESET_PIN         EXPA1_06_PIN  // Must be high or open for LCD to operate normally.
296 296
 
297 297
       #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
298 298
         #ifndef RGB_LED_R_PIN
299
-          #define RGB_LED_R_PIN EXPA1_05_PIN
299
+          #define RGB_LED_R_PIN     EXPA1_05_PIN
300 300
         #endif
301 301
         #ifndef RGB_LED_G_PIN
302
-          #define RGB_LED_G_PIN EXPA1_04_PIN
302
+          #define RGB_LED_G_PIN     EXPA1_04_PIN
303 303
         #endif
304 304
         #ifndef RGB_LED_B_PIN
305
-          #define RGB_LED_B_PIN EXPA1_03_PIN
305
+          #define RGB_LED_B_PIN     EXPA1_03_PIN
306 306
         #endif
307 307
       #elif ENABLED(FYSETC_MINI_12864_2_1)
308
-        #define NEOPIXEL_PIN    EXPA1_05_PIN
308
+        #define NEOPIXEL_PIN        EXPA1_05_PIN
309 309
       #endif
310 310
 
311
-    #else // !FYSETC_MINI_12864
311
+    #else                                         // !FYSETC_MINI_12864
312 312
 
313 313
       #if ENABLED(MKS_MINI_12864)
314 314
 
315
-        #define DOGLCD_CS    EXPA1_05_PIN
316
-        #define DOGLCD_A0    EXPA1_04_PIN
317
-        #define DOGLCD_SCK   EXPA2_09_PIN
318
-        #define DOGLCD_MOSI  EXPA2_05_PIN
315
+        #define DOGLCD_CS           EXPA1_05_PIN
316
+        #define DOGLCD_A0           EXPA1_04_PIN
317
+        #define DOGLCD_SCK          EXPA2_09_PIN
318
+        #define DOGLCD_MOSI         EXPA2_05_PIN
319 319
 
320 320
       #elif ENABLED(ENDER2_STOCKDISPLAY)
321 321
 
@@ -331,21 +331,21 @@
331 331
          *                    EXP1
332 332
          */
333 333
 
334
-        #define BTN_EN1      EXPA1_08_PIN
335
-        #define BTN_EN2      EXPA1_06_PIN
336
-        #define BTN_ENC      EXPA1_09_PIN
337
-        #define DOGLCD_CS    EXPA1_04_PIN
338
-        #define DOGLCD_A0    EXPA1_05_PIN
339
-        #define DOGLCD_SCK   EXPA1_10_PIN
340
-        #define DOGLCD_MOSI  EXPA1_03_PIN
334
+        #define BTN_EN1             EXPA1_08_PIN
335
+        #define BTN_EN2             EXPA1_06_PIN
336
+        #define BTN_ENC             EXPA1_09_PIN
337
+        #define DOGLCD_CS           EXPA1_04_PIN
338
+        #define DOGLCD_A0           EXPA1_05_PIN
339
+        #define DOGLCD_SCK          EXPA1_10_PIN
340
+        #define DOGLCD_MOSI         EXPA1_03_PIN
341 341
         #define FORCE_SOFT_SPI
342
-        #define LCD_BACKLIGHT_PIN -1
342
+        #define LCD_BACKLIGHT_PIN          -1
343 343
       #endif
344 344
 
345 345
       #if ENABLED(ULTIPANEL)
346
-        #define LCD_PINS_D5 EXPA1_05_PIN
347
-        #define LCD_PINS_D6 EXPA1_04_PIN
348
-        #define LCD_PINS_D7 EXPA1_03_PIN
346
+        #define LCD_PINS_D5         EXPA1_05_PIN
347
+        #define LCD_PINS_D6         EXPA1_04_PIN
348
+        #define LCD_PINS_D7         EXPA1_03_PIN
349 349
       #endif
350 350
 
351 351
     #endif // !FYSETC_MINI_12864
@@ -359,11 +359,11 @@
359 359
 //
360 360
 
361 361
 #ifndef SDCARD_CONNECTION
362
-  #define SDCARD_CONNECTION LCD
362
+  #define SDCARD_CONNECTION                  LCD
363 363
 #endif
364 364
 
365 365
 #if SD_CONNECTION_IS(LCD)
366
-  #define SS_PIN           EXPA2_07_PIN
366
+  #define SS_PIN                    EXPA2_07_PIN
367 367
 #endif
368 368
 
369 369
 /**

+ 104
- 104
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h Переглянути файл

@@ -37,58 +37,58 @@
37 37
 // SD Connection
38 38
 //
39 39
 #ifndef SDCARD_CONNECTION
40
-  #define SDCARD_CONNECTION LCD
40
+  #define SDCARD_CONNECTION                  LCD
41 41
 #endif
42 42
 
43 43
 //
44 44
 // Servos
45 45
 //
46
-#define SERVO0_PIN         P2_00
46
+#define SERVO0_PIN                         P2_00
47 47
 
48 48
 //
49 49
 // TMC StallGuard DIAG pins
50 50
 //
51
-#define X_DIAG_PIN         P1_29   // X-STOP
52
-#define Y_DIAG_PIN         P1_28   // Y-STOP
53
-#define Z_DIAG_PIN         P1_27   // Z-STOP
54
-#define E0_DIAG_PIN        P1_26   // E0DET
55
-#define E1_DIAG_PIN        P1_25   // E1DET
51
+#define X_DIAG_PIN                         P1_29  // X-STOP
52
+#define Y_DIAG_PIN                         P1_28  // Y-STOP
53
+#define Z_DIAG_PIN                         P1_27  // Z-STOP
54
+#define E0_DIAG_PIN                        P1_26  // E0DET
55
+#define E1_DIAG_PIN                        P1_25  // E1DET
56 56
 
57 57
 //
58 58
 // Limit Switches
59 59
 //
60 60
 #if X_STALL_SENSITIVITY
61
-  #define X_STOP_PIN       X_DIAG_PIN
61
+  #define X_STOP_PIN                  X_DIAG_PIN
62 62
   #if X_HOME_DIR < 0
63
-    #define X_MAX_PIN      P1_26   // E0DET
63
+    #define X_MAX_PIN                      P1_26  // E0DET
64 64
   #else
65
-    #define X_MIN_PIN      P1_26   // E0DET
65
+    #define X_MIN_PIN                      P1_26  // E0DET
66 66
   #endif
67 67
 #else
68
-  #define X_STOP_PIN       P1_29   // X-STOP
68
+  #define X_STOP_PIN                       P1_29  // X-STOP
69 69
 #endif
70 70
 
71 71
 #if Y_STALL_SENSITIVITY
72
-  #define Y_STOP_PIN       Y_DIAG_PIN
72
+  #define Y_STOP_PIN                  Y_DIAG_PIN
73 73
   #if Y_HOME_DIR < 0
74
-    #define Y_MAX_PIN      P1_25   // E1DET
74
+    #define Y_MAX_PIN                      P1_25  // E1DET
75 75
   #else
76
-    #define Y_MIN_PIN      P1_25   // E1DET
76
+    #define Y_MIN_PIN                      P1_25  // E1DET
77 77
   #endif
78 78
 #else
79
-  #define Y_STOP_PIN       P1_28   // Y-STOP
79
+  #define Y_STOP_PIN                       P1_28  // Y-STOP
80 80
 #endif
81 81
 
82 82
 #if Z_STALL_SENSITIVITY
83
-  #define Z_STOP_PIN       Z_DIAG_PIN
83
+  #define Z_STOP_PIN                  Z_DIAG_PIN
84 84
   #if Z_HOME_DIR < 0
85
-    #define Z_MAX_PIN      P1_00   // PWRDET
85
+    #define Z_MAX_PIN                      P1_00  // PWRDET
86 86
   #else
87
-    #define Z_MIN_PIN      P1_00   // PWRDET
87
+    #define Z_MIN_PIN                      P1_00  // PWRDET
88 88
   #endif
89 89
 #else
90 90
   #ifndef Z_STOP_PIN
91
-    #define Z_STOP_PIN     P1_27   // Z-STOP
91
+    #define Z_STOP_PIN                     P1_27  // Z-STOP
92 92
   #endif
93 93
 #endif
94 94
 
@@ -96,86 +96,86 @@
96 96
 // Z Probe (when not Z_MIN_PIN)
97 97
 //
98 98
 #ifndef Z_MIN_PROBE_PIN
99
-  #define Z_MIN_PROBE_PIN  P0_10
99
+  #define Z_MIN_PROBE_PIN                  P0_10
100 100
 #endif
101 101
 
102 102
 //
103 103
 // Filament Runout Sensor
104 104
 //
105
-#define FIL_RUNOUT_PIN     P1_26   // E0DET
106
-#define FIL_RUNOUT2_PIN    P1_25   // E1DET
105
+#define FIL_RUNOUT_PIN                     P1_26  // E0DET
106
+#define FIL_RUNOUT2_PIN                    P1_25  // E1DET
107 107
 
108 108
 //
109 109
 // Power Supply Control
110 110
 //
111 111
 #ifndef PS_ON_PIN
112
-  #define PS_ON_PIN        P1_00   // PWRDET
112
+  #define PS_ON_PIN                        P1_00  // PWRDET
113 113
 #endif
114 114
 
115 115
 //
116 116
 // Power Loss Detection
117 117
 //
118 118
 #ifndef POWER_LOSS_PIN
119
-  #define POWER_LOSS_PIN   P1_00   // PWRDET
119
+  #define POWER_LOSS_PIN                   P1_00  // PWRDET
120 120
 #endif
121 121
 
122 122
 //
123 123
 // Steppers
124 124
 //
125
-#define X_STEP_PIN         P2_02
126
-#define X_DIR_PIN          P2_06
127
-#define X_ENABLE_PIN       P2_01
125
+#define X_STEP_PIN                         P2_02
126
+#define X_DIR_PIN                          P2_06
127
+#define X_ENABLE_PIN                       P2_01
128 128
 #ifndef X_CS_PIN
129
-  #define X_CS_PIN         P1_10
129
+  #define X_CS_PIN                         P1_10
130 130
 #endif
131 131
 
132
-#define Y_STEP_PIN         P0_19
133
-#define Y_DIR_PIN          P0_20
134
-#define Y_ENABLE_PIN       P2_08
132
+#define Y_STEP_PIN                         P0_19
133
+#define Y_DIR_PIN                          P0_20
134
+#define Y_ENABLE_PIN                       P2_08
135 135
 #ifndef Y_CS_PIN
136
-  #define Y_CS_PIN         P1_09
136
+  #define Y_CS_PIN                         P1_09
137 137
 #endif
138 138
 
139
-#define Z_STEP_PIN         P0_22
140
-#define Z_DIR_PIN          P2_11
141
-#define Z_ENABLE_PIN       P0_21
139
+#define Z_STEP_PIN                         P0_22
140
+#define Z_DIR_PIN                          P2_11
141
+#define Z_ENABLE_PIN                       P0_21
142 142
 #ifndef Z_CS_PIN
143
-  #define Z_CS_PIN         P1_08
143
+  #define Z_CS_PIN                         P1_08
144 144
 #endif
145 145
 
146
-#define E0_STEP_PIN        P2_13
147
-#define E0_DIR_PIN         P0_11
148
-#define E0_ENABLE_PIN      P2_12
146
+#define E0_STEP_PIN                        P2_13
147
+#define E0_DIR_PIN                         P0_11
148
+#define E0_ENABLE_PIN                      P2_12
149 149
 #ifndef E0_CS_PIN
150
-  #define E0_CS_PIN        P1_04
150
+  #define E0_CS_PIN                        P1_04
151 151
 #endif
152 152
 
153
-#define E1_STEP_PIN        P1_15
154
-#define E1_DIR_PIN         P1_14
155
-#define E1_ENABLE_PIN      P1_16
153
+#define E1_STEP_PIN                        P1_15
154
+#define E1_DIR_PIN                         P1_14
155
+#define E1_ENABLE_PIN                      P1_16
156 156
 #ifndef E1_CS_PIN
157
-  #define E1_CS_PIN        P1_01
157
+  #define E1_CS_PIN                        P1_01
158 158
 #endif
159 159
 
160
-#define TEMP_1_PIN         P0_23_A0   // A2 (T2) - (69) - TEMP_1_PIN
161
-#define TEMP_BED_PIN       P0_25_A2   // A0 (T0) - (67) - TEMP_BED_PIN
160
+#define TEMP_1_PIN                      P0_23_A0  // A2 (T2) - (69) - TEMP_1_PIN
161
+#define TEMP_BED_PIN                    P0_25_A2  // A0 (T0) - (67) - TEMP_BED_PIN
162 162
 
163 163
 //
164 164
 // Software SPI pins for TMC2130 stepper drivers
165 165
 //
166 166
 #if ENABLED(TMC_USE_SW_SPI)
167 167
   #ifndef TMC_SW_MOSI
168
-    #define TMC_SW_MOSI    P1_17
168
+    #define TMC_SW_MOSI                    P1_17
169 169
   #endif
170 170
   #ifndef TMC_SW_MISO
171
-    #define TMC_SW_MISO    P0_05
171
+    #define TMC_SW_MISO                    P0_05
172 172
   #endif
173 173
   #ifndef TMC_SW_SCK
174
-    #define TMC_SW_SCK     P0_04
174
+    #define TMC_SW_SCK                     P0_04
175 175
   #endif
176 176
 #endif
177 177
 
178
-#if HAS_TMC220x
178
+#if HAS_TMC_UART
179 179
   /**
180 180
    * TMC2208/TMC2209 stepper drivers
181 181
    *
@@ -197,23 +197,23 @@
197 197
   //
198 198
   // Software serial
199 199
   //
200
-  #define X_SERIAL_TX_PIN  P1_10
201
-  #define X_SERIAL_RX_PIN  P1_10
200
+  #define X_SERIAL_TX_PIN                  P1_10
201
+  #define X_SERIAL_RX_PIN                  P1_10
202 202
 
203
-  #define Y_SERIAL_TX_PIN  P1_09
204
-  #define Y_SERIAL_RX_PIN  P1_09
203
+  #define Y_SERIAL_TX_PIN                  P1_09
204
+  #define Y_SERIAL_RX_PIN                  P1_09
205 205
 
206
-  #define Z_SERIAL_TX_PIN  P1_08
207
-  #define Z_SERIAL_RX_PIN  P1_08
206
+  #define Z_SERIAL_TX_PIN                  P1_08
207
+  #define Z_SERIAL_RX_PIN                  P1_08
208 208
 
209
-  #define E0_SERIAL_TX_PIN P1_04
210
-  #define E0_SERIAL_RX_PIN P1_04
209
+  #define E0_SERIAL_TX_PIN                 P1_04
210
+  #define E0_SERIAL_RX_PIN                 P1_04
211 211
 
212
-  #define E1_SERIAL_TX_PIN P1_01
213
-  #define E1_SERIAL_RX_PIN P1_01
212
+  #define E1_SERIAL_TX_PIN                 P1_01
213
+  #define E1_SERIAL_RX_PIN                 P1_01
214 214
 
215
-  #define Z2_SERIAL_TX_PIN P1_01
216
-  #define Z2_SERIAL_RX_PIN P1_01
215
+  #define Z2_SERIAL_TX_PIN                 P1_01
216
+  #define Z2_SERIAL_RX_PIN                 P1_01
217 217
 
218 218
   // Reduce baud rate to improve software serial reliability
219 219
   #define TMC_BAUD_RATE 19200
@@ -223,7 +223,7 @@
223 223
 // SD Connection
224 224
 //
225 225
 #if SD_CONNECTION_IS(LCD)
226
-  #define SS_PIN           P0_16
226
+  #define SS_PIN                           P0_16
227 227
 #endif
228 228
 
229 229
 /**
@@ -239,82 +239,82 @@
239 239
 #if HAS_SPI_LCD
240 240
   #if ENABLED(ANET_FULL_GRAPHICS_LCD)
241 241
 
242
-    #define LCD_PINS_RS    P1_23
242
+    #define LCD_PINS_RS                    P1_23
243 243
 
244
-    #define BTN_EN1        P1_20
245
-    #define BTN_EN2        P1_22
246
-    #define BTN_ENC        P1_18
244
+    #define BTN_EN1                        P1_20
245
+    #define BTN_EN2                        P1_22
246
+    #define BTN_ENC                        P1_18
247 247
 
248
-    #define LCD_PINS_ENABLE P1_21
249
-    #define LCD_PINS_D4    P1_19
248
+    #define LCD_PINS_ENABLE                P1_21
249
+    #define LCD_PINS_D4                    P1_19
250 250
 
251 251
   #elif ENABLED(CR10_STOCKDISPLAY)
252
-    #define BTN_ENC        P0_28   // (58) open-drain
253
-    #define LCD_PINS_RS    P1_22
252
+    #define BTN_ENC                        P0_28  // (58) open-drain
253
+    #define LCD_PINS_RS                    P1_22
254 254
 
255
-    #define BTN_EN1        P1_18
256
-    #define BTN_EN2        P1_20
255
+    #define BTN_EN1                        P1_18
256
+    #define BTN_EN2                        P1_20
257 257
 
258
-    #define LCD_PINS_ENABLE P1_23
259
-    #define LCD_PINS_D4    P1_21
258
+    #define LCD_PINS_ENABLE                P1_23
259
+    #define LCD_PINS_D4                    P1_21
260 260
 
261 261
   #else
262
-    #define BTN_ENC        P0_28   // (58) open-drain
263
-    #define LCD_PINS_RS    P1_19
262
+    #define BTN_ENC                        P0_28  // (58) open-drain
263
+    #define LCD_PINS_RS                    P1_19
264 264
 
265
-    #define BTN_EN1        P3_26   // (31) J3-2 & AUX-4
266
-    #define BTN_EN2        P3_25   // (33) J3-4 & AUX-4
265
+    #define BTN_EN1                        P3_26  // (31) J3-2 & AUX-4
266
+    #define BTN_EN2                        P3_25  // (33) J3-4 & AUX-4
267 267
 
268
-    #define LCD_PINS_ENABLE P1_18
269
-    #define LCD_PINS_D4    P1_20
268
+    #define LCD_PINS_ENABLE                P1_18
269
+    #define LCD_PINS_D4                    P1_20
270 270
 
271
-    #define LCD_SDSS       P0_16   // (16) J3-7 & AUX-4
271
+    #define LCD_SDSS                       P0_16  // (16) J3-7 & AUX-4
272 272
 
273 273
     #if SD_CONNECTION_IS(LCD)
274
-      #define SD_DETECT_PIN P1_31  // (49) (NOT 5V tolerant)
274
+      #define SD_DETECT_PIN                P1_31  // (49) (NOT 5V tolerant)
275 275
     #endif
276 276
 
277 277
     #if ENABLED(FYSETC_MINI_12864)
278
-      #define DOGLCD_CS    P1_18
279
-      #define DOGLCD_A0    P1_19
280
-      #define DOGLCD_SCK   P0_15
281
-      #define DOGLCD_MOSI  P0_18
278
+      #define DOGLCD_CS                    P1_18
279
+      #define DOGLCD_A0                    P1_19
280
+      #define DOGLCD_SCK                   P0_15
281
+      #define DOGLCD_MOSI                  P0_18
282 282
 
283
-      #define LCD_BACKLIGHT_PIN -1
283
+      #define LCD_BACKLIGHT_PIN            -1
284 284
 
285
-      #define FORCE_SOFT_SPI      // Use this if default of hardware SPI causes display problems
286
-                                  //   results in LCD soft SPI mode 3, SD soft SPI mode 0
285
+      #define FORCE_SOFT_SPI                      // Use this if default of hardware SPI causes display problems
286
+                                                  //   results in LCD soft SPI mode 3, SD soft SPI mode 0
287 287
 
288
-      #define LCD_RESET_PIN P1_20   // Must be high or open for LCD to operate normally.
288
+      #define LCD_RESET_PIN                P1_20  // Must be high or open for LCD to operate normally.
289 289
 
290 290
       #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
291 291
         #ifndef RGB_LED_R_PIN
292
-          #define RGB_LED_R_PIN P1_21
292
+          #define RGB_LED_R_PIN            P1_21
293 293
         #endif
294 294
         #ifndef RGB_LED_G_PIN
295
-          #define RGB_LED_G_PIN P1_22
295
+          #define RGB_LED_G_PIN            P1_22
296 296
         #endif
297 297
         #ifndef RGB_LED_B_PIN
298
-          #define RGB_LED_B_PIN P1_23
298
+          #define RGB_LED_B_PIN            P1_23
299 299
         #endif
300 300
       #elif ENABLED(FYSETC_MINI_12864_2_1)
301
-        #define NEOPIXEL_PIN    P1_21
301
+        #define NEOPIXEL_PIN               P1_21
302 302
       #endif
303 303
 
304
-    #else // !FYSETC_MINI_12864
304
+    #else                                         // !FYSETC_MINI_12864
305 305
 
306 306
       #if ENABLED(MKS_MINI_12864)
307
-        #define DOGLCD_CS   P1_21
308
-        #define DOGLCD_A0   P1_22
309
-        #define DOGLCD_SCK  P0_15
310
-        #define DOGLCD_MOSI P0_18
307
+        #define DOGLCD_CS                  P1_21
308
+        #define DOGLCD_A0                  P1_22
309
+        #define DOGLCD_SCK                 P0_15
310
+        #define DOGLCD_MOSI                P0_18
311 311
         #define FORCE_SOFT_SPI
312 312
       #endif
313 313
 
314 314
       #if ENABLED(ULTIPANEL)
315
-        #define LCD_PINS_D5 P1_21
316
-        #define LCD_PINS_D6 P1_22
317
-        #define LCD_PINS_D7 P1_23
315
+        #define LCD_PINS_D5                P1_21
316
+        #define LCD_PINS_D6                P1_22
317
+        #define LCD_PINS_D7                P1_23
318 318
       #endif
319 319
 
320 320
     #endif // !FYSETC_MINI_12864
@@ -327,7 +327,7 @@
327 327
 // Neopixel LED
328 328
 //
329 329
 #ifndef NEOPIXEL_PIN
330
-  #define NEOPIXEL_PIN      P1_24
330
+  #define NEOPIXEL_PIN                     P1_24
331 331
 #endif
332 332
 
333 333
 /**

+ 22
- 22
Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h Переглянути файл

@@ -40,13 +40,13 @@
40 40
 // Steppers
41 41
 //
42 42
 #ifndef E1_STEP_PIN
43
-  #define E1_STEP_PIN      P0_01
43
+  #define E1_STEP_PIN                      P0_01
44 44
 #endif
45 45
 #ifndef E1_DIR_PIN
46
-  #define E1_DIR_PIN       P0_00
46
+  #define E1_DIR_PIN                       P0_00
47 47
 #endif
48 48
 #ifndef E1_ENABLE_PIN
49
-  #define E1_ENABLE_PIN    P0_10
49
+  #define E1_ENABLE_PIN                    P0_10
50 50
 #endif
51 51
 
52 52
 //
@@ -54,64 +54,64 @@
54 54
 //  3.3V max when defined as an analog input
55 55
 //
56 56
 #ifndef TEMP_0_PIN
57
-  #define TEMP_0_PIN       P0_24_A1   // A1 (T1) - (68) - TEMP_0_PIN
57
+  #define TEMP_0_PIN                    P0_24_A1  // A1 (T1) - (68) - TEMP_0_PIN
58 58
 #endif
59 59
 #ifndef TEMP_1_PIN
60
-  #define TEMP_1_PIN       P0_25_A2   // A2 (T2) - (69) - TEMP_1_PIN
60
+  #define TEMP_1_PIN                    P0_25_A2  // A2 (T2) - (69) - TEMP_1_PIN
61 61
 #endif
62 62
 #ifndef TEMP_BED_PIN
63
-  #define TEMP_BED_PIN     P0_23_A0   // A0 (T0) - (67) - TEMP_BED_PIN
63
+  #define TEMP_BED_PIN                  P0_23_A0  // A0 (T0) - (67) - TEMP_BED_PIN
64 64
 #endif
65 65
 
66 66
 #if HOTENDS == 1 && TEMP_SENSOR_PROBE
67
-  #define TEMP_PROBE_PIN   TEMP_1_PIN
67
+  #define TEMP_PROBE_PIN              TEMP_1_PIN
68 68
 #endif
69 69
 
70 70
 //
71 71
 // Heaters / Fans
72 72
 //
73 73
 #ifndef HEATER_0_PIN
74
-  #define HEATER_0_PIN     P2_07
74
+  #define HEATER_0_PIN                     P2_07
75 75
 #endif
76 76
 #if HOTENDS == 1
77 77
   #ifndef FAN1_PIN
78
-    #define FAN1_PIN       P2_04
78
+    #define FAN1_PIN                       P2_04
79 79
   #endif
80 80
 #else
81 81
   #ifndef HEATER_1_PIN
82
-    #define HEATER_1_PIN   P2_04
82
+    #define HEATER_1_PIN                   P2_04
83 83
   #endif
84 84
 #endif
85 85
 #ifndef FAN_PIN
86
-  #define FAN_PIN          P2_03
86
+  #define FAN_PIN                          P2_03
87 87
 #endif
88 88
 #ifndef HEATER_BED_PIN
89
-  #define HEATER_BED_PIN   P2_05
89
+  #define HEATER_BED_PIN                   P2_05
90 90
 #endif
91 91
 
92 92
 //
93 93
 // LCD / Controller
94 94
 //
95 95
 #if HAS_SPI_LCD
96
-  #define BEEPER_PIN       P1_30   // (37) not 5V tolerant
96
+  #define BEEPER_PIN                       P1_30  // (37) not 5V tolerant
97 97
 #endif
98 98
 
99 99
 //
100 100
 // SD Support
101 101
 //
102
-#define ONBOARD_SD_CS_PIN  P0_06   // Chip select for "System" SD card
102
+#define ONBOARD_SD_CS_PIN                  P0_06  // Chip select for "System" SD card
103 103
 
104 104
 #if SD_CONNECTION_IS(LCD)
105
-  #define SCK_PIN          P0_15
106
-  #define MISO_PIN         P0_17
107
-  #define MOSI_PIN         P0_18
105
+  #define SCK_PIN                          P0_15
106
+  #define MISO_PIN                         P0_17
107
+  #define MOSI_PIN                         P0_18
108 108
 #elif SD_CONNECTION_IS(ONBOARD)
109 109
   #undef SD_DETECT_PIN
110
-  #define SD_DETECT_PIN    P0_27
111
-  #define SCK_PIN          P0_07
112
-  #define MISO_PIN         P0_08
113
-  #define MOSI_PIN         P0_09
114
-  #define SS_PIN           ONBOARD_SD_CS_PIN
110
+  #define SD_DETECT_PIN                    P0_27
111
+  #define SCK_PIN                          P0_07
112
+  #define MISO_PIN                         P0_08
113
+  #define MOSI_PIN                         P0_09
114
+  #define SS_PIN               ONBOARD_SD_CS_PIN
115 115
 #elif SD_CONNECTION_IS(CUSTOM_CABLE)
116 116
   #error "No custom SD drive cable defined for this board."
117 117
 #endif

+ 66
- 66
Marlin/src/pins/lpc1768/pins_GMARSH_X6_REV1.h Переглянути файл

@@ -44,63 +44,63 @@
44 44
 //
45 45
 // Servos
46 46
 //
47
-#define SERVO0_PIN         P1_26   // PWM1[6]
48
-#define SERVO1_PIN         P1_18   // PWM1[1]
47
+#define SERVO0_PIN                         P1_26  // PWM1[6]
48
+#define SERVO1_PIN                         P1_18  // PWM1[1]
49 49
 
50 50
 //
51 51
 // Limit Switches
52 52
 //
53
-#define X_MIN_PIN          P0_00
54
-#define X_MAX_PIN          P0_01
55
-#define Y_MIN_PIN          P0_10
56
-#define Y_MAX_PIN          P0_21
57
-#define Z_MIN_PIN          P2_13
58
-#define Z_MAX_PIN          P2_22
53
+#define X_MIN_PIN                          P0_00
54
+#define X_MAX_PIN                          P0_01
55
+#define Y_MIN_PIN                          P0_10
56
+#define Y_MAX_PIN                          P0_21
57
+#define Z_MIN_PIN                          P2_13
58
+#define Z_MAX_PIN                          P2_22
59 59
 
60 60
 //
61 61
 // Steppers
62 62
 //
63 63
 
64
-#define X_STEP_PIN         P1_01
65
-#define X_DIR_PIN          P1_04
66
-#define X_ENABLE_PIN       P0_26
64
+#define X_STEP_PIN                         P1_01
65
+#define X_DIR_PIN                          P1_04
66
+#define X_ENABLE_PIN                       P0_26
67 67
 
68
-#define Y_STEP_PIN         P1_10
69
-#define Y_DIR_PIN          P1_14
70
-#define Y_ENABLE_PIN       P1_08
68
+#define Y_STEP_PIN                         P1_10
69
+#define Y_DIR_PIN                          P1_14
70
+#define Y_ENABLE_PIN                       P1_08
71 71
 
72
-#define Z_STEP_PIN         P1_17
73
-#define Z_DIR_PIN          P4_29
74
-#define Z_ENABLE_PIN       P1_15
72
+#define Z_STEP_PIN                         P1_17
73
+#define Z_DIR_PIN                          P4_29
74
+#define Z_ENABLE_PIN                       P1_15
75 75
 
76
-#define E0_STEP_PIN        P0_05
77
-#define E0_DIR_PIN         P2_00
78
-#define E0_ENABLE_PIN      P4_28
76
+#define E0_STEP_PIN                        P0_05
77
+#define E0_DIR_PIN                         P2_00
78
+#define E0_ENABLE_PIN                      P4_28
79 79
 
80
-#define E1_STEP_PIN        P2_03
81
-#define E1_DIR_PIN         P2_04
82
-#define E1_ENABLE_PIN      P2_01
80
+#define E1_STEP_PIN                        P2_03
81
+#define E1_DIR_PIN                         P2_04
82
+#define E1_ENABLE_PIN                      P2_01
83 83
 
84
-#define E2_STEP_PIN        P2_07
85
-#define E2_DIR_PIN         P2_08
86
-#define E2_ENABLE_PIN      P2_05
84
+#define E2_STEP_PIN                        P2_07
85
+#define E2_DIR_PIN                         P2_08
86
+#define E2_ENABLE_PIN                      P2_05
87 87
 
88 88
 //
89 89
 // TMC2208 UART pins
90 90
 //
91 91
 #if HAS_TMC_UART
92
-  #define X_SERIAL_TX_PIN  P1_00
93
-  #define X_SERIAL_RX_PIN  P1_00
94
-  #define Y_SERIAL_TX_PIN  P1_09
95
-  #define Y_SERIAL_RX_PIN  P1_09
96
-  #define Z_SERIAL_TX_PIN  P1_16
97
-  #define Z_SERIAL_RX_PIN  P1_16
98
-  #define E0_SERIAL_TX_PIN P0_04
99
-  #define E0_SERIAL_RX_PIN P0_04
100
-  #define E1_SERIAL_TX_PIN P2_02
101
-  #define E1_SERIAL_RX_PIN P2_02
102
-  #define E2_SERIAL_TX_PIN P2_06
103
-  #define E2_SERIAL_RX_PIN P2_06
92
+  #define X_SERIAL_TX_PIN                  P1_00
93
+  #define X_SERIAL_RX_PIN                  P1_00
94
+  #define Y_SERIAL_TX_PIN                  P1_09
95
+  #define Y_SERIAL_RX_PIN                  P1_09
96
+  #define Z_SERIAL_TX_PIN                  P1_16
97
+  #define Z_SERIAL_RX_PIN                  P1_16
98
+  #define E0_SERIAL_TX_PIN                 P0_04
99
+  #define E0_SERIAL_RX_PIN                 P0_04
100
+  #define E1_SERIAL_TX_PIN                 P2_02
101
+  #define E1_SERIAL_RX_PIN                 P2_02
102
+  #define E2_SERIAL_TX_PIN                 P2_06
103
+  #define E2_SERIAL_RX_PIN                 P2_06
104 104
 
105 105
   // Reduce baud rate to improve software serial reliability
106 106
   #define TMC_BAUD_RATE 19200
@@ -112,36 +112,36 @@
112 112
 // Temperature Sensors
113 113
 //  3.3V max when defined as an analog input
114 114
 //
115
-#define TEMP_0_PIN          P0_24_A1   // AD0[0] on P0_23
116
-#define TEMP_BED_PIN        P0_23_A0   // AD0[1] on P0_24
115
+#define TEMP_0_PIN                      P0_24_A1  // AD0[0] on P0_23
116
+#define TEMP_BED_PIN                    P0_23_A0  // AD0[1] on P0_24
117 117
 
118 118
 //
119 119
 // Heaters / Fans
120 120
 //
121
-#define HEATER_BED_PIN     P1_19 // Not a PWM pin, software PWM required
122
-#define HEATER_0_PIN       P3_26 // PWM1[3]
123
-#define FAN_PIN            P3_25 // Part cooling fan - connected to PWM1[2]
124
-#define E0_AUTO_FAN_PIN    P0_27 // Extruder cooling fan
121
+#define HEATER_BED_PIN                     P1_19  // Not a PWM pin, software PWM required
122
+#define HEATER_0_PIN                       P3_26  // PWM1[3]
123
+#define FAN_PIN                            P3_25  // Part cooling fan - connected to PWM1[2]
124
+#define E0_AUTO_FAN_PIN                    P0_27  // Extruder cooling fan
125 125
 
126 126
 //
127 127
 // Misc. Functions
128 128
 //
129
-#define LED_PIN            P1_31
129
+#define LED_PIN                            P1_31
130 130
 
131 131
 //
132 132
 // LCD
133 133
 //
134 134
 #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
135
-  #define BEEPER_PIN       P0_19
136
-  #define BTN_EN1          P1_23
137
-  #define BTN_EN2          P1_24
138
-  #define BTN_ENC          P1_25
139
-  #define LCD_PINS_RS      P0_20
140
-  #define LCD_PINS_ENABLE  P0_21
141
-  #define LCD_PINS_D4      P2_11
142
-  #define LCD_PINS_D5      P0_22
143
-  #define LCD_PINS_D6      P1_29
144
-  #define LCD_PINS_D7      P1_28
135
+  #define BEEPER_PIN                       P0_19
136
+  #define BTN_EN1                          P1_23
137
+  #define BTN_EN2                          P1_24
138
+  #define BTN_ENC                          P1_25
139
+  #define LCD_PINS_RS                      P0_20
140
+  #define LCD_PINS_ENABLE                  P0_21
141
+  #define LCD_PINS_D4                      P2_11
142
+  #define LCD_PINS_D5                      P0_22
143
+  #define LCD_PINS_D6                      P1_29
144
+  #define LCD_PINS_D7                      P1_28
145 145
 #endif
146 146
 
147 147
 //
@@ -149,21 +149,21 @@
149 149
 //
150 150
 
151 151
 #ifndef SDCARD_CONNECTION
152
-  #define SDCARD_CONNECTION LCD
152
+  #define SDCARD_CONNECTION                  LCD
153 153
 #endif
154 154
 
155
-#define ONBOARD_SD_CS_PIN  P0_06   // Chip select for "System" SD card
155
+#define ONBOARD_SD_CS_PIN                  P0_06  // Chip select for "System" SD card
156 156
 
157 157
 #if SD_CONNECTION_IS(LCD)
158
-  #define SCK_PIN          P0_15
159
-  #define MISO_PIN         P0_17
160
-  #define MOSI_PIN         P0_18
161
-  #define SS_PIN           P0_16
158
+  #define SCK_PIN                          P0_15
159
+  #define MISO_PIN                         P0_17
160
+  #define MOSI_PIN                         P0_18
161
+  #define SS_PIN                           P0_16
162 162
 #elif SD_CONNECTION_IS(ONBOARD)
163 163
   #undef SD_DETECT_PIN
164
-  #define SD_DETECT_PIN    P0_27
165
-  #define SCK_PIN          P0_07
166
-  #define MISO_PIN         P0_08
167
-  #define MOSI_PIN         P0_09
168
-  #define SS_PIN           ONBOARD_SD_CS_PIN
164
+  #define SD_DETECT_PIN                    P0_27
165
+  #define SCK_PIN                          P0_07
166
+  #define MISO_PIN                         P0_08
167
+  #define MOSI_PIN                         P0_09
168
+  #define SS_PIN               ONBOARD_SD_CS_PIN
169 169
 #endif

+ 118
- 118
Marlin/src/pins/lpc1768/pins_MKS_SBASE.h Переглянути файл

@@ -46,73 +46,73 @@
46 46
   //#define SDCARD_EEPROM_EMULATION
47 47
 #endif
48 48
 
49
-#define LED_PIN            P1_18   // Used as a status indicator
50
-#define LED2_PIN           P1_19
51
-#define LED3_PIN           P1_20
52
-#define LED4_PIN           P1_21
49
+#define LED_PIN                            P1_18  // Used as a status indicator
50
+#define LED2_PIN                           P1_19
51
+#define LED3_PIN                           P1_20
52
+#define LED4_PIN                           P1_21
53 53
 
54 54
 //
55 55
 // Servos
56 56
 //
57
-#define SERVO0_PIN         P1_23   // J8-3 (low jitter)
58
-#define SERVO1_PIN         P2_12   // J8-4
59
-#define SERVO2_PIN         P2_11   // J8-5
60
-#define SERVO3_PIN         P4_28   // J8-6
57
+#define SERVO0_PIN                         P1_23  // J8-3 (low jitter)
58
+#define SERVO1_PIN                         P2_12  // J8-4
59
+#define SERVO2_PIN                         P2_11  // J8-5
60
+#define SERVO3_PIN                         P4_28  // J8-6
61 61
 
62 62
 //
63 63
 // Limit Switches - Not Interrupt Capable
64 64
 //
65
-#define X_MIN_PIN          P1_24   // 10k pullup to 3.3V, 1K series
66
-#define X_MAX_PIN          P1_25   // 10k pullup to 3.3V, 1K series
67
-#define Y_MIN_PIN          P1_26   // 10k pullup to 3.3V, 1K series
68
-#define Y_MAX_PIN          P1_27   // 10k pullup to 3.3V, 1K series
69
-#define Z_MIN_PIN          P1_28   // The original Mks Sbase DIO19 has a 10k pullup to 3.3V or 5V, 1K series, so when using a Zprobe we must use DIO41 (J8 P1.22)
70
-#define Z_MAX_PIN          P1_29   // 10k pullup to 3.3V, 1K series
65
+#define X_MIN_PIN                          P1_24  // 10k pullup to 3.3V, 1K series
66
+#define X_MAX_PIN                          P1_25  // 10k pullup to 3.3V, 1K series
67
+#define Y_MIN_PIN                          P1_26  // 10k pullup to 3.3V, 1K series
68
+#define Y_MAX_PIN                          P1_27  // 10k pullup to 3.3V, 1K series
69
+#define Z_MIN_PIN                          P1_28  // The original Mks Sbase DIO19 has a 10k pullup to 3.3V or 5V, 1K series, so when using a Zprobe we must use DIO41 (J8 P1.22)
70
+#define Z_MAX_PIN                          P1_29  // 10k pullup to 3.3V, 1K series
71 71
 
72 72
 #ifndef Z_MIN_PROBE_PIN
73
-  #define Z_MIN_PROBE_PIN  P4_28   // Connector J8
73
+  #define Z_MIN_PROBE_PIN                  P4_28  // Connector J8
74 74
 #endif
75 75
 
76 76
 //
77 77
 // Steppers
78 78
 //
79
-#define X_STEP_PIN         P2_00
80
-#define X_DIR_PIN          P0_05
81
-#define X_ENABLE_PIN       P0_04
79
+#define X_STEP_PIN                         P2_00
80
+#define X_DIR_PIN                          P0_05
81
+#define X_ENABLE_PIN                       P0_04
82 82
 
83
-#define Y_STEP_PIN         P2_01
84
-#define Y_DIR_PIN          P0_11
85
-#define Y_ENABLE_PIN       P0_10
83
+#define Y_STEP_PIN                         P2_01
84
+#define Y_DIR_PIN                          P0_11
85
+#define Y_ENABLE_PIN                       P0_10
86 86
 
87
-#define Z_STEP_PIN         P2_02
88
-#define Z_DIR_PIN          P0_20
89
-#define Z_ENABLE_PIN       P0_19
87
+#define Z_STEP_PIN                         P2_02
88
+#define Z_DIR_PIN                          P0_20
89
+#define Z_ENABLE_PIN                       P0_19
90 90
 
91
-#define E0_STEP_PIN        P2_03
92
-#define E0_DIR_PIN         P0_22
93
-#define E0_ENABLE_PIN      P0_21
91
+#define E0_STEP_PIN                        P2_03
92
+#define E0_DIR_PIN                         P0_22
93
+#define E0_ENABLE_PIN                      P0_21
94 94
 
95
-#define E1_STEP_PIN        P2_08
96
-#define E1_DIR_PIN         P2_13
97
-#define E1_ENABLE_PIN      P4_29
95
+#define E1_STEP_PIN                        P2_08
96
+#define E1_DIR_PIN                         P2_13
97
+#define E1_ENABLE_PIN                      P4_29
98 98
 
99 99
 //
100 100
 // Temperature Sensors
101 101
 // 3.3V max when defined as an analog input
102 102
 //
103
-#define TEMP_BED_PIN        P0_23_A0   // A0 (TH1)
104
-#define TEMP_0_PIN          P0_24_A1   // A1 (TH2)
105
-#define TEMP_1_PIN          P0_25_A2   // A2 (TH3)
106
-#define TEMP_2_PIN          P0_26_A3   // A3 (TH4)
103
+#define TEMP_BED_PIN                    P0_23_A0  // A0 (TH1)
104
+#define TEMP_0_PIN                      P0_24_A1  // A1 (TH2)
105
+#define TEMP_1_PIN                      P0_25_A2  // A2 (TH3)
106
+#define TEMP_2_PIN                      P0_26_A3  // A3 (TH4)
107 107
 
108 108
 //
109 109
 // Heaters / Fans
110 110
 //
111
-#define HEATER_BED_PIN     P2_05
112
-#define HEATER_0_PIN       P2_07
113
-#define HEATER_1_PIN       P2_06
111
+#define HEATER_BED_PIN                     P2_05
112
+#define HEATER_0_PIN                       P2_07
113
+#define HEATER_1_PIN                       P2_06
114 114
 #ifndef FAN_PIN
115
-  #define FAN_PIN          P2_04
115
+  #define FAN_PIN                          P2_04
116 116
 #endif
117 117
 
118 118
 //
@@ -124,56 +124,56 @@
124 124
 // 5V
125 125
 // NC
126 126
 // GND
127
-#define PIN_P0_17          P0_17
128
-#define PIN_P0_16          P0_16
129
-#define PIN_P0_15          P0_15
127
+#define PIN_P0_17                          P0_17
128
+#define PIN_P0_16                          P0_16
129
+#define PIN_P0_15                          P0_15
130 130
 
131 131
 //
132 132
 // Connector J8
133 133
 //
134 134
 
135 135
 // GND
136
-#define PIN_P1_22          P1_22
137
-#define PIN_P1_23          P1_23   // PWM Capable
138
-#define PIN_P2_12          P2_12   // Interrupt Capable
139
-#define PIN_P2_11          P2_11   // Interrupt Capable
136
+#define PIN_P1_22                          P1_22
137
+#define PIN_P1_23                          P1_23  // PWM Capable
138
+#define PIN_P2_12                          P2_12  // Interrupt Capable
139
+#define PIN_P2_11                          P2_11  // Interrupt Capable
140 140
 
141 141
 //
142 142
 // Průša i3 MK2 Multi Material Multiplexer Support
143 143
 //
144 144
 #if ENABLED(MK2_MULTIPLEXER)
145
-  #define E_MUX0_PIN       P1_23   // J8-3
146
-  #define E_MUX1_PIN       P2_12   // J8-4
147
-  #define E_MUX2_PIN       P2_11   // J8-5
145
+  #define E_MUX0_PIN                       P1_23  // J8-3
146
+  #define E_MUX1_PIN                       P2_12  // J8-4
147
+  #define E_MUX2_PIN                       P2_11  // J8-5
148 148
 #endif
149 149
 
150 150
 //
151 151
 // Misc. Functions
152 152
 //
153
-#define PS_ON_PIN          P0_25   // TH3 Connector
153
+#define PS_ON_PIN                          P0_25  // TH3 Connector
154 154
 
155 155
 //
156 156
 // Ethernet pins
157 157
 //
158 158
 #ifndef ULTIPANEL
159
-  #define ENET_MDIO        P1_17   // J12-4
160
-  #define ENET_RX_ER       P1_14   // J12-6
161
-  #define ENET_RXD1        P1_10   // J12-8
159
+  #define ENET_MDIO                        P1_17  // J12-4
160
+  #define ENET_RX_ER                       P1_14  // J12-6
161
+  #define ENET_RXD1                        P1_10  // J12-8
162 162
 #endif
163 163
 
164
-#define ENET_MOC           P1_16   // J12-3
165
-#define REF_CLK            P1_15   // J12-5
166
-#define ENET_RXD0          P1_09   // J12-7
167
-#define ENET_CRS           P1_08   // J12-9
168
-#define ENET_TX_EN         P1_04   // J12-10
169
-#define ENET_TXD0          P1_00   // J12-11
170
-#define ENET_TXD1          P1_01   // J12-12
164
+#define ENET_MOC                           P1_16  // J12-3
165
+#define REF_CLK                            P1_15  // J12-5
166
+#define ENET_RXD0                          P1_09  // J12-7
167
+#define ENET_CRS                           P1_08  // J12-9
168
+#define ENET_TX_EN                         P1_04  // J12-10
169
+#define ENET_TXD0                          P1_00  // J12-11
170
+#define ENET_TXD1                          P1_01  // J12-12
171 171
 
172 172
 #ifndef SDCARD_CONNECTION
173
-  #define SDCARD_CONNECTION ONBOARD
173
+  #define SDCARD_CONNECTION              ONBOARD
174 174
 #endif
175 175
 
176
-#define ONBOARD_SD_CS_PIN  P0_06   // Chip select for "System" SD card
176
+#define ONBOARD_SD_CS_PIN                  P0_06  // Chip select for "System" SD card
177 177
 
178 178
 #if SD_CONNECTION_IS(CUSTOM_CABLE)
179 179
 
@@ -189,27 +189,27 @@
189 189
    * If you can't find a pin to use for the LCD's SD_DETECT then comment out
190 190
    * SD_DETECT_PIN entirely and remove that wire from the the custom cable.
191 191
    */
192
-  #define SD_DETECT_PIN    P2_11   // J8-5 (moved from EXP2 P0.27)
193
-  #define SCK_PIN          P1_22   // J8-2 (moved from EXP2 P0.7)
194
-  #define MISO_PIN         P1_23   // J8-3 (moved from EXP2 P0.8)
195
-  #define MOSI_PIN         P2_12   // J8-4 (moved from EXP2 P0.9)
196
-  #define SS_PIN           P0_28
197
-  #define LPC_SOFTWARE_SPI  // With a custom cable we need software SPI because the
198
-                            // selected pins are not on a hardware SPI controller
192
+  #define SD_DETECT_PIN                    P2_11  // J8-5 (moved from EXP2 P0.27)
193
+  #define SCK_PIN                          P1_22  // J8-2 (moved from EXP2 P0.7)
194
+  #define MISO_PIN                         P1_23  // J8-3 (moved from EXP2 P0.8)
195
+  #define MOSI_PIN                         P2_12  // J8-4 (moved from EXP2 P0.9)
196
+  #define SS_PIN                           P0_28
197
+  #define LPC_SOFTWARE_SPI                        // With a custom cable we need software SPI because the
198
+                                                  // selected pins are not on a hardware SPI controller
199 199
 #elif SD_CONNECTION_IS(LCD)
200 200
   // use standard cable and header, SPI and SD detect sre shared with on-board SD card
201 201
   // hardware SPI is used for both SD cards. The detect pin is shred between the
202 202
   // LCD and onboard SD readers so we disable it.
203
-  #define SCK_PIN          P0_07
204
-  #define MISO_PIN         P0_08
205
-  #define MOSI_PIN         P0_09
206
-  #define SS_PIN           P0_28
203
+  #define SCK_PIN                          P0_07
204
+  #define MISO_PIN                         P0_08
205
+  #define MOSI_PIN                         P0_09
206
+  #define SS_PIN                           P0_28
207 207
 #elif SD_CONNECTION_IS(ONBOARD)
208
-  #define SD_DETECT_PIN    P0_27
209
-  #define SCK_PIN          P0_07
210
-  #define MISO_PIN         P0_08
211
-  #define MOSI_PIN         P0_09
212
-  #define SS_PIN           ONBOARD_SD_CS_PIN
208
+  #define SD_DETECT_PIN                    P0_27
209
+  #define SCK_PIN                          P0_07
210
+  #define MISO_PIN                         P0_08
211
+  #define MOSI_PIN                         P0_09
212
+  #define SS_PIN               ONBOARD_SD_CS_PIN
213 213
 #endif
214 214
 
215 215
 /**
@@ -226,17 +226,17 @@
226 226
  */
227 227
 
228 228
 #if HAS_SPI_LCD
229
-  #define BEEPER_PIN       P1_31   // EXP1.1
230
-  #define BTN_ENC          P1_30   // EXP1.2
231
-  #define BTN_EN1          P3_26   // EXP2.5
232
-  #define BTN_EN2          P3_25   // EXP2.3
233
-  #define LCD_PINS_RS      P0_16   // EXP1.4
234
-  #define LCD_SDSS         P0_28   // EXP2.4
235
-  #define LCD_PINS_ENABLE  P0_18   // EXP1.3
236
-  #define LCD_PINS_D4      P0_15   // EXP1.5
229
+  #define BEEPER_PIN                       P1_31  // EXP1.1
230
+  #define BTN_ENC                          P1_30  // EXP1.2
231
+  #define BTN_EN1                          P3_26  // EXP2.5
232
+  #define BTN_EN2                          P3_25  // EXP2.3
233
+  #define LCD_PINS_RS                      P0_16  // EXP1.4
234
+  #define LCD_SDSS                         P0_28  // EXP2.4
235
+  #define LCD_PINS_ENABLE                  P0_18  // EXP1.3
236
+  #define LCD_PINS_D4                      P0_15  // EXP1.5
237 237
   #if ANY(VIKI2, miniVIKI)
238
-    #define DOGLCD_SCK     SCK_PIN
239
-    #define DOGLCD_MOSI    MOSI_PIN
238
+    #define DOGLCD_SCK                   SCK_PIN
239
+    #define DOGLCD_MOSI                 MOSI_PIN
240 240
   #endif
241 241
 
242 242
   #if ENABLED(FYSETC_MINI_12864)
@@ -251,26 +251,26 @@
251 251
      * Pins 6, 7 & 8 on EXP2 are no connects. That means a second special
252 252
      * cable will be needed if the RGB LEDs are to be active.
253 253
      */
254
-    #define DOGLCD_CS      LCD_PINS_ENABLE // EXP1.3  (LCD_EN on FYSETC schematic)
255
-    #define DOGLCD_A0      LCD_PINS_RS     // EXP1.4  (LCD_A0 on FYSETC schematic)
256
-    #define DOGLCD_SCK     P2_11           // J8-5  (SCK on FYSETC schematic)
257
-    #define DOGLCD_MOSI    P4_28           // J8-6  (MOSI on FYSETC schematic)
254
+    #define DOGLCD_CS            LCD_PINS_ENABLE  // EXP1.3  (LCD_EN on FYSETC schematic)
255
+    #define DOGLCD_A0                LCD_PINS_RS  // EXP1.4  (LCD_A0 on FYSETC schematic)
256
+    #define DOGLCD_SCK                     P2_11  // J8-5  (SCK on FYSETC schematic)
257
+    #define DOGLCD_MOSI                    P4_28  // J8-6  (MOSI on FYSETC schematic)
258 258
 
259
-    //#define FORCE_SOFT_SPI    // Use this if default of hardware SPI causes display problems
260
-                                //   results in LCD soft SPI mode 3, SD soft SPI mode 0
259
+    //#define FORCE_SOFT_SPI                      // Use this if default of hardware SPI causes display problems
260
+                                                  //   results in LCD soft SPI mode 3, SD soft SPI mode 0
261 261
 
262 262
     #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
263 263
       #ifndef RGB_LED_R_PIN
264
-        #define RGB_LED_R_PIN P2_12        // J8-4  (LCD_D6 on FYSETC schematic)
264
+        #define RGB_LED_R_PIN              P2_12  // J8-4  (LCD_D6 on FYSETC schematic)
265 265
       #endif
266 266
       #ifndef RGB_LED_G_PIN
267
-        #define RGB_LED_G_PIN P1_23        // J8-3  (LCD_D5 on FYSETC schematic)
267
+        #define RGB_LED_G_PIN              P1_23  // J8-3  (LCD_D5 on FYSETC schematic)
268 268
       #endif
269 269
       #ifndef RGB_LED_B_PIN
270
-        #define RGB_LED_B_PIN P1_22        // J8-2  (LCD_D7 on FYSETC schematic)
270
+        #define RGB_LED_B_PIN              P1_22  // J8-2  (LCD_D7 on FYSETC schematic)
271 271
       #endif
272 272
     #elif ENABLED(FYSETC_MINI_12864_2_1)
273
-      #define NEOPIXEL_PIN P2_12
273
+      #define NEOPIXEL_PIN                 P2_12
274 274
     #endif
275 275
 
276 276
   #elif ENABLED(MINIPANEL)
@@ -291,29 +291,29 @@
291 291
 
292 292
 #if HAS_DRIVER(TMC2130)
293 293
   // J8
294
-  #define X_CS_PIN         P1_22
295
-  #define Y_CS_PIN         P1_23
296
-  #define Z_CS_PIN         P2_12
297
-  #define E0_CS_PIN        P2_11
298
-  #define E1_CS_PIN        P4_28
294
+  #define X_CS_PIN                         P1_22
295
+  #define Y_CS_PIN                         P1_23
296
+  #define Z_CS_PIN                         P2_12
297
+  #define E0_CS_PIN                        P2_11
298
+  #define E1_CS_PIN                        P4_28
299 299
 
300 300
 // Hardware SPI is on EXP2. See if you can make it work:
301 301
 // https://github.com/makerbase-mks/MKS-SBASE/issues/25
302 302
 #define TMC_USE_SW_SPI
303 303
 #if ENABLED(TMC_USE_SW_SPI)
304 304
   #ifndef TMC_SW_MOSI
305
-    #define TMC_SW_MOSI    P0_03   // AUX1
305
+    #define TMC_SW_MOSI                    P0_03  // AUX1
306 306
   #endif
307 307
   #ifndef TMC_SW_MISO
308
-    #define TMC_SW_MISO    P0_02   // AUX1
308
+    #define TMC_SW_MISO                    P0_02  // AUX1
309 309
   #endif
310 310
   #ifndef TMC_SW_SCK
311
-    #define TMC_SW_SCK     P0_26   // TH4
311
+    #define TMC_SW_SCK                     P0_26  // TH4
312 312
   #endif
313 313
  #endif
314 314
 #endif
315 315
 
316
-#if MB(MKS_SBASE) && HAS_TMC220x
316
+#if MB(MKS_SBASE) && HAS_TMC_UART
317 317
 
318 318
   /**
319 319
    * TMC2208/TMC2209 stepper drivers
@@ -322,24 +322,24 @@
322 322
    * Worst case you may have to give up the LCD
323 323
    * RX pins need to be interrupt capable
324 324
    */
325
-  #define X_SERIAL_TX_PIN  P1_22   // J8-2
326
-  #define X_SERIAL_RX_PIN  P2_12   // J8-4 Interrupt Capable
327
-  #define Y_SERIAL_TX_PIN  P1_23   // J8-3
328
-  #define Y_SERIAL_RX_PIN  P2_11   // J8-5 Interrupt Capable
329
-  #define Z_SERIAL_TX_PIN  P2_12   // J8-4
330
-  #define Z_SERIAL_RX_PIN  P0_25   // TH3
331
-  #define E0_SERIAL_TX_PIN P4_28   // J8-6
332
-  #define E0_SERIAL_RX_PIN P0_26   // TH4
325
+  #define X_SERIAL_TX_PIN                  P1_22  // J8-2
326
+  #define X_SERIAL_RX_PIN                  P2_12  // J8-4 Interrupt Capable
327
+  #define Y_SERIAL_TX_PIN                  P1_23  // J8-3
328
+  #define Y_SERIAL_RX_PIN                  P2_11  // J8-5 Interrupt Capable
329
+  #define Z_SERIAL_TX_PIN                  P2_12  // J8-4
330
+  #define Z_SERIAL_RX_PIN                  P0_25  // TH3
331
+  #define E0_SERIAL_TX_PIN                 P4_28  // J8-6
332
+  #define E0_SERIAL_RX_PIN                 P0_26  // TH4
333 333
 
334 334
   // Reduce baud rate to improve software serial reliability
335 335
   #define TMC_BAUD_RATE 19200
336 336
 #endif
337 337
 
338 338
 // UNUSED
339
-#define PIN_P0_27          P0_27   // EXP2/Onboard SD
340
-#define PIN_P0_28          P0_28   // EXP2
341
-#define PIN_P0_02          P0_02   // AUX1 (Interrupt Capable/ADC/Serial Port 0)
342
-#define PIN_P0_03          P0_03   // AUX1 (Interrupt Capable/ADC/Serial Port 0)
339
+#define PIN_P0_27                          P0_27  // EXP2/Onboard SD
340
+#define PIN_P0_28                          P0_28  // EXP2
341
+#define PIN_P0_02                          P0_02  // AUX1 (Interrupt Capable/ADC/Serial Port 0)
342
+#define PIN_P0_03                          P0_03  // AUX1 (Interrupt Capable/ADC/Serial Port 0)
343 343
 
344 344
 /**
345 345
  *  PWMs

+ 122
- 122
Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h Переглянути файл

@@ -41,100 +41,100 @@
41 41
 //
42 42
 // Servos
43 43
 //
44
-#define SERVO0_PIN         P1_23   // SERVO P1.23
45
-#define SERVO1_PIN         P2_00   // SERVO P2.0
44
+#define SERVO0_PIN                         P1_23  // SERVO P1.23
45
+#define SERVO1_PIN                         P2_00  // SERVO P2.0
46 46
 
47 47
 //
48 48
 // Trinamic Stallguard pins
49 49
 //
50
-#define X_DIAG_PIN         P1_29   // X-
51
-#define Y_DIAG_PIN         P1_27   // Y-
52
-#define Z_DIAG_PIN         P1_25   // Z-
53
-#define E0_DIAG_PIN        P1_28   // X+
54
-#define E1_DIAG_PIN        P1_26   // Y+
50
+#define X_DIAG_PIN                         P1_29  // X-
51
+#define Y_DIAG_PIN                         P1_27  // Y-
52
+#define Z_DIAG_PIN                         P1_25  // Z-
53
+#define E0_DIAG_PIN                        P1_28  // X+
54
+#define E1_DIAG_PIN                        P1_26  // Y+
55 55
 
56 56
 //
57 57
 // Limit Switches
58 58
 //
59 59
 #if X_STALL_SENSITIVITY
60
-  #define X_STOP_PIN       X_DIAG_PIN
60
+  #define X_STOP_PIN                  X_DIAG_PIN
61 61
   #if X_HOME_DIR < 0
62
-    #define X_MAX_PIN      P1_28   // X+
62
+    #define X_MAX_PIN                      P1_28  // X+
63 63
   #else
64
-    #define X_MIN_PIN      P1_28   // X+
64
+    #define X_MIN_PIN                      P1_28  // X+
65 65
   #endif
66 66
 #else
67
-  #define X_MIN_PIN        P1_29   // X-
68
-  #define X_MAX_PIN        P1_28   // X+
67
+  #define X_MIN_PIN                        P1_29  // X-
68
+  #define X_MAX_PIN                        P1_28  // X+
69 69
 #endif
70 70
 
71 71
 #if Y_STALL_SENSITIVITY
72
-  #define Y_STOP_PIN       Y_DIAG_PIN
72
+  #define Y_STOP_PIN                  Y_DIAG_PIN
73 73
   #if Y_HOME_DIR < 0
74
-    #define Y_MAX_PIN      P1_26   // Y+
74
+    #define Y_MAX_PIN                      P1_26  // Y+
75 75
   #else
76
-    #define Y_MIN_PIN      P1_26   // Y+
76
+    #define Y_MIN_PIN                      P1_26  // Y+
77 77
   #endif
78 78
 #else
79
-  #define Y_MIN_PIN        P1_27   // Y-
80
-  #define Y_MAX_PIN        P1_26   // Y+
79
+  #define Y_MIN_PIN                        P1_27  // Y-
80
+  #define Y_MAX_PIN                        P1_26  // Y+
81 81
 #endif
82 82
 
83 83
 #if Z_STALL_SENSITIVITY
84
-  #define Z_STOP_PIN       Z_DIAG_PIN
84
+  #define Z_STOP_PIN                  Z_DIAG_PIN
85 85
   #if Z_HOME_DIR < 0
86
-    #define Z_MAX_PIN      P1_24   // Z+
86
+    #define Z_MAX_PIN                      P1_24  // Z+
87 87
   #else
88
-    #define Z_MIN_PIN      P1_24   // Z+
88
+    #define Z_MIN_PIN                      P1_24  // Z+
89 89
   #endif
90 90
 #else
91
-  #define Z_MIN_PIN        P1_25   // Z-
92
-  #define Z_MAX_PIN        P1_24   // Z+
91
+  #define Z_MIN_PIN                        P1_25  // Z-
92
+  #define Z_MAX_PIN                        P1_24  // Z+
93 93
 #endif
94 94
 
95 95
 //
96 96
 // Z Probe (when not Z_MIN_PIN)
97 97
 //
98 98
 #ifndef Z_MIN_PROBE_PIN
99
-  #define Z_MIN_PROBE_PIN  P1_24
99
+  #define Z_MIN_PROBE_PIN                  P1_24
100 100
 #endif
101 101
 
102 102
 //
103 103
 // Steppers
104 104
 //
105
-#define X_STEP_PIN         P2_02
106
-#define X_DIR_PIN          P2_03
107
-#define X_ENABLE_PIN       P2_01
105
+#define X_STEP_PIN                         P2_02
106
+#define X_DIR_PIN                          P2_03
107
+#define X_ENABLE_PIN                       P2_01
108 108
 #ifndef X_CS_PIN
109
-  #define X_CS_PIN         P1_01
109
+  #define X_CS_PIN                         P1_01
110 110
 #endif
111 111
 
112
-#define Y_STEP_PIN         P0_19
113
-#define Y_DIR_PIN          P0_20
114
-#define Y_ENABLE_PIN       P2_08
112
+#define Y_STEP_PIN                         P0_19
113
+#define Y_DIR_PIN                          P0_20
114
+#define Y_ENABLE_PIN                       P2_08
115 115
 #ifndef Y_CS_PIN
116
-  #define Y_CS_PIN         P1_08
116
+  #define Y_CS_PIN                         P1_08
117 117
 #endif
118 118
 
119
-#define Z_STEP_PIN         P0_22
120
-#define Z_DIR_PIN          P2_11
121
-#define Z_ENABLE_PIN       P0_21
119
+#define Z_STEP_PIN                         P0_22
120
+#define Z_DIR_PIN                          P2_11
121
+#define Z_ENABLE_PIN                       P0_21
122 122
 #ifndef Z_CS_PIN
123
-  #define Z_CS_PIN         P1_10
123
+  #define Z_CS_PIN                         P1_10
124 124
 #endif
125 125
 
126
-#define E0_STEP_PIN        P2_13
127
-#define E0_DIR_PIN         P0_11
128
-#define E0_ENABLE_PIN      P2_12
126
+#define E0_STEP_PIN                        P2_13
127
+#define E0_DIR_PIN                         P0_11
128
+#define E0_ENABLE_PIN                      P2_12
129 129
 #ifndef E0_CS_PIN
130
-  #define E0_CS_PIN        P1_15
130
+  #define E0_CS_PIN                        P1_15
131 131
 #endif
132 132
 
133
-#define E1_STEP_PIN        P0_01
134
-#define E1_DIR_PIN         P0_00
135
-#define E1_ENABLE_PIN      P0_10
133
+#define E1_STEP_PIN                        P0_01
134
+#define E1_DIR_PIN                         P0_00
135
+#define E1_ENABLE_PIN                      P0_10
136 136
 #ifndef E1_CS_PIN
137
-  #define E1_CS_PIN        P1_17
137
+  #define E1_CS_PIN                        P1_17
138 138
 #endif
139 139
 
140 140
 //
@@ -142,17 +142,17 @@
142 142
 //
143 143
 #if ENABLED(TMC_USE_SW_SPI)
144 144
   #ifndef TMC_SW_MOSI
145
-    #define TMC_SW_MOSI    P4_28
145
+    #define TMC_SW_MOSI                    P4_28
146 146
   #endif
147 147
   #ifndef TMC_SW_MISO
148
-    #define TMC_SW_MISO    P0_05
148
+    #define TMC_SW_MISO                    P0_05
149 149
   #endif
150 150
   #ifndef TMC_SW_SCK
151
-    #define TMC_SW_SCK     P0_04
151
+    #define TMC_SW_SCK                     P0_04
152 152
   #endif
153 153
 #endif
154 154
 
155
-#if HAS_TMC220x
155
+#if HAS_TMC_UART
156 156
   /**
157 157
    * TMC2208/TMC2209 stepper drivers
158 158
    *
@@ -175,23 +175,23 @@
175 175
   // Software serial
176 176
   //
177 177
 
178
-  #define X_SERIAL_TX_PIN  P1_04
179
-  #define X_SERIAL_RX_PIN  P1_01
178
+  #define X_SERIAL_TX_PIN                  P1_04
179
+  #define X_SERIAL_RX_PIN                  P1_01
180 180
 
181
-  #define Y_SERIAL_TX_PIN  P1_09
182
-  #define Y_SERIAL_RX_PIN  P1_08
181
+  #define Y_SERIAL_TX_PIN                  P1_09
182
+  #define Y_SERIAL_RX_PIN                  P1_08
183 183
 
184
-  #define Z_SERIAL_TX_PIN  P1_14
185
-  #define Z_SERIAL_RX_PIN  P1_10
184
+  #define Z_SERIAL_TX_PIN                  P1_14
185
+  #define Z_SERIAL_RX_PIN                  P1_10
186 186
 
187
-  #define E0_SERIAL_TX_PIN P1_16
188
-  #define E0_SERIAL_RX_PIN P1_15
187
+  #define E0_SERIAL_TX_PIN                 P1_16
188
+  #define E0_SERIAL_RX_PIN                 P1_15
189 189
 
190
-  #define E1_SERIAL_TX_PIN P4_29
191
-  #define E1_SERIAL_RX_PIN P1_17
190
+  #define E1_SERIAL_TX_PIN                 P4_29
191
+  #define E1_SERIAL_RX_PIN                 P1_17
192 192
 
193
-  #define Z2_SERIAL_TX_PIN P4_29
194
-  #define Z2_SERIAL_RX_PIN P1_17
193
+  #define Z2_SERIAL_TX_PIN                 P4_29
194
+  #define Z2_SERIAL_RX_PIN                 P1_17
195 195
 
196 196
   // Reduce baud rate to improve software serial reliability
197 197
   #define TMC_BAUD_RATE 19200
@@ -201,35 +201,35 @@
201 201
 // Temperature Sensors
202 202
 // 3.3V max when defined as an analog input
203 203
 //
204
-#define TEMP_0_PIN         P0_23_A0   // Analog Input A0 (TH1)
205
-#define TEMP_BED_PIN       P0_24_A1   // Analog Input A1 (TB)
206
-#define TEMP_1_PIN         P0_25_A2   // Analog Input A2 (TH2)
204
+#define TEMP_0_PIN                      P0_23_A0  // Analog Input A0 (TH1)
205
+#define TEMP_BED_PIN                    P0_24_A1  // Analog Input A1 (TB)
206
+#define TEMP_1_PIN                      P0_25_A2  // Analog Input A2 (TH2)
207 207
 
208 208
 //
209 209
 // Heaters / Fans
210 210
 //
211
-#define HEATER_BED_PIN     P2_05
212
-#define HEATER_0_PIN       P2_07
211
+#define HEATER_BED_PIN                     P2_05
212
+#define HEATER_0_PIN                       P2_07
213 213
 #if HOTENDS == 1
214 214
   #ifndef FAN1_PIN
215
-    #define FAN1_PIN       P2_06
215
+    #define FAN1_PIN                       P2_06
216 216
   #endif
217 217
 #else
218 218
   #ifndef HEATER_1_PIN
219
-    #define HEATER_1_PIN   P2_06
219
+    #define HEATER_1_PIN                   P2_06
220 220
   #endif
221 221
 #endif
222 222
 #ifndef FAN_PIN
223
-  #define FAN_PIN          P2_04
223
+  #define FAN_PIN                          P2_04
224 224
 #endif
225 225
 
226 226
 //
227 227
 // Misc. Functions
228 228
 //
229
-#define LED_PIN            P1_18   // Used as a status indicator
230
-#define LED2_PIN           P1_19
231
-#define LED3_PIN           P1_20
232
-#define LED4_PIN           P1_21
229
+#define LED_PIN                            P1_18  // Used as a status indicator
230
+#define LED2_PIN                           P1_19
231
+#define LED3_PIN                           P1_20
232
+#define LED4_PIN                           P1_21
233 233
 
234 234
 /**
235 235
  *                _____                                            _____
@@ -242,83 +242,83 @@
242 242
  *                EXP1                                             EXP2
243 243
  */
244 244
 #if HAS_SPI_LCD
245
-  #define BEEPER_PIN       P1_31
246
-  #define BTN_ENC          P1_30
245
+  #define BEEPER_PIN                       P1_31
246
+  #define BTN_ENC                          P1_30
247 247
 
248 248
   #if ENABLED(CR10_STOCKDISPLAY)
249
-    #define LCD_PINS_RS    P1_00
249
+    #define LCD_PINS_RS                    P1_00
250 250
 
251
-    #define BTN_EN1        P0_18
252
-    #define BTN_EN2        P0_15
251
+    #define BTN_EN1                        P0_18
252
+    #define BTN_EN2                        P0_15
253 253
 
254
-    #define LCD_PINS_ENABLE P1_22
255
-    #define LCD_PINS_D4    P0_17
254
+    #define LCD_PINS_ENABLE                P1_22
255
+    #define LCD_PINS_D4                    P0_17
256 256
 
257 257
   #else
258 258
 
259
-    #define BTN_EN1        P3_25
260
-    #define BTN_EN2        P3_26
259
+    #define BTN_EN1                        P3_25
260
+    #define BTN_EN2                        P3_26
261 261
 
262
-    #define LCD_SDSS       P0_28
262
+    #define LCD_SDSS                       P0_28
263 263
 
264 264
     #if ENABLED(MKS_12864OLED_SSD1306)
265 265
 
266
-      #define LCD_PINS_DC  P0_17
267
-      #define DOGLCD_CS    P0_16
268
-      #define DOGLCD_A0    LCD_PINS_DC
269
-      #define DOGLCD_SCK   P0_15
270
-      #define DOGLCD_MOSI  P0_18
266
+      #define LCD_PINS_DC                  P0_17
267
+      #define DOGLCD_CS                    P0_16
268
+      #define DOGLCD_A0              LCD_PINS_DC
269
+      #define DOGLCD_SCK                   P0_15
270
+      #define DOGLCD_MOSI                  P0_18
271 271
 
272
-      #define LCD_PINS_RS  P1_00
273
-      #define LCD_PINS_D7  P1_22
274
-      #define KILL_PIN     -1 // NC
272
+      #define LCD_PINS_RS                  P1_00
273
+      #define LCD_PINS_D7                  P1_22
274
+      #define KILL_PIN                     -1     // NC
275 275
 
276
-    #else // !MKS_12864OLED_SSD1306
276
+    #else                                         // !MKS_12864OLED_SSD1306
277 277
 
278
-      #define LCD_PINS_RS  P0_16
278
+      #define LCD_PINS_RS                  P0_16
279 279
 
280
-      #define LCD_PINS_ENABLE P0_18
281
-      #define LCD_PINS_D4  P0_15
280
+      #define LCD_PINS_ENABLE              P0_18
281
+      #define LCD_PINS_D4                  P0_15
282 282
 
283 283
       #if ENABLED(FYSETC_MINI_12864)
284 284
 
285
-        #define DOGLCD_CS  P0_18
286
-        #define DOGLCD_A0  P0_16
287
-        #define DOGLCD_SCK P0_07
288
-        #define DOGLCD_MOSI P1_20
285
+        #define DOGLCD_CS                  P0_18
286
+        #define DOGLCD_A0                  P0_16
287
+        #define DOGLCD_SCK                 P0_07
288
+        #define DOGLCD_MOSI                P1_20
289 289
 
290
-        #define LCD_BACKLIGHT_PIN -1
290
+        #define LCD_BACKLIGHT_PIN          -1
291 291
 
292
-        #define FORCE_SOFT_SPI      // Use this if default of hardware SPI causes display problems
293
-                                    //   results in LCD soft SPI mode 3, SD soft SPI mode 0
292
+        #define FORCE_SOFT_SPI                    // Use this if default of hardware SPI causes display problems
293
+                                                  //   results in LCD soft SPI mode 3, SD soft SPI mode 0
294 294
 
295
-        #define LCD_RESET_PIN P0_15   // Must be high or open for LCD to operate normally.
295
+        #define LCD_RESET_PIN              P0_15  // Must be high or open for LCD to operate normally.
296 296
 
297 297
         #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
298 298
           #ifndef RGB_LED_R_PIN
299
-            #define RGB_LED_R_PIN P0_17
299
+            #define RGB_LED_R_PIN          P0_17
300 300
           #endif
301 301
           #ifndef RGB_LED_G_PIN
302
-            #define RGB_LED_G_PIN P1_00
302
+            #define RGB_LED_G_PIN          P1_00
303 303
           #endif
304 304
           #ifndef RGB_LED_B_PIN
305
-            #define RGB_LED_B_PIN P1_22
305
+            #define RGB_LED_B_PIN          P1_22
306 306
           #endif
307 307
         #elif ENABLED(FYSETC_MINI_12864_2_1)
308
-          #define NEOPIXEL_PIN    P0_17
308
+          #define NEOPIXEL_PIN             P0_17
309 309
         #endif
310 310
 
311
-      #else // !FYSETC_MINI_12864
311
+      #else                                       // !FYSETC_MINI_12864
312 312
 
313 313
         #if ENABLED(MKS_MINI_12864)
314
-          #define DOGLCD_CS  P0_17
315
-          #define DOGLCD_A0  P1_00
314
+          #define DOGLCD_CS                P0_17
315
+          #define DOGLCD_A0                P1_00
316 316
         #endif
317 317
 
318 318
         #if ENABLED(ULTIPANEL)
319
-          #define LCD_PINS_D5 P0_17
320
-          #define LCD_PINS_D6 P1_00
321
-          #define LCD_PINS_D7 P1_22
319
+          #define LCD_PINS_D5              P0_17
320
+          #define LCD_PINS_D6              P1_00
321
+          #define LCD_PINS_D7              P1_22
322 322
         #endif
323 323
 
324 324
       #endif // !FYSETC_MINI_12864
@@ -330,20 +330,20 @@
330 330
 #endif // HAS_SPI_LCD
331 331
 
332 332
 #ifndef SDCARD_CONNECTION
333
-  #define SDCARD_CONNECTION ONBOARD
333
+  #define SDCARD_CONNECTION              ONBOARD
334 334
 #endif
335 335
 
336
-#define ONBOARD_SD_CS_PIN  P0_06   // Chip select for "System" SD card
336
+#define ONBOARD_SD_CS_PIN                  P0_06  // Chip select for "System" SD card
337 337
 
338 338
 #if SD_CONNECTION_IS(LCD) || SD_CONNECTION_IS(ONBOARD)
339
-  #define SD_DETECT_PIN    P0_27
340
-  #define SCK_PIN          P0_07
341
-  #define MISO_PIN         P0_08
342
-  #define MOSI_PIN         P0_09
339
+  #define SD_DETECT_PIN                    P0_27
340
+  #define SCK_PIN                          P0_07
341
+  #define MISO_PIN                         P0_08
342
+  #define MOSI_PIN                         P0_09
343 343
   #if SD_CONNECTION_IS(ONBOARD)
344
-    #define SS_PIN         ONBOARD_SD_CS_PIN
344
+    #define SS_PIN             ONBOARD_SD_CS_PIN
345 345
   #else
346
-    #define SS_PIN         P0_28
346
+    #define SS_PIN                         P0_28
347 347
   #endif
348 348
 #elif SD_CONNECTION_IS(CUSTOM_CABLE)
349 349
   #error "No custom SD drive cable defined for this board."
@@ -352,6 +352,6 @@
352 352
 //
353 353
 // Other Pins
354 354
 //
355
-//#define PIN_P0_02          P0_02   // AUX1 (Interrupt Capable/ADC/Serial Port 0)
356
-//#define PIN_P0_03          P0_03   // AUX1 (Interrupt Capable/ADC/Serial Port 0)
357
-//#define PS_ON_PIN          P1_23   // SERVO P1.23
355
+//#define PIN_P0_02                        P0_02  // AUX1 (Interrupt Capable/ADC/Serial Port 0)
356
+//#define PIN_P0_03                        P0_03  // AUX1 (Interrupt Capable/ADC/Serial Port 0)
357
+//#define PS_ON_PIN                        P1_23  // SERVO P1.23

+ 160
- 160
Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h Переглянути файл

@@ -51,58 +51,58 @@
51 51
 //
52 52
 // Servos
53 53
 //
54
-#define SERVO0_PIN         P1_20   // (11)
55
-#define SERVO1_PIN         P1_21   // ( 6) also on J5-1
56
-#define SERVO2_PIN         P1_19   // ( 5)
57
-#define SERVO3_PIN         P1_18   // ( 4) 5V output
54
+#define SERVO0_PIN                         P1_20  // (11)
55
+#define SERVO1_PIN                         P1_21  // ( 6) also on J5-1
56
+#define SERVO2_PIN                         P1_19  // ( 5)
57
+#define SERVO3_PIN                         P1_18  // ( 4) 5V output
58 58
 
59 59
 //
60 60
 // Limit Switches
61 61
 //
62
-#define X_MIN_PIN          P1_24   // ( 3) 10k pullup to 3.3V, 1K series
63
-#define X_MAX_PIN          P1_25   // ( 2) 10k pullup to 3.3V, 1K series
64
-#define Y_MIN_PIN          P1_26   // (14) 10k pullup to 3.3V, 1K series
65
-#define Y_MAX_PIN          P1_27   // (15) 10k pullup to 3.3V, 1K series
66
-#define Z_MIN_PIN          P1_29   // (18) 10k pullup to 3.3V, 1K series
67
-#define Z_MAX_PIN          P1_28   // (19) 10k pullup to 3.3V, 1K series
68
-#define ONBOARD_ENDSTOPPULLUPS     // Board has built-in pullups
62
+#define X_MIN_PIN                          P1_24  // ( 3) 10k pullup to 3.3V, 1K series
63
+#define X_MAX_PIN                          P1_25  // ( 2) 10k pullup to 3.3V, 1K series
64
+#define Y_MIN_PIN                          P1_26  // (14) 10k pullup to 3.3V, 1K series
65
+#define Y_MAX_PIN                          P1_27  // (15) 10k pullup to 3.3V, 1K series
66
+#define Z_MIN_PIN                          P1_29  // (18) 10k pullup to 3.3V, 1K series
67
+#define Z_MAX_PIN                          P1_28  // (19) 10k pullup to 3.3V, 1K series
68
+#define ONBOARD_ENDSTOPPULLUPS                    // Board has built-in pullups
69 69
 
70 70
 //
71 71
 // Steppers
72 72
 //
73
-#define X_STEP_PIN         P2_01   // (54)
74
-#define X_DIR_PIN          P0_11   // (55)
75
-#define X_ENABLE_PIN       P0_10   // (38)
73
+#define X_STEP_PIN                         P2_01  // (54)
74
+#define X_DIR_PIN                          P0_11  // (55)
75
+#define X_ENABLE_PIN                       P0_10  // (38)
76 76
 #ifndef X_CS_PIN
77
-  #define X_CS_PIN         P1_01   // ETH
77
+  #define X_CS_PIN                         P1_01  // ETH
78 78
 #endif
79 79
 
80
-#define Y_STEP_PIN         P2_02   // (60)
81
-#define Y_DIR_PIN          P0_20   // (61)
82
-#define Y_ENABLE_PIN       P0_19   // (56)
80
+#define Y_STEP_PIN                         P2_02  // (60)
81
+#define Y_DIR_PIN                          P0_20  // (61)
82
+#define Y_ENABLE_PIN                       P0_19  // (56)
83 83
 #ifndef Y_CS_PIN
84
-  #define Y_CS_PIN         P1_04   // ETH
84
+  #define Y_CS_PIN                         P1_04  // ETH
85 85
 #endif
86 86
 
87
-#define Z_STEP_PIN         P2_03   // (46)
88
-#define Z_DIR_PIN          P0_22   // (48)
89
-#define Z_ENABLE_PIN       P0_21   // (62)
87
+#define Z_STEP_PIN                         P2_03  // (46)
88
+#define Z_DIR_PIN                          P0_22  // (48)
89
+#define Z_ENABLE_PIN                       P0_21  // (62)
90 90
 #ifndef Z_CS_PIN
91
-  #define Z_CS_PIN         P1_10   // ETH
91
+  #define Z_CS_PIN                         P1_10  // ETH
92 92
 #endif
93 93
 
94
-#define E0_STEP_PIN        P2_00   // (26)
95
-#define E0_DIR_PIN         P0_05   // (28)
96
-#define E0_ENABLE_PIN      P0_04   // (24)
94
+#define E0_STEP_PIN                        P2_00  // (26)
95
+#define E0_DIR_PIN                         P0_05  // (28)
96
+#define E0_ENABLE_PIN                      P0_04  // (24)
97 97
 #ifndef E0_CS_PIN
98
-  #define E0_CS_PIN        P1_14   // ETH
98
+  #define E0_CS_PIN                        P1_14  // ETH
99 99
 #endif
100 100
 
101
-#define E1_STEP_PIN        P2_08   // (36)
102
-#define E1_DIR_PIN         P2_13   // (34)
103
-#define E1_ENABLE_PIN      P4_29   // (30)
101
+#define E1_STEP_PIN                        P2_08  // (36)
102
+#define E1_DIR_PIN                         P2_13  // (34)
103
+#define E1_ENABLE_PIN                      P4_29  // (30)
104 104
 #ifndef E1_CS_PIN
105
-  #define E1_CS_PIN        -1
105
+  #define E1_CS_PIN                        -1
106 106
 #endif
107 107
 
108 108
 //
@@ -110,17 +110,17 @@
110 110
 //
111 111
 #if ENABLED(TMC_USE_SW_SPI)
112 112
   #ifndef TMC_SW_MOSI
113
-    #define TMC_SW_MOSI    P1_00   // ETH
113
+    #define TMC_SW_MOSI                    P1_00  // ETH
114 114
   #endif
115 115
   #ifndef TMC_SW_MISO
116
-    #define TMC_SW_MISO    P1_08   // ETH
116
+    #define TMC_SW_MISO                    P1_08  // ETH
117 117
   #endif
118 118
   #ifndef TMC_SW_SCK
119
-    #define TMC_SW_SCK     P1_09   // ETH
119
+    #define TMC_SW_SCK                     P1_09  // ETH
120 120
   #endif
121 121
 #endif
122 122
 
123
-#if HAS_TMC220x
123
+#if HAS_TMC_UART
124 124
   /**
125 125
    * TMC2208/TMC2209 stepper drivers
126 126
    *
@@ -136,31 +136,31 @@
136 136
   // P2_13 E1-Dir
137 137
 
138 138
   #ifndef X_SERIAL_TX_PIN
139
-    #define X_SERIAL_TX_PIN  P0_01
139
+    #define X_SERIAL_TX_PIN                P0_01
140 140
   #endif
141 141
   #ifndef X_SERIAL_RX_PIN
142
-    #define X_SERIAL_RX_PIN  P0_01
142
+    #define X_SERIAL_RX_PIN                P0_01
143 143
   #endif
144 144
 
145 145
   #ifndef Y_SERIAL_TX_PIN
146
-    #define Y_SERIAL_TX_PIN  P0_00
146
+    #define Y_SERIAL_TX_PIN                P0_00
147 147
   #endif
148 148
   #ifndef Y_SERIAL_RX_PIN
149
-    #define Y_SERIAL_RX_PIN  P0_00
149
+    #define Y_SERIAL_RX_PIN                P0_00
150 150
   #endif
151 151
 
152 152
   #ifndef Z_SERIAL_TX_PIN
153
-    #define Z_SERIAL_TX_PIN  P2_13
153
+    #define Z_SERIAL_TX_PIN                P2_13
154 154
   #endif
155 155
   #ifndef Z_SERIAL_RX_PIN
156
-    #define Z_SERIAL_RX_PIN  P2_13
156
+    #define Z_SERIAL_RX_PIN                P2_13
157 157
   #endif
158 158
 
159 159
   #ifndef E0_SERIAL_TX_PIN
160
-    #define E0_SERIAL_TX_PIN P2_08
160
+    #define E0_SERIAL_TX_PIN               P2_08
161 161
   #endif
162 162
   #ifndef E0_SERIAL_RX_PIN
163
-    #define E0_SERIAL_RX_PIN P2_08
163
+    #define E0_SERIAL_RX_PIN               P2_08
164 164
   #endif
165 165
 
166 166
   // Reduce baud rate to improve software serial reliability
@@ -171,14 +171,14 @@
171 171
 // Temperature Sensors
172 172
 //  3.3V max when defined as an analog input
173 173
 //
174
-#define TEMP_0_PIN          P0_23_A0   // A0 (T0) - (67) - TEMP_0_PIN
175
-#define TEMP_BED_PIN        P0_24_A1   // A1 (T1) - (68) - TEMP_BED_PIN
176
-#define TEMP_1_PIN          P0_25_A2   // A2 (T2) - (69) - TEMP_1_PIN
177
-#define TEMP_2_PIN          P0_26_A3   // A3 - (63) - J5-3 & AUX-2
178
-#define TEMP_3_PIN          P1_30_A4   // A4 - (37) - BUZZER_PIN
179
-//#define TEMP_4_PIN          P1_31_A5   // A5 - (49) - SD_DETECT_PIN
174
+#define TEMP_0_PIN                      P0_23_A0  // A0 (T0) - (67) - TEMP_0_PIN
175
+#define TEMP_BED_PIN                    P0_24_A1  // A1 (T1) - (68) - TEMP_BED_PIN
176
+#define TEMP_1_PIN                      P0_25_A2  // A2 (T2) - (69) - TEMP_1_PIN
177
+#define TEMP_2_PIN                      P0_26_A3  // A3 - (63) - J5-3 & AUX-2
178
+#define TEMP_3_PIN                      P1_30_A4  // A4 - (37) - BUZZER_PIN
179
+//#define TEMP_4_PIN                    P1_31_A5  // A5 - (49) - SD_DETECT_PIN
180 180
 //#define ??                  P0_03_A6   // A6 - ( 0)  - RXD0 - J4-4 & AUX-1
181
-#define FILWIDTH_PIN        P0_02_A7   // A7 - ( 1)  - TXD0 - J4-5 & AUX-1
181
+#define FILWIDTH_PIN                    P0_02_A7  // A7 - ( 1)  - TXD0 - J4-5 & AUX-1
182 182
 
183 183
 //
184 184
 // Augmentation for auto-assigning RAMPS plugs
@@ -201,69 +201,69 @@
201 201
 // Heaters / Fans
202 202
 //
203 203
 #ifndef MOSFET_D_PIN
204
-  #define MOSFET_D_PIN     -1
204
+  #define MOSFET_D_PIN                     -1
205 205
 #endif
206 206
 #ifndef RAMPS_D8_PIN
207
-  #define RAMPS_D8_PIN     P2_07   // (8)
207
+  #define RAMPS_D8_PIN                     P2_07  // (8)
208 208
 #endif
209 209
 #ifndef RAMPS_D9_PIN
210
-  #define RAMPS_D9_PIN     P2_04   // (9)
210
+  #define RAMPS_D9_PIN                     P2_04  // (9)
211 211
 #endif
212 212
 #ifndef RAMPS_D10_PIN
213
-  #define RAMPS_D10_PIN    P2_05   // (10)
213
+  #define RAMPS_D10_PIN                    P2_05  // (10)
214 214
 #endif
215 215
 
216
-#define HEATER_0_PIN       RAMPS_D10_PIN
217
-
218
-#if ENABLED(IS_RAMPS_EFB)                      // Hotend, Fan, Bed
219
-  #define HEATER_BED_PIN   RAMPS_D8_PIN
220
-#elif ENABLED(IS_RAMPS_EEF)                    // Hotend, Hotend, Fan
221
-  #define HEATER_1_PIN     RAMPS_D9_PIN
222
-#elif ENABLED(IS_RAMPS_EEB)                    // Hotend, Hotend, Bed
223
-  #define HEATER_1_PIN     RAMPS_D9_PIN
224
-  #define HEATER_BED_PIN   RAMPS_D8_PIN
225
-#elif ENABLED(IS_RAMPS_EFF)                    // Hotend, Fan, Fan
226
-  #define FAN1_PIN         RAMPS_D8_PIN
227
-#elif DISABLED(IS_RAMPS_SF)                    // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
228
-  #define HEATER_BED_PIN   RAMPS_D8_PIN
216
+#define HEATER_0_PIN               RAMPS_D10_PIN
217
+
218
+#if ENABLED(IS_RAMPS_EFB)                         // Hotend, Fan, Bed
219
+  #define HEATER_BED_PIN            RAMPS_D8_PIN
220
+#elif ENABLED(IS_RAMPS_EEF)                       // Hotend, Hotend, Fan
221
+  #define HEATER_1_PIN              RAMPS_D9_PIN
222
+#elif ENABLED(IS_RAMPS_EEB)                       // Hotend, Hotend, Bed
223
+  #define HEATER_1_PIN              RAMPS_D9_PIN
224
+  #define HEATER_BED_PIN            RAMPS_D8_PIN
225
+#elif ENABLED(IS_RAMPS_EFF)                       // Hotend, Fan, Fan
226
+  #define FAN1_PIN                  RAMPS_D8_PIN
227
+#elif DISABLED(IS_RAMPS_SF)                       // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
228
+  #define HEATER_BED_PIN            RAMPS_D8_PIN
229 229
   #if HOTENDS == 1
230
-    #define FAN1_PIN       MOSFET_D_PIN
230
+    #define FAN1_PIN                MOSFET_D_PIN
231 231
   #else
232
-    #define HEATER_1_PIN   MOSFET_D_PIN
232
+    #define HEATER_1_PIN            MOSFET_D_PIN
233 233
   #endif
234 234
 #endif
235 235
 
236 236
 #ifndef FAN_PIN
237 237
   #if EITHER(IS_RAMPS_EFB, IS_RAMPS_EFF)          // Hotend, Fan, Bed or Hotend, Fan, Fan
238
-    #define FAN_PIN        RAMPS_D9_PIN
238
+    #define FAN_PIN                 RAMPS_D9_PIN
239 239
   #elif EITHER(IS_RAMPS_EEF, IS_RAMPS_SF)         // Hotend, Hotend, Fan or Spindle, Fan
240
-    #define FAN_PIN        RAMPS_D8_PIN
241
-  #elif ENABLED(IS_RAMPS_EEB)                  // Hotend, Hotend, Bed
242
-    #define FAN_PIN        P1_18               // (4) IO pin. Buffer needed
243
-  #else                                        // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
244
-    #define FAN_PIN        RAMPS_D9_PIN
240
+    #define FAN_PIN                 RAMPS_D8_PIN
241
+  #elif ENABLED(IS_RAMPS_EEB)                     // Hotend, Hotend, Bed
242
+    #define FAN_PIN                        P1_18  // (4) IO pin. Buffer needed
243
+  #else                                           // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
244
+    #define FAN_PIN                 RAMPS_D9_PIN
245 245
   #endif
246 246
 #endif
247 247
 
248 248
 //
249 249
 // Misc. Functions
250 250
 //
251
-#define LED_PIN            P4_28   // (13)
251
+#define LED_PIN                            P4_28  // (13)
252 252
 
253 253
 // define digital pin 5 for the filament runout sensor. Use the RAMPS 1.4 digital input 5 on the servos connector
254 254
 #ifndef FIL_RUNOUT_PIN
255
-  #define FIL_RUNOUT_PIN   P1_19   // (5)
255
+  #define FIL_RUNOUT_PIN                   P1_19  // (5)
256 256
 #endif
257 257
 
258
-#define PS_ON_PIN          P2_12   // (12)
258
+#define PS_ON_PIN                          P2_12  // (12)
259 259
 
260 260
 #if !defined(MAX6675_SS_PIN) && DISABLED(USE_ZMAX_PLUG)
261
-  #define MAX6675_SS_PIN   P1_28
261
+  #define MAX6675_SS_PIN                   P1_28
262 262
 #endif
263 263
 
264 264
 #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) && !defined(SPINDLE_LASER_ENA_PIN)
265
-  #if !defined(NUM_SERVOS) || NUM_SERVOS < 4   // Try to use servo connector
266
-    #define CASE_LIGHT_PIN P1_18   // (4) MUST BE HARDWARE PWM
265
+  #if !defined(NUM_SERVOS) || NUM_SERVOS < 4      // Try to use servo connector
266
+    #define CASE_LIGHT_PIN                 P1_18  // (4) MUST BE HARDWARE PWM
267 267
   #endif
268 268
 #endif
269 269
 
@@ -279,19 +279,19 @@
279 279
       #error "LASER_FEATURE requires 3 free servo pins."
280 280
     #endif
281 281
   #endif
282
-  #define SPINDLE_LASER_ENA_PIN SERVO1_PIN   // (6) Pin should have a pullup/pulldown!
283
-  #define SPINDLE_LASER_PWM_PIN SERVO3_PIN   // (4) MUST BE HARDWARE PWM
284
-  #define SPINDLE_DIR_PIN       SERVO2_PIN   // (5)
282
+  #define SPINDLE_LASER_ENA_PIN       SERVO1_PIN  // (6) Pin should have a pullup/pulldown!
283
+  #define SPINDLE_LASER_PWM_PIN       SERVO3_PIN  // (4) MUST BE HARDWARE PWM
284
+  #define SPINDLE_DIR_PIN             SERVO2_PIN  // (5)
285 285
 #endif
286 286
 
287 287
 //
288 288
 // Průša i3 MK2 Multiplexer Support
289 289
 //
290 290
 #if SERIAL_PORT != 0 && SERIAL_PORT_2 != 0
291
-  #define E_MUX0_PIN       P0_03   // ( 0) Z_CS_PIN
292
-  #define E_MUX1_PIN       P0_02   // ( 1) E0_CS_PIN
291
+  #define E_MUX0_PIN                       P0_03  // ( 0) Z_CS_PIN
292
+  #define E_MUX1_PIN                       P0_02  // ( 1) E0_CS_PIN
293 293
 #endif
294
-#define E_MUX2_PIN         P0_26   // (63) E1_CS_PIN
294
+#define E_MUX2_PIN                         P0_26  // (63) E1_CS_PIN
295 295
 
296 296
 /**
297 297
  * LCD / Controller
@@ -322,101 +322,101 @@
322 322
   // 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
323 323
   // Requires REVERSE_ENCODER_DIRECTION in Configuration.h
324 324
 
325
-  #define BEEPER_PIN       P2_11   // J3-3 & AUX-4
325
+  #define BEEPER_PIN                       P2_11  // J3-3 & AUX-4
326 326
 
327
-  #define BTN_EN1          P0_16   // J3-7 & AUX-4
328
-  #define BTN_EN2          P1_23   // J3-5 & AUX-4
329
-  #define BTN_ENC          P3_25   // J3-4 & AUX-4
327
+  #define BTN_EN1                          P0_16  // J3-7 & AUX-4
328
+  #define BTN_EN2                          P1_23  // J3-5 & AUX-4
329
+  #define BTN_ENC                          P3_25  // J3-4 & AUX-4
330 330
 
331
-  #define LCD_PINS_RS      P0_15   // J3-9 & AUX-4 (CS)
332
-  #define LCD_PINS_ENABLE  P0_18   // J3-10 & AUX-3 (SID, MOSI)
333
-  #define LCD_PINS_D4      P2_06   // J3-8 & AUX-3 (SCK, CLK)
331
+  #define LCD_PINS_RS                      P0_15  // J3-9 & AUX-4 (CS)
332
+  #define LCD_PINS_ENABLE                  P0_18  // J3-10 & AUX-3 (SID, MOSI)
333
+  #define LCD_PINS_D4                      P2_06  // J3-8 & AUX-3 (SCK, CLK)
334 334
 
335 335
 #elif HAS_SPI_LCD
336 336
 
337
-  //#define SCK_PIN          P0_15   // (52)  system defined J3-9 & AUX-3
338
-  //#define MISO_PIN         P0_17   // (50)  system defined J3-10 & AUX-3
339
-  //#define MOSI_PIN         P0_18   // (51)  system defined J3-10 & AUX-3
340
-  //#define SS_PIN           P1_23   // (53)  system defined J3-5 & AUX-3 (Sometimes called SDSS)
337
+  //#define SCK_PIN                        P0_15  // (52)  system defined J3-9 & AUX-3
338
+  //#define MISO_PIN                       P0_17  // (50)  system defined J3-10 & AUX-3
339
+  //#define MOSI_PIN                       P0_18  // (51)  system defined J3-10 & AUX-3
340
+  //#define SS_PIN                         P1_23  // (53)  system defined J3-5 & AUX-3 (Sometimes called SDSS)
341 341
 
342 342
   #if ENABLED(FYSETC_MINI_12864)
343
-    #define BEEPER_PIN     P1_01
344
-    #define BTN_ENC        P1_04
343
+    #define BEEPER_PIN                     P1_01
344
+    #define BTN_ENC                        P1_04
345 345
   #else
346
-    #define BEEPER_PIN     P1_30   // (37) not 5V tolerant
347
-    #define BTN_ENC        P2_11   // (35) J3-3 & AUX-4
346
+    #define BEEPER_PIN                     P1_30  // (37) not 5V tolerant
347
+    #define BTN_ENC                        P2_11  // (35) J3-3 & AUX-4
348 348
   #endif
349 349
 
350
-  #define BTN_EN1          P3_26   // (31) J3-2 & AUX-4
351
-  #define BTN_EN2          P3_25   // (33) J3-4 & AUX-4
350
+  #define BTN_EN1                          P3_26  // (31) J3-2 & AUX-4
351
+  #define BTN_EN2                          P3_25  // (33) J3-4 & AUX-4
352 352
 
353
-  #define SD_DETECT_PIN    P1_31   // (49) J3-1 & AUX-3 (NOT 5V tolerant)
354
-  #define KILL_PIN         P1_22   // (41) J5-4 & AUX-4
355
-  #define LCD_PINS_RS      P0_16   // (16) J3-7 & AUX-4
356
-  #define LCD_SDSS         P0_16   // (16) J3-7 & AUX-4
353
+  #define SD_DETECT_PIN                    P1_31  // (49) J3-1 & AUX-3 (NOT 5V tolerant)
354
+  #define KILL_PIN                         P1_22  // (41) J5-4 & AUX-4
355
+  #define LCD_PINS_RS                      P0_16  // (16) J3-7 & AUX-4
356
+  #define LCD_SDSS                         P0_16  // (16) J3-7 & AUX-4
357 357
 
358 358
   #if ENABLED(NEWPANEL)
359 359
     #if ENABLED(REPRAPWORLD_KEYPAD)
360
-      #define SHIFT_OUT    P0_18   // (51) (MOSI) J3-10 & AUX-3
361
-      #define SHIFT_CLK    P0_15   // (52) (SCK)  J3-9 & AUX-3
362
-      #define SHIFT_LD     P1_31   // (49)        J3-1 & AUX-3 (NOT 5V tolerant)
360
+      #define SHIFT_OUT                    P0_18  // (51) (MOSI) J3-10 & AUX-3
361
+      #define SHIFT_CLK                    P0_15  // (52) (SCK)  J3-9 & AUX-3
362
+      #define SHIFT_LD                     P1_31  // (49)        J3-1 & AUX-3 (NOT 5V tolerant)
363 363
     #endif
364 364
   #else
365
-    //#define SHIFT_CLK      P3_26   // (31)  J3-2 & AUX-4
366
-    //#define SHIFT_LD       P3_25   // (33)  J3-4 & AUX-4
367
-    //#define SHIFT_OUT      P2_11   // (35)  J3-3 & AUX-4
368
-    //#define SHIFT_EN       P1_22   // (41)  J5-4 & AUX-4
365
+    //#define SHIFT_CLK                    P3_26  // (31)  J3-2 & AUX-4
366
+    //#define SHIFT_LD                     P3_25  // (33)  J3-4 & AUX-4
367
+    //#define SHIFT_OUT                    P2_11  // (35)  J3-3 & AUX-4
368
+    //#define SHIFT_EN                     P1_22  // (41)  J5-4 & AUX-4
369 369
   #endif
370 370
 
371 371
   #if ANY(VIKI2, miniVIKI)
372 372
     // #define LCD_SCREEN_ROT_180
373 373
 
374
-    #define DOGLCD_CS      P0_16   // (16)
375
-    #define DOGLCD_A0      P2_06   // (59) J3-8 & AUX-2
376
-    #define DOGLCD_SCK     SCK_PIN
377
-    #define DOGLCD_MOSI    MOSI_PIN
374
+    #define DOGLCD_CS                      P0_16  // (16)
375
+    #define DOGLCD_A0                      P2_06  // (59) J3-8 & AUX-2
376
+    #define DOGLCD_SCK                   SCK_PIN
377
+    #define DOGLCD_MOSI                 MOSI_PIN
378 378
 
379
-    #define STAT_LED_BLUE_PIN P0_26 //(63)  may change if cable changes
380
-    #define STAT_LED_RED_PIN P1_21 // ( 6)  may change if cable changes
379
+    #define STAT_LED_BLUE_PIN              P0_26  //(63)  may change if cable changes
380
+    #define STAT_LED_RED_PIN               P1_21  // ( 6)  may change if cable changes
381 381
   #else
382 382
 
383 383
     #if ENABLED(FYSETC_MINI_12864)
384
-      #define DOGLCD_SCK   P0_15
385
-      #define DOGLCD_MOSI  P0_18
384
+      #define DOGLCD_SCK                   P0_15
385
+      #define DOGLCD_MOSI                  P0_18
386 386
 
387 387
       // EXP1 on LCD adapter is not usable - using Ethernet connector instead
388
-      #define DOGLCD_CS    P1_09
389
-      #define DOGLCD_A0    P1_14
390
-      //#define FORCE_SOFT_SPI    // Use this if default of hardware SPI causes display problems
391
-                                  //   results in LCD soft SPI mode 3, SD soft SPI mode 0
388
+      #define DOGLCD_CS                    P1_09
389
+      #define DOGLCD_A0                    P1_14
390
+      //#define FORCE_SOFT_SPI                    // Use this if default of hardware SPI causes display problems
391
+                                                  //   results in LCD soft SPI mode 3, SD soft SPI mode 0
392 392
 
393
-      #define LCD_RESET_PIN P0_16   // Must be high or open for LCD to operate normally.
393
+      #define LCD_RESET_PIN                P0_16  // Must be high or open for LCD to operate normally.
394 394
 
395 395
       #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
396 396
         #ifndef RGB_LED_R_PIN
397
-          #define RGB_LED_R_PIN P1_00
397
+          #define RGB_LED_R_PIN            P1_00
398 398
         #endif
399 399
         #ifndef RGB_LED_G_PIN
400
-          #define RGB_LED_G_PIN P1_01
400
+          #define RGB_LED_G_PIN            P1_01
401 401
         #endif
402 402
         #ifndef RGB_LED_B_PIN
403
-          #define RGB_LED_B_PIN P1_08
403
+          #define RGB_LED_B_PIN            P1_08
404 404
         #endif
405 405
       #elif ENABLED(FYSETC_MINI_12864_2_1)
406
-        #define NEOPIXEL_PIN P1_00
406
+        #define NEOPIXEL_PIN               P1_00
407 407
       #endif
408 408
     #else
409
-      #define DOGLCD_CS    P0_26   // (63) J5-3 & AUX-2
410
-      #define DOGLCD_A0    P2_06   // (59) J3-8 & AUX-2
409
+      #define DOGLCD_CS                    P0_26  // (63) J5-3 & AUX-2
410
+      #define DOGLCD_A0                    P2_06  // (59) J3-8 & AUX-2
411 411
     #endif
412 412
 
413
-    #define LCD_BACKLIGHT_PIN P0_16 //(16) J3-7 & AUX-4 - only used on DOGLCD controllers
414
-    #define LCD_PINS_ENABLE P0_18  // (51) (MOSI) J3-10 & AUX-3
415
-    #define LCD_PINS_D4    P0_15   // (52) (SCK)  J3-9 & AUX-3
413
+    #define LCD_BACKLIGHT_PIN              P0_16  //(16) J3-7 & AUX-4 - only used on DOGLCD controllers
414
+    #define LCD_PINS_ENABLE                P0_18  // (51) (MOSI) J3-10 & AUX-3
415
+    #define LCD_PINS_D4                    P0_15  // (52) (SCK)  J3-9 & AUX-3
416 416
     #if ENABLED(ULTIPANEL)
417
-      #define LCD_PINS_D5  P1_17   // (71) ENET_MDIO
418
-      #define LCD_PINS_D6  P1_14   // (73) ENET_RX_ER
419
-      #define LCD_PINS_D7  P1_10   // (75) ENET_RXD1
417
+      #define LCD_PINS_D5                  P1_17  // (71) ENET_MDIO
418
+      #define LCD_PINS_D6                  P1_14  // (73) ENET_RX_ER
419
+      #define LCD_PINS_D7                  P1_10  // (75) ENET_RXD1
420 420
     #endif
421 421
   #endif
422 422
 
@@ -434,38 +434,38 @@
434 434
 // Ethernet pins
435 435
 //
436 436
 #if DISABLED(ULTIPANEL)
437
-  #define ENET_MDIO        P1_17   // (71)  J12-4
438
-  #define ENET_RX_ER       P1_14   // (73)  J12-6
439
-  #define ENET_RXD1        P1_10   // (75)  J12-8
437
+  #define ENET_MDIO                        P1_17  // (71)  J12-4
438
+  #define ENET_RX_ER                       P1_14  // (73)  J12-6
439
+  #define ENET_RXD1                        P1_10  // (75)  J12-8
440 440
 #endif
441
-#define ENET_MOC           P1_16   // (70)  J12-3
442
-#define REF_CLK            P1_15   // (72)  J12-5
443
-#define ENET_RXD0          P1_09   // (74)  J12-7
444
-#define ENET_CRS           P1_08   // (76)  J12-9
445
-#define ENET_TX_EN         P1_04   // (77)  J12-10
446
-#define ENET_TXD0          P1_00   // (78)  J12-11
447
-#define ENET_TXD1          P1_01   // (79)  J12-12
441
+#define ENET_MOC                           P1_16  // (70)  J12-3
442
+#define REF_CLK                            P1_15  // (72)  J12-5
443
+#define ENET_RXD0                          P1_09  // (74)  J12-7
444
+#define ENET_CRS                           P1_08  // (76)  J12-9
445
+#define ENET_TX_EN                         P1_04  // (77)  J12-10
446
+#define ENET_TXD0                          P1_00  // (78)  J12-11
447
+#define ENET_TXD1                          P1_01  // (79)  J12-12
448 448
 
449 449
 //
450 450
 // SD Support
451 451
 //
452 452
 #ifndef SDCARD_CONNECTION
453
-  #define SDCARD_CONNECTION ONBOARD
453
+  #define SDCARD_CONNECTION              ONBOARD
454 454
 #endif
455 455
 
456
-#define ONBOARD_SD_CS_PIN  P0_06   // Chip select for "System" SD card
456
+#define ONBOARD_SD_CS_PIN                  P0_06  // Chip select for "System" SD card
457 457
 
458 458
 #if SD_CONNECTION_IS(LCD)
459
-  #define SCK_PIN          P0_15   // (52)  system defined J3-9 & AUX-3
460
-  #define MISO_PIN         P0_17   // (50)  system defined J3-10 & AUX-3
461
-  #define MOSI_PIN         P0_18   // (51)  system defined J3-10 & AUX-3
462
-  #define SS_PIN           P1_23   // (53)  system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
459
+  #define SCK_PIN                          P0_15  // (52)  system defined J3-9 & AUX-3
460
+  #define MISO_PIN                         P0_17  // (50)  system defined J3-10 & AUX-3
461
+  #define MOSI_PIN                         P0_18  // (51)  system defined J3-10 & AUX-3
462
+  #define SS_PIN                           P1_23  // (53)  system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
463 463
 #elif SD_CONNECTION_IS(ONBOARD)
464 464
   #undef SD_DETECT_PIN
465
-  #define SCK_PIN          P0_07
466
-  #define MISO_PIN         P0_08
467
-  #define MOSI_PIN         P0_09
468
-  #define SS_PIN           ONBOARD_SD_CS_PIN
465
+  #define SCK_PIN                          P0_07
466
+  #define MISO_PIN                         P0_08
467
+  #define MOSI_PIN                         P0_09
468
+  #define SS_PIN               ONBOARD_SD_CS_PIN
469 469
 #elif SD_CONNECTION_IS(CUSTOM_CABLE)
470 470
   #error "No custom SD drive cable defined for this board."
471 471
 #endif

+ 45
- 46
Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h Переглянути файл

@@ -41,80 +41,79 @@
41 41
 //
42 42
 // Servos
43 43
 //
44
-#define SERVO0_PIN        P1_23
44
+#define SERVO0_PIN                         P1_23
45 45
 
46 46
 //
47 47
 // Limit Switches
48 48
 //
49
-#define X_MIN_PIN          P1_28
50
-#define X_MAX_PIN          P1_25
51
-#define Y_MIN_PIN          P2_11
52
-#define Y_MAX_PIN          -1
53
-#define Z_MIN_PIN          P1_27
54
-#define Z_MAX_PIN          -1
55
-#define Z_PROBE            P1_22
49
+#define X_MIN_PIN                          P1_28
50
+#define X_MAX_PIN                          P1_25
51
+#define Y_MIN_PIN                          P2_11
52
+#define Y_MAX_PIN                          -1
53
+#define Z_MIN_PIN                          P1_27
54
+#define Z_MAX_PIN                          -1
55
+#define Z_PROBE                            P1_22
56 56
 
57 57
 //
58 58
 // Steppers
59 59
 //
60
-#define X_STEP_PIN         P2_00
61
-#define X_DIR_PIN          P0_05
62
-#define X_ENABLE_PIN       P0_04
60
+#define X_STEP_PIN                         P2_00
61
+#define X_DIR_PIN                          P0_05
62
+#define X_ENABLE_PIN                       P0_04
63 63
 
64
-#define Y_STEP_PIN         P2_01
65
-#define Y_DIR_PIN          P0_11
66
-#define Y_ENABLE_PIN       P0_10
64
+#define Y_STEP_PIN                         P2_01
65
+#define Y_DIR_PIN                          P0_11
66
+#define Y_ENABLE_PIN                       P0_10
67 67
 
68
-#define Z_STEP_PIN         P2_02
69
-#define Z_DIR_PIN          P0_20
70
-#define Z_ENABLE_PIN       P0_19
68
+#define Z_STEP_PIN                         P2_02
69
+#define Z_DIR_PIN                          P0_20
70
+#define Z_ENABLE_PIN                       P0_19
71 71
 
72
-#define E0_STEP_PIN        P2_03
73
-#define E0_DIR_PIN         P0_22
74
-#define E0_ENABLE_PIN      P0_21
72
+#define E0_STEP_PIN                        P2_03
73
+#define E0_DIR_PIN                         P0_22
74
+#define E0_ENABLE_PIN                      P0_21
75 75
 
76
-#define E1_STEP_PIN        P2_08
77
-#define E1_DIR_PIN         P2_13
78
-#define E1_ENABLE_PIN      P4_29
76
+#define E1_STEP_PIN                        P2_08
77
+#define E1_DIR_PIN                         P2_13
78
+#define E1_ENABLE_PIN                      P4_29
79 79
 
80 80
 //
81 81
 // Temperature Sensors
82 82
 // 3.3V max when defined as an analog input
83 83
 //
84
-#define TEMP_BED_PIN        P0_23_A0   // A0 (TH1)
85
-#define TEMP_0_PIN          P0_24_A1   // A1 (TH2)
86
-#define TEMP_1_PIN          P0_25_A2   // A2 (TH3)
87
-
84
+#define TEMP_BED_PIN                    P0_23_A0  // A0 (TH1)
85
+#define TEMP_0_PIN                      P0_24_A1  // A1 (TH2)
86
+#define TEMP_1_PIN                      P0_25_A2  // A2 (TH3)
88 87
 
89 88
 //
90 89
 // Heaters / Fans
91 90
 //
92 91
 
93
-#define HEATER_BED_PIN     P2_05
94
-#define HEATER_BED2_PIN    P2_04
95
-#define HEATER_0_PIN       P2_07
96
-#define HEATER_1_PIN       P2_06
92
+#define HEATER_BED_PIN                     P2_05
93
+#define HEATER_BED2_PIN                    P2_04
94
+#define HEATER_0_PIN                       P2_07
95
+#define HEATER_1_PIN                       P2_06
97 96
 #ifndef FAN_PIN
98
-  #define FAN_PIN          P1_24
97
+  #define FAN_PIN                          P1_24
99 98
 #endif
100
-#define FAN1_PIN           P1_26
99
+#define FAN1_PIN                           P1_26
101 100
 
102 101
 //
103 102
 // Display
104 103
 //
105 104
 
106 105
 #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
107
-    #define LCD_PINS_RS         P0_16
108
-    #define LCD_PINS_ENABLE     P0_18
109
-    #define LCD_PINS_D4         P0_15
110
-    #define LCD_PINS_D5         P1_00
111
-    #define LCD_PINS_D6         P1_01
112
-    #define LCD_PINS_D7         P1_04
113
-    #define BEEPER_PIN          P1_31
114
-
115
-    #define BTN_EN1             P3_25
116
-    #define BTN_EN2             P3_26
117
-    #define BTN_ENC             P1_30
118
-
119
-    #define SD_DETECT_PIN       -1
106
+    #define LCD_PINS_RS                    P0_16
107
+    #define LCD_PINS_ENABLE                P0_18
108
+    #define LCD_PINS_D4                    P0_15
109
+    #define LCD_PINS_D5                    P1_00
110
+    #define LCD_PINS_D6                    P1_01
111
+    #define LCD_PINS_D7                    P1_04
112
+    #define BEEPER_PIN                     P1_31
113
+
114
+    #define BTN_EN1                        P3_25
115
+    #define BTN_EN2                        P3_26
116
+    #define BTN_ENC                        P1_30
117
+
118
+    #define SD_DETECT_PIN                  -1
120 119
 #endif // REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

+ 45
- 46
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_GT.h Переглянути файл

@@ -41,93 +41,92 @@
41 41
 //
42 42
 // Servos
43 43
 //
44
-#define SERVO0_PIN         P1_23
44
+#define SERVO0_PIN                         P1_23
45 45
 
46 46
 //
47 47
 // Limit Switches
48 48
 //
49
-#define X_MIN_PIN          P1_24
50
-#define X_MAX_PIN          P1_27
51
-#define Y_MIN_PIN          P1_25
52
-#define Y_MAX_PIN          P1_28
53
-#define Z_MIN_PIN          P1_26
54
-#define Z_MAX_PIN          P1_29
49
+#define X_MIN_PIN                          P1_24
50
+#define X_MAX_PIN                          P1_27
51
+#define Y_MIN_PIN                          P1_25
52
+#define Y_MAX_PIN                          P1_28
53
+#define Z_MIN_PIN                          P1_26
54
+#define Z_MAX_PIN                          P1_29
55 55
 
56 56
 //
57 57
 // Steppers
58 58
 //
59
-#define X_STEP_PIN         P2_01
60
-#define X_DIR_PIN          P0_11
61
-#define X_ENABLE_PIN       P0_10
59
+#define X_STEP_PIN                         P2_01
60
+#define X_DIR_PIN                          P0_11
61
+#define X_ENABLE_PIN                       P0_10
62 62
 #ifndef X_CS_PIN
63
-  #define X_CS_PIN         P0_10 // BSD2660 default
63
+  #define X_CS_PIN                         P0_10  // BSD2660 default
64 64
 #endif
65 65
 
66
-#define Y_STEP_PIN         P2_02
67
-#define Y_DIR_PIN          P0_20
68
-#define Y_ENABLE_PIN       P0_19
66
+#define Y_STEP_PIN                         P2_02
67
+#define Y_DIR_PIN                          P0_20
68
+#define Y_ENABLE_PIN                       P0_19
69 69
 #ifndef Y_CS_PIN
70
-  #define Y_CS_PIN         P0_19 // BSD2660 default
70
+  #define Y_CS_PIN                         P0_19  // BSD2660 default
71 71
 #endif
72 72
 
73
-#define Z_STEP_PIN         P2_03
74
-#define Z_DIR_PIN          P0_22
75
-#define Z_ENABLE_PIN       P0_21
73
+#define Z_STEP_PIN                         P2_03
74
+#define Z_DIR_PIN                          P0_22
75
+#define Z_ENABLE_PIN                       P0_21
76 76
 #ifndef Z_CS_PIN
77
-  #define Z_CS_PIN         P0_21 // BSD2660 default
77
+  #define Z_CS_PIN                         P0_21  // BSD2660 default
78 78
 #endif
79 79
 
80
-#define E0_STEP_PIN        P2_00
81
-#define E0_DIR_PIN         P0_05
82
-#define E0_ENABLE_PIN      P0_04
80
+#define E0_STEP_PIN                        P2_00
81
+#define E0_DIR_PIN                         P0_05
82
+#define E0_ENABLE_PIN                      P0_04
83 83
 #ifndef E0_CS_PIN
84
-  #define E0_CS_PIN        P0_04 // BSD2660 default
84
+  #define E0_CS_PIN                        P0_04  // BSD2660 default
85 85
 #endif
86 86
 
87
-#define E1_STEP_PIN        P2_08
88
-#define E1_DIR_PIN         P2_13
89
-#define E1_ENABLE_PIN      P4_29
87
+#define E1_STEP_PIN                        P2_08
88
+#define E1_DIR_PIN                         P2_13
89
+#define E1_ENABLE_PIN                      P4_29
90 90
 #ifndef E1_CS_PIN
91
-  #define E1_CS_PIN        P4_29 // BSD2660 default
91
+  #define E1_CS_PIN                        P4_29  // BSD2660 default
92 92
 #endif
93 93
 
94 94
 //
95 95
 // Temperature Sensors
96 96
 // 3.3V max when defined as an analog input
97 97
 //
98
-#define TEMP_BED_PIN        P0_23_A0   // A0 (TH1)
99
-#define TEMP_0_PIN          P0_24_A1   // A1 (TH2)
100
-#define TEMP_1_PIN          P0_25_A2   // A2 (TH3)
101
-
98
+#define TEMP_BED_PIN                    P0_23_A0  // A0 (TH1)
99
+#define TEMP_0_PIN                      P0_24_A1  // A1 (TH2)
100
+#define TEMP_1_PIN                      P0_25_A2  // A2 (TH3)
102 101
 
103 102
 //
104 103
 // Heaters / Fans
105 104
 //
106 105
 
107
-#define HEATER_BED_PIN     P2_07
108
-#define HEATER_0_PIN       P2_04
109
-#define HEATER_1_PIN       P2_05
106
+#define HEATER_BED_PIN                     P2_07
107
+#define HEATER_0_PIN                       P2_04
108
+#define HEATER_1_PIN                       P2_05
110 109
 #ifndef FAN_PIN
111
-  #define FAN_PIN          P0_26
110
+  #define FAN_PIN                          P0_26
112 111
 #endif
113
-#define FAN1_PIN           P1_22
112
+#define FAN1_PIN                           P1_22
114 113
 
115 114
 //
116 115
 // Display
117 116
 //
118 117
 
119 118
 #if ANY(VIKI2, miniVIKI)
120
-  #define BEEPER_PIN       P1_31
121
-  #define DOGLCD_A0        P2_06
122
-  #define DOGLCD_CS        P0_16
119
+  #define BEEPER_PIN                       P1_31
120
+  #define DOGLCD_A0                        P2_06
121
+  #define DOGLCD_CS                        P0_16
123 122
 
124
-  #define BTN_EN1          P3_25
125
-  #define BTN_EN2          P3_26
126
-  #define BTN_ENC          P2_11
123
+  #define BTN_EN1                          P3_25
124
+  #define BTN_EN2                          P3_26
125
+  #define BTN_ENC                          P2_11
127 126
 
128
-  #define SD_DETECT_PIN    P1_18
129
-  #define SDSS             P1_21
127
+  #define SD_DETECT_PIN                    P1_18
128
+  #define SDSS                             P1_21
130 129
 
131
-  #define STAT_LED_RED_PIN P1_19
132
-  #define STAT_LED_BLUE_PIN P1_20
130
+  #define STAT_LED_RED_PIN                 P1_19
131
+  #define STAT_LED_BLUE_PIN                P1_20
133 132
 #endif

+ 73
- 73
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h Переглянути файл

@@ -37,74 +37,74 @@
37 37
 //
38 38
 // LED
39 39
 //
40
-#define LED_PIN            P1_18
40
+#define LED_PIN                            P1_18
41 41
 
42 42
 //
43 43
 // Servos
44 44
 //
45
-#define SERVO0_PIN         P1_29
45
+#define SERVO0_PIN                         P1_29
46 46
 
47 47
 //
48 48
 // Limit Switches
49 49
 //
50
-#define X_STOP_PIN         P1_24
51
-#define Y_STOP_PIN         P1_26
52
-#define Z_STOP_PIN         P1_28
50
+#define X_STOP_PIN                         P1_24
51
+#define Y_STOP_PIN                         P1_26
52
+#define Z_STOP_PIN                         P1_28
53 53
 
54 54
 #ifndef FIL_RUNOUT_PIN
55
-  #define FIL_RUNOUT_PIN   P2_04
55
+  #define FIL_RUNOUT_PIN                   P2_04
56 56
 #endif
57 57
 
58 58
 #ifndef FILWIDTH_PIN
59
-  #define FILWIDTH_PIN         P0_25_A2   // Analog Input (P0_25)
59
+  #define FILWIDTH_PIN                  P0_25_A2  // Analog Input (P0_25)
60 60
 #endif
61 61
 
62 62
 //
63 63
 // Steppers
64 64
 //
65
-#define X_STEP_PIN         P2_01
66
-#define X_DIR_PIN          P0_11
67
-#define X_ENABLE_PIN       P0_10
65
+#define X_STEP_PIN                         P2_01
66
+#define X_DIR_PIN                          P0_11
67
+#define X_ENABLE_PIN                       P0_10
68 68
 
69
-#define Y_STEP_PIN         P2_02
70
-#define Y_DIR_PIN          P0_20
71
-#define Y_ENABLE_PIN       P0_19
69
+#define Y_STEP_PIN                         P2_02
70
+#define Y_DIR_PIN                          P0_20
71
+#define Y_ENABLE_PIN                       P0_19
72 72
 
73
-#define Z_STEP_PIN         P2_03
74
-#define Z_DIR_PIN          P0_22
75
-#define Z_ENABLE_PIN       P0_21
73
+#define Z_STEP_PIN                         P2_03
74
+#define Z_DIR_PIN                          P0_22
75
+#define Z_ENABLE_PIN                       P0_21
76 76
 
77
-#define E0_STEP_PIN        P2_00
78
-#define E0_DIR_PIN         P0_05
79
-#define E0_ENABLE_PIN      P0_04
77
+#define E0_STEP_PIN                        P2_00
78
+#define E0_DIR_PIN                         P0_05
79
+#define E0_ENABLE_PIN                      P0_04
80 80
 
81 81
 //
82 82
 // DIGIPOT slave addresses
83 83
 //
84 84
 #ifndef DIGIPOT_I2C_ADDRESS_A
85
-  #define DIGIPOT_I2C_ADDRESS_A 0x2C   // unshifted slave address for first DIGIPOT
85
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C              // unshifted slave address for first DIGIPOT
86 86
 #endif
87 87
 
88 88
 #ifndef DIGIPOT_I2C_ADDRESS_B
89
-  #define DIGIPOT_I2C_ADDRESS_B 0x2E   // unshifted slave address for second DIGIPOT
89
+  #define DIGIPOT_I2C_ADDRESS_B 0x2E              // unshifted slave address for second DIGIPOT
90 90
 #endif
91 91
 
92 92
 //
93 93
 // Temperature Sensors
94 94
 // 3.3V max when defined as an analog input
95 95
 //
96
-#define TEMP_BED_PIN        P0_23_A0   // A0 (TH1)
97
-#define TEMP_0_PIN          P0_24_A1   // A1 (TH2)
96
+#define TEMP_BED_PIN                    P0_23_A0  // A0 (TH1)
97
+#define TEMP_0_PIN                      P0_24_A1  // A1 (TH2)
98 98
 
99 99
 //
100 100
 // Heaters / Fans
101 101
 //
102
-#define HEATER_BED_PIN     P2_07
103
-#define HEATER_0_PIN       P2_05
102
+#define HEATER_BED_PIN                     P2_07
103
+#define HEATER_0_PIN                       P2_05
104 104
 #ifndef FAN_PIN
105
-  #define FAN_PIN          P0_26
105
+  #define FAN_PIN                          P0_26
106 106
 #endif
107
-#define FAN1_PIN           P1_25
107
+#define FAN1_PIN                           P1_25
108 108
 
109 109
 //
110 110
 // Display
@@ -118,61 +118,61 @@
118 118
     // 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
119 119
     // Requires REVERSE_ENCODER_DIRECTION in Configuration.h
120 120
 
121
-    #define BEEPER_PIN     P2_11   // J3-3 & AUX-4
121
+    #define BEEPER_PIN                     P2_11  // J3-3 & AUX-4
122 122
 
123
-    #define BTN_EN1        P0_16   // J3-7 & AUX-4
124
-    #define BTN_EN2        P1_23   // J3-5 & AUX-4
125
-    #define BTN_ENC        P3_25   // J3-4 & AUX-4
123
+    #define BTN_EN1                        P0_16  // J3-7 & AUX-4
124
+    #define BTN_EN2                        P1_23  // J3-5 & AUX-4
125
+    #define BTN_ENC                        P3_25  // J3-4 & AUX-4
126 126
 
127
-    #define LCD_PINS_RS    P0_15   // J3-9 & AUX-4 (CS)
128
-    #define LCD_PINS_ENABLE P0_18  // J3-10 & AUX-3 (SID, MOSI)
129
-    #define LCD_PINS_D4    P2_06   // J3-8 & AUX-3 (SCK, CLK)
127
+    #define LCD_PINS_RS                    P0_15  // J3-9 & AUX-4 (CS)
128
+    #define LCD_PINS_ENABLE                P0_18  // J3-10 & AUX-3 (SID, MOSI)
129
+    #define LCD_PINS_D4                    P2_06  // J3-8 & AUX-3 (SCK, CLK)
130 130
 
131 131
   #else
132 132
 
133
-    #define BTN_EN1        P3_26   // (31) J3-2 & AUX-4
134
-    #define BTN_EN2        P3_25   // (33) J3-4 & AUX-4
135
-    #define BTN_ENC        P2_11   // (35) J3-3 & AUX-4
133
+    #define BTN_EN1                        P3_26  // (31) J3-2 & AUX-4
134
+    #define BTN_EN2                        P3_25  // (33) J3-4 & AUX-4
135
+    #define BTN_ENC                        P2_11  // (35) J3-3 & AUX-4
136 136
 
137
-    #define SD_DETECT_PIN  P1_31   // (49) not 5V tolerant   J3-1 & AUX-3
138
-    #define KILL_PIN       P1_22   // (41) J5-4 & AUX-4
139
-    #define LCD_PINS_RS    P0_16   // (16) J3-7 & AUX-4
140
-    #define LCD_SDSS       P0_16   // (16) J3-7 & AUX-4
141
-    #define LCD_BACKLIGHT_PIN P0_16 // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
142
-    #define LCD_PINS_ENABLE P0_18  // (51) (MOSI) J3-10 & AUX-3
143
-    #define LCD_PINS_D4    P0_15   // (52) (SCK)  J3-9 & AUX-3
137
+    #define SD_DETECT_PIN                  P1_31  // (49) not 5V tolerant   J3-1 & AUX-3
138
+    #define KILL_PIN                       P1_22  // (41) J5-4 & AUX-4
139
+    #define LCD_PINS_RS                    P0_16  // (16) J3-7 & AUX-4
140
+    #define LCD_SDSS                       P0_16  // (16) J3-7 & AUX-4
141
+    #define LCD_BACKLIGHT_PIN              P0_16  // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
142
+    #define LCD_PINS_ENABLE                P0_18  // (51) (MOSI) J3-10 & AUX-3
143
+    #define LCD_PINS_D4                    P0_15  // (52) (SCK)  J3-9 & AUX-3
144 144
 
145
-    #define DOGLCD_A0      P2_06   // (59) J3-8 & AUX-2
145
+    #define DOGLCD_A0                      P2_06  // (59) J3-8 & AUX-2
146 146
 
147 147
     #if ENABLED(REPRAPWORLD_KEYPAD)
148
-      #define SHIFT_OUT    P0_18   // (51)  (MOSI) J3-10 & AUX-3
149
-      #define SHIFT_CLK    P0_15   // (52)  (SCK)  J3-9 & AUX-3
150
-      #define SHIFT_LD     P1_31   // (49)  not 5V tolerant   J3-1 & AUX-3
148
+      #define SHIFT_OUT                    P0_18  // (51)  (MOSI) J3-10 & AUX-3
149
+      #define SHIFT_CLK                    P0_15  // (52)  (SCK)  J3-9 & AUX-3
150
+      #define SHIFT_LD                     P1_31  // (49)  not 5V tolerant   J3-1 & AUX-3
151 151
     #elif DISABLED(NEWPANEL)
152
-      //#define SHIFT_OUT  P2_11   // (35)  J3-3 & AUX-4
153
-      //#define SHIFT_CLK  P3_26   // (31)  J3-2 & AUX-4
154
-      //#define SHIFT_LD   P3_25   // (33)  J3-4 & AUX-4
155
-      //#define SHIFT_EN   P1_22   // (41)  J5-4 & AUX-4
152
+      //#define SHIFT_OUT                  P2_11  // (35)  J3-3 & AUX-4
153
+      //#define SHIFT_CLK                  P3_26  // (31)  J3-2 & AUX-4
154
+      //#define SHIFT_LD                   P3_25  // (33)  J3-4 & AUX-4
155
+      //#define SHIFT_EN                   P1_22  // (41)  J5-4 & AUX-4
156 156
     #endif
157 157
 
158 158
     #if ANY(VIKI2, miniVIKI)
159 159
       //#define LCD_SCREEN_ROT_180
160 160
 
161
-      #define BEEPER_PIN   P1_30   // (37) may change if cable changes
162
-      #define DOGLCD_CS    P0_26   // (63) J5-3 & AUX-2
163
-      #define DOGLCD_SCK   SCK_PIN
164
-      #define DOGLCD_MOSI  MOSI_PIN
161
+      #define BEEPER_PIN                   P1_30  // (37) may change if cable changes
162
+      #define DOGLCD_CS                    P0_26  // (63) J5-3 & AUX-2
163
+      #define DOGLCD_SCK                 SCK_PIN
164
+      #define DOGLCD_MOSI               MOSI_PIN
165 165
 
166
-      #define STAT_LED_BLUE_PIN P0_26   // (63)  may change if cable changes
167
-      #define STAT_LED_RED_PIN  P1_21   // ( 6)  may change if cable changes
166
+      #define STAT_LED_BLUE_PIN            P0_26  // (63)  may change if cable changes
167
+      #define STAT_LED_RED_PIN             P1_21  // ( 6)  may change if cable changes
168 168
     #else
169 169
       #if ENABLED(ULTIPANEL)
170
-        #define LCD_PINS_D5 P1_17   // (71) ENET_MDIO
171
-        #define LCD_PINS_D6 P1_14   // (73) ENET_RX_ER
172
-        #define LCD_PINS_D7 P1_10   // (75) ENET_RXD1
170
+        #define LCD_PINS_D5                P1_17  // (71) ENET_MDIO
171
+        #define LCD_PINS_D6                P1_14  // (73) ENET_RX_ER
172
+        #define LCD_PINS_D7                P1_10  // (75) ENET_RXD1
173 173
       #endif
174
-      #define BEEPER_PIN   P1_30   // (37) not 5V tolerant
175
-      #define DOGLCD_CS    P0_16   // (16)
174
+      #define BEEPER_PIN                   P1_30  // (37) not 5V tolerant
175
+      #define DOGLCD_CS                    P0_16  // (16)
176 176
     #endif
177 177
 
178 178
     #if ENABLED(MINIPANEL)
@@ -199,22 +199,22 @@
199 199
 // SD Support
200 200
 //
201 201
 #ifndef SDCARD_CONNECTION
202
-  #define SDCARD_CONNECTION ONBOARD
202
+  #define SDCARD_CONNECTION              ONBOARD
203 203
 #endif
204 204
 
205
-#define ONBOARD_SD_CS_PIN  P0_06   // Chip select for "System" SD card
205
+#define ONBOARD_SD_CS_PIN                  P0_06  // Chip select for "System" SD card
206 206
 
207 207
 #if SD_CONNECTION_IS(LCD)
208
-  #define SCK_PIN          P0_15
209
-  #define MISO_PIN         P0_17
210
-  #define MOSI_PIN         P0_18
211
-  #define SS_PIN           P1_23
208
+  #define SCK_PIN                          P0_15
209
+  #define MISO_PIN                         P0_17
210
+  #define MOSI_PIN                         P0_18
211
+  #define SS_PIN                           P1_23
212 212
 #elif SD_CONNECTION_IS(ONBOARD)
213 213
   #undef SD_DETECT_PIN
214
-  #define SCK_PIN          P0_07
215
-  #define MISO_PIN         P0_08
216
-  #define MOSI_PIN         P0_09
217
-  #define SS_PIN           ONBOARD_SD_CS_PIN
214
+  #define SCK_PIN                          P0_07
215
+  #define MISO_PIN                         P0_08
216
+  #define MOSI_PIN                         P0_09
217
+  #define SS_PIN               ONBOARD_SD_CS_PIN
218 218
 #elif SD_CONNECTION_IS(CUSTOM_CABLE)
219 219
   #error "No custom SD drive cable defined for this board."
220 220
 #endif

+ 58
- 58
Marlin/src/pins/lpc1769/pins_COHESION3D_MINI.h Переглянути файл

@@ -40,53 +40,53 @@
40 40
 //
41 41
 // Servos
42 42
 //
43
-#define SERVO0_PIN         P1_23
43
+#define SERVO0_PIN                         P1_23
44 44
 
45 45
 //
46 46
 // Limit Switches
47 47
 //
48
-#define X_MIN_PIN          P1_24   // 10k pullup to 3.3V
49
-#define X_MAX_PIN          P1_25   // 10k pullup to 3.3V
50
-#define Y_MIN_PIN          P1_26   // 10k pullup to 3.3V
51
-#define Y_MAX_PIN          P1_27   // 10k pullup to 3.3V
52
-#define Z_MIN_PIN          P1_28   // 10k pullup to 3.3V
53
-#define Z_MAX_PIN          P1_29   // 10k pullup to 3.3V
48
+#define X_MIN_PIN                          P1_24  // 10k pullup to 3.3V
49
+#define X_MAX_PIN                          P1_25  // 10k pullup to 3.3V
50
+#define Y_MIN_PIN                          P1_26  // 10k pullup to 3.3V
51
+#define Y_MAX_PIN                          P1_27  // 10k pullup to 3.3V
52
+#define Z_MIN_PIN                          P1_28  // 10k pullup to 3.3V
53
+#define Z_MAX_PIN                          P1_29  // 10k pullup to 3.3V
54 54
 
55 55
 //
56 56
 // Steppers
57 57
 //
58
-#define X_STEP_PIN         P2_00
59
-#define X_DIR_PIN          P0_05
60
-#define X_ENABLE_PIN       P0_04
61
-#define X_CS_PIN           P1_10   // Ethernet Expansion - Pin 9
58
+#define X_STEP_PIN                         P2_00
59
+#define X_DIR_PIN                          P0_05
60
+#define X_ENABLE_PIN                       P0_04
61
+#define X_CS_PIN                           P1_10  // Ethernet Expansion - Pin 9
62 62
 
63
-#define Y_STEP_PIN         P2_01
64
-#define Y_DIR_PIN          P0_11
65
-#define Y_ENABLE_PIN       P0_10
66
-#define Y_CS_PIN           P1_09   // Ethernet Expansion - Pin 10
63
+#define Y_STEP_PIN                         P2_01
64
+#define Y_DIR_PIN                          P0_11
65
+#define Y_ENABLE_PIN                       P0_10
66
+#define Y_CS_PIN                           P1_09  // Ethernet Expansion - Pin 10
67 67
 
68
-#define Z_STEP_PIN         P2_02
69
-#define Z_DIR_PIN          P0_20
70
-#define Z_ENABLE_PIN       P0_19
71
-#define Z_CS_PIN           P1_00   // Ethernet Expansion - Pin 11
68
+#define Z_STEP_PIN                         P2_02
69
+#define Z_DIR_PIN                          P0_20
70
+#define Z_ENABLE_PIN                       P0_19
71
+#define Z_CS_PIN                           P1_00  // Ethernet Expansion - Pin 11
72 72
 
73
-#define E0_STEP_PIN        P2_03
74
-#define E0_DIR_PIN         P0_22
75
-#define E0_ENABLE_PIN      P0_21
76
-#define E0_CS_PIN          P1_04   // Ethernet Expansion - Pin 12
73
+#define E0_STEP_PIN                        P2_03
74
+#define E0_DIR_PIN                         P0_22
75
+#define E0_ENABLE_PIN                      P0_21
76
+#define E0_CS_PIN                          P1_04  // Ethernet Expansion - Pin 12
77 77
 
78 78
 //
79 79
 // Default pins for TMC software SPI
80 80
 //
81 81
 #if ENABLED(TMC_USE_SW_SPI)
82 82
   #ifndef TMC_SW_MOSI
83
-    #define TMC_SW_MOSI    P1_16   // Ethernet Expansion - Pin 5
83
+    #define TMC_SW_MOSI                    P1_16  // Ethernet Expansion - Pin 5
84 84
   #endif
85 85
   #ifndef TMC_SW_MISO
86
-    #define TMC_SW_MISO    P1_17   // Ethernet Expansion - Pin 6
86
+    #define TMC_SW_MISO                    P1_17  // Ethernet Expansion - Pin 6
87 87
   #endif
88 88
   #ifndef TMC_SW_SCK
89
-    #define TMC_SW_SCK     P1_08   // Ethernet Expansion - Pin 7
89
+    #define TMC_SW_SCK                     P1_08  // Ethernet Expansion - Pin 7
90 90
   #endif
91 91
 #endif
92 92
 
@@ -94,42 +94,42 @@
94 94
 // Analog Inputs
95 95
 //  3.3V max when defined as an analog input
96 96
 //
97
-#define TEMP_0_PIN          P0_23_A0   // P0_23
98
-#define TEMP_BED_PIN        P0_24_A1   // P0_24
97
+#define TEMP_0_PIN                      P0_23_A0  // P0_23
98
+#define TEMP_BED_PIN                    P0_24_A1  // P0_24
99 99
 
100 100
 //
101 101
 // Heaters / Fans
102 102
 //
103
-#define HEATER_BED_PIN     P2_05
104
-#define HEATER_0_PIN       P2_07   // FET 1
103
+#define HEATER_BED_PIN                     P2_05
104
+#define HEATER_0_PIN                       P2_07  // FET 1
105 105
 #ifndef FAN_PIN
106
-  #define FAN_PIN          P2_06   // FET 3
106
+  #define FAN_PIN                          P2_06  // FET 3
107 107
 #endif
108 108
 
109 109
 //
110 110
 // Auto fans
111 111
 //
112
-#define AUTO_FAN_PIN       P2_04   // FET 4
112
+#define AUTO_FAN_PIN                       P2_04  // FET 4
113 113
 
114
-#define ORIG_E0_AUTO_FAN_PIN AUTO_FAN_PIN
115
-#define ORIG_E1_AUTO_FAN_PIN AUTO_FAN_PIN
116
-#define ORIG_E2_AUTO_FAN_PIN AUTO_FAN_PIN
114
+#define ORIG_E0_AUTO_FAN_PIN        AUTO_FAN_PIN
115
+#define ORIG_E1_AUTO_FAN_PIN        AUTO_FAN_PIN
116
+#define ORIG_E2_AUTO_FAN_PIN        AUTO_FAN_PIN
117 117
 
118 118
 //
119 119
 // Misc. Functions
120 120
 //
121
-#define LED_PIN            P4_28   // Play LED
121
+#define LED_PIN                            P4_28  // Play LED
122 122
 
123 123
 //
124 124
 // M3/M4/M5 - Spindle/Laser Control
125 125
 //
126 126
 #if HAS_CUTTER
127 127
   #undef HEATER_0_PIN
128
-  #define SPINDLE_LASER_ENA_PIN     P2_07   // FET 1
128
+  #define SPINDLE_LASER_ENA_PIN            P2_07  // FET 1
129 129
   #undef HEATER_BED_PIN
130
-  #define SPINDLE_LASER_PWM_PIN     P2_05   // Bed FET
130
+  #define SPINDLE_LASER_PWM_PIN            P2_05  // Bed FET
131 131
   #undef FAN_PIN
132
-  #define SPINDLE_DIR_PIN           P2_06   // FET 3
132
+  #define SPINDLE_DIR_PIN                  P2_06  // FET 3
133 133
 #endif
134 134
 
135 135
 //
@@ -144,18 +144,18 @@
144 144
 //
145 145
 #if HAS_SPI_LCD
146 146
 
147
-  #define BEEPER_PIN       P0_27   // EXP2-7 - open drain
147
+  #define BEEPER_PIN                       P0_27  // EXP2-7 - open drain
148 148
 
149
-  #define BTN_EN1          P3_26   // EXP2-5
150
-  #define BTN_EN2          P3_25   // EXP2-3
151
-  #define BTN_ENC          P1_30   // EXP1-2
149
+  #define BTN_EN1                          P3_26  // EXP2-5
150
+  #define BTN_EN2                          P3_25  // EXP2-3
151
+  #define BTN_ENC                          P1_30  // EXP1-2
152 152
 
153
-  #define LCD_PINS_RS      P0_16   // EXP1-4
154
-  #define LCD_SDSS         P0_28   // EXP2-4
155
-  #define LCD_PINS_ENABLE  P0_18   // EXP1-3
156
-  #define LCD_PINS_D4      P0_15   // EXP1-5
153
+  #define LCD_PINS_RS                      P0_16  // EXP1-4
154
+  #define LCD_SDSS                         P0_28  // EXP2-4
155
+  #define LCD_PINS_ENABLE                  P0_18  // EXP1-3
156
+  #define LCD_PINS_D4                      P0_15  // EXP1-5
157 157
 
158
-  #define KILL_PIN         P2_11   // EXP2-10
158
+  #define KILL_PIN                         P2_11  // EXP2-10
159 159
 
160 160
   #if ENABLED(SDSUPPORT)
161 161
     #error "SDSUPPORT is not currently supported by the Cohesion3D boards"
@@ -166,13 +166,13 @@
166 166
 //
167 167
 // Ethernet pins
168 168
 //
169
-#define ENET_MDIO          P1_17
170
-#define ENET_RX_ER         P1_14
171
-#define ENET_RXD1          P1_10
172
-#define ENET_MOC           P1_16
173
-#define REF_CLK            P1_15
174
-#define ENET_RXD0          P1_09
175
-#define ENET_CRS           P1_08
176
-#define ENET_TX_EN         P1_04
177
-#define ENET_TXD0          P1_00
178
-#define ENET_TXD1          P1_01
169
+#define ENET_MDIO                          P1_17
170
+#define ENET_RX_ER                         P1_14
171
+#define ENET_RXD1                          P1_10
172
+#define ENET_MOC                           P1_16
173
+#define REF_CLK                            P1_15
174
+#define ENET_RXD0                          P1_09
175
+#define ENET_CRS                           P1_08
176
+#define ENET_TX_EN                         P1_04
177
+#define ENET_TXD0                          P1_00
178
+#define ENET_TXD1                          P1_01

+ 103
- 103
Marlin/src/pins/lpc1769/pins_COHESION3D_REMIX.h Переглянути файл

@@ -40,70 +40,70 @@
40 40
 //
41 41
 // Servos
42 42
 //
43
-#define SERVO0_PIN         P2_04
43
+#define SERVO0_PIN                         P2_04
44 44
 
45 45
 //
46 46
 // Limit Switches
47 47
 //
48
-#define X_MIN_PIN          P1_24   // 10k pullup to 3.3V
49
-#define X_MAX_PIN          P1_25   // 10k pullup to 3.3V
50
-#define Y_MIN_PIN          P1_26   // 10k pullup to 3.3V
51
-#define Y_MAX_PIN          P1_27   // 10k pullup to 3.3V
52
-#define Z_MIN_PIN          P1_28   // 10k pullup to 3.3V
53
-#define Z_MAX_PIN          P1_29   // 10k pullup to 3.3V
48
+#define X_MIN_PIN                          P1_24  // 10k pullup to 3.3V
49
+#define X_MAX_PIN                          P1_25  // 10k pullup to 3.3V
50
+#define Y_MIN_PIN                          P1_26  // 10k pullup to 3.3V
51
+#define Y_MAX_PIN                          P1_27  // 10k pullup to 3.3V
52
+#define Z_MIN_PIN                          P1_28  // 10k pullup to 3.3V
53
+#define Z_MAX_PIN                          P1_29  // 10k pullup to 3.3V
54 54
 
55 55
 //
56 56
 // Z Probe (when not Z_MIN_PIN)
57 57
 //
58 58
 #ifndef Z_MIN_PROBE_PIN
59
-  #define Z_MIN_PROBE_PIN  P1_29
59
+  #define Z_MIN_PROBE_PIN                  P1_29
60 60
 #endif
61 61
 
62 62
 //
63 63
 // Steppers
64 64
 //
65
-#define X_STEP_PIN         P2_00
66
-#define X_DIR_PIN          P0_05
67
-#define X_ENABLE_PIN       P0_04
68
-#define X_CS_PIN           P1_10   // Ethernet Expansion - Pin 9
69
-
70
-#define Y_STEP_PIN         P2_01
71
-#define Y_DIR_PIN          P0_11
72
-#define Y_ENABLE_PIN       P0_10
73
-#define Y_CS_PIN           P1_09   // Ethernet Expansion - Pin 10
74
-
75
-#define Z_STEP_PIN         P2_02
76
-#define Z_DIR_PIN          P0_20
77
-#define Z_ENABLE_PIN       P0_19
78
-#define Z_CS_PIN           P1_00   // Ethernet Expansion - Pin 11
79
-
80
-#define E0_STEP_PIN        P2_03
81
-#define E0_DIR_PIN         P0_22
82
-#define E0_ENABLE_PIN      P0_21
83
-#define E0_CS_PIN          P1_04   // Ethernet Expansion - Pin 12
84
-
85
-#define E1_STEP_PIN        P2_08
86
-#define E1_DIR_PIN         P2_13
87
-#define E1_ENABLE_PIN      P4_29
88
-#define E1_CS_PIN          P1_01   // Ethernet Expansion - Pin 14
89
-
90
-#define E2_STEP_PIN        P1_20
91
-#define E2_DIR_PIN         P1_19
92
-#define E2_ENABLE_PIN      P1_21
93
-#define E2_CS_PIN          P1_18   // FET 6
65
+#define X_STEP_PIN                         P2_00
66
+#define X_DIR_PIN                          P0_05
67
+#define X_ENABLE_PIN                       P0_04
68
+#define X_CS_PIN                           P1_10  // Ethernet Expansion - Pin 9
69
+
70
+#define Y_STEP_PIN                         P2_01
71
+#define Y_DIR_PIN                          P0_11
72
+#define Y_ENABLE_PIN                       P0_10
73
+#define Y_CS_PIN                           P1_09  // Ethernet Expansion - Pin 10
74
+
75
+#define Z_STEP_PIN                         P2_02
76
+#define Z_DIR_PIN                          P0_20
77
+#define Z_ENABLE_PIN                       P0_19
78
+#define Z_CS_PIN                           P1_00  // Ethernet Expansion - Pin 11
79
+
80
+#define E0_STEP_PIN                        P2_03
81
+#define E0_DIR_PIN                         P0_22
82
+#define E0_ENABLE_PIN                      P0_21
83
+#define E0_CS_PIN                          P1_04  // Ethernet Expansion - Pin 12
84
+
85
+#define E1_STEP_PIN                        P2_08
86
+#define E1_DIR_PIN                         P2_13
87
+#define E1_ENABLE_PIN                      P4_29
88
+#define E1_CS_PIN                          P1_01  // Ethernet Expansion - Pin 14
89
+
90
+#define E2_STEP_PIN                        P1_20
91
+#define E2_DIR_PIN                         P1_19
92
+#define E2_ENABLE_PIN                      P1_21
93
+#define E2_CS_PIN                          P1_18  // FET 6
94 94
 
95 95
 //
96 96
 // Default pins for TMC software SPI
97 97
 //
98 98
 #if ENABLED(TMC_USE_SW_SPI)
99 99
   #ifndef TMC_SW_MOSI
100
-    #define TMC_SW_MOSI    P1_16   // Ethernet Expansion - Pin 5
100
+    #define TMC_SW_MOSI                    P1_16  // Ethernet Expansion - Pin 5
101 101
   #endif
102 102
   #ifndef TMC_SW_MISO
103
-    #define TMC_SW_MISO    P1_17   // Ethernet Expansion - Pin 6
103
+    #define TMC_SW_MISO                    P1_17  // Ethernet Expansion - Pin 6
104 104
   #endif
105 105
   #ifndef TMC_SW_SCK
106
-    #define TMC_SW_SCK     P1_08   // Ethernet Expansion - Pin 7
106
+    #define TMC_SW_SCK                     P1_08  // Ethernet Expansion - Pin 7
107 107
   #endif
108 108
 #endif
109 109
 
@@ -111,42 +111,42 @@
111 111
 // Analog Inputs
112 112
 //  3.3V max when defined as an analog input
113 113
 //
114
-#define TEMP_0_PIN          P0_23_A0
115
-#define TEMP_BED_PIN        P0_24_A1
116
-#define TEMP_1_PIN          P0_25_A2
114
+#define TEMP_0_PIN                      P0_23_A0
115
+#define TEMP_BED_PIN                    P0_24_A1
116
+#define TEMP_1_PIN                      P0_25_A2
117 117
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
118
-  #define FILWIDTH_PIN      P0_26_A3
118
+  #define FILWIDTH_PIN                  P0_26_A3
119 119
 #else
120
-  #define TEMP_2_PIN        P0_26_A3
120
+  #define TEMP_2_PIN                    P0_26_A3
121 121
 #endif
122 122
 
123 123
 //
124 124
 // Heaters / Fans
125 125
 //
126
-#define HEATER_BED_PIN     P2_05
127
-#define HEATER_0_PIN       P2_07   // FET 1
128
-#define HEATER_1_PIN       P1_23   // FET 2
129
-#define HEATER_2_PIN       P1_22   // FET 3
126
+#define HEATER_BED_PIN                     P2_05
127
+#define HEATER_0_PIN                       P2_07  // FET 1
128
+#define HEATER_1_PIN                       P1_23  // FET 2
129
+#define HEATER_2_PIN                       P1_22  // FET 3
130 130
 #ifndef FAN_PIN
131
-  #define FAN_PIN          P2_06   // FET 4
131
+  #define FAN_PIN                          P2_06  // FET 4
132 132
 #endif
133 133
 
134 134
 //
135 135
 // Auto fans
136 136
 //
137 137
 #if HOTENDS == 3
138
-  #define AUTO_FAN_PIN     P1_18   // FET 6
138
+  #define AUTO_FAN_PIN                     P1_18  // FET 6
139 139
 #else
140
-  #define AUTO_FAN_PIN     P1_22   // FET 3
140
+  #define AUTO_FAN_PIN                     P1_22  // FET 3
141 141
 #endif
142
-#define ORIG_E0_AUTO_FAN_PIN  AUTO_FAN_PIN
143
-#define ORIG_E1_AUTO_FAN_PIN  AUTO_FAN_PIN
144
-#define ORIG_E2_AUTO_FAN_PIN  AUTO_FAN_PIN
142
+#define ORIG_E0_AUTO_FAN_PIN        AUTO_FAN_PIN
143
+#define ORIG_E1_AUTO_FAN_PIN        AUTO_FAN_PIN
144
+#define ORIG_E2_AUTO_FAN_PIN        AUTO_FAN_PIN
145 145
 
146 146
 //
147 147
 // Misc. Functions
148 148
 //
149
-#define LED_PIN            P4_28   // Play LED
149
+#define LED_PIN                            P4_28  // Play LED
150 150
 
151 151
 //
152 152
 // M3/M4/M5 - Spindle/Laser Control
@@ -155,9 +155,9 @@
155 155
   #undef HEATER_0_PIN
156 156
   #undef HEATER_BED_PIN
157 157
   #undef FAN_PIN
158
-  #define SPINDLE_LASER_ENA_PIN P2_07   // FET 1
159
-  #define SPINDLE_LASER_PWM_PIN P2_05   // Bed FET
160
-  #define SPINDLE_DIR_PIN       P2_06   // FET 4
158
+  #define SPINDLE_LASER_ENA_PIN            P2_07  // FET 1
159
+  #define SPINDLE_LASER_PWM_PIN            P2_05  // Bed FET
160
+  #define SPINDLE_DIR_PIN                  P2_06  // FET 4
161 161
 #endif
162 162
 
163 163
 //
@@ -173,54 +173,54 @@
173 173
 
174 174
 #if ENABLED(FYSETC_MINI_12864)
175 175
 
176
-  #define FORCE_SOFT_SPI    // REQUIRED - results in LCD soft SPI mode 3
176
+  #define FORCE_SOFT_SPI                          // REQUIRED - results in LCD soft SPI mode 3
177 177
 
178
-  #define BEEPER_PIN      P1_31   // EXP1-1
179
-  #define BTN_ENC         P1_30   // EXP1-2
180
-  #define DOGLCD_CS       P0_18   // EXP1-3
181
-  #define DOGLCD_A0       P0_16   // EXP1-4
182
-  #define LCD_RESET_PIN   P0_15   // EXP1-5
178
+  #define BEEPER_PIN                       P1_31  // EXP1-1
179
+  #define BTN_ENC                          P1_30  // EXP1-2
180
+  #define DOGLCD_CS                        P0_18  // EXP1-3
181
+  #define DOGLCD_A0                        P0_16  // EXP1-4
182
+  #define LCD_RESET_PIN                    P0_15  // EXP1-5
183 183
 
184 184
   // A custom cable is REQUIRED for EXP2 cable because the SCK & MOSI on the card's EXP2 are dedicated
185 185
   // to the onboard SD card.  All required EXP2 signals come from the Ethernet connector.  Pin 1 of this
186 186
   // connector is the one nearest the motor power connector.
187
-  #define DOGLCD_SCK      P1_17   // EXP2-2  =>  Ethernet pin  5 (bottom, 3 from left)
188
-  #define BTN_EN2         P1_09   // EXP2-3  =>  Ethernet pin  9 (bottom, 5 from left)
189
-  #define BTN_EN1         P1_04   // EXP2-5  =>  Ethernet pin 11 (bottom, 6 from left)
190
-  #define DOGLCD_MOSI     P1_01   // EXP2-6  =>  Ethernet pin 13 (bottom, 7 from left)
187
+  #define DOGLCD_SCK                       P1_17  // EXP2-2  =>  Ethernet pin  5 (bottom, 3 from left)
188
+  #define BTN_EN2                          P1_09  // EXP2-3  =>  Ethernet pin  9 (bottom, 5 from left)
189
+  #define BTN_EN1                          P1_04  // EXP2-5  =>  Ethernet pin 11 (bottom, 6 from left)
190
+  #define DOGLCD_MOSI                      P1_01  // EXP2-6  =>  Ethernet pin 13 (bottom, 7 from left)
191 191
 
192 192
   // A custom EXP1 cable is required colored LEDs. Pins 1-5, 9, 10 of the cable go to pins 1-5, 9, 10
193 193
   // on the board's EXP1 connector. Pins 6, 7, and 8 of the EXP1 cable go to the Ethernet connector.
194 194
   // Rev 1.2 displays do NOT require the RGB LEDs. 2.0 and 2.1 displays do require RGB.
195 195
   #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
196 196
     #ifndef RGB_LED_R_PIN
197
-      #define RGB_LED_R_PIN P1_16 // EXP1-6  =>  Ethernet pin  6 (top row, 3 from left)
197
+      #define RGB_LED_R_PIN                P1_16  // EXP1-6  =>  Ethernet pin  6 (top row, 3 from left)
198 198
     #endif
199 199
     #ifndef RGB_LED_G_PIN
200
-      #define RGB_LED_G_PIN P1_10 // EXP1-7  =>  Ethernet pin 10 (top row, 5 from left)
200
+      #define RGB_LED_G_PIN                P1_10  // EXP1-7  =>  Ethernet pin 10 (top row, 5 from left)
201 201
     #endif
202 202
     #ifndef RGB_LED_B_PIN
203
-      #define RGB_LED_B_PIN P1_00 // EXP1-8  =>  Ethernet pin 12 (top row, 6 from left)
203
+      #define RGB_LED_B_PIN                P1_00  // EXP1-8  =>  Ethernet pin 12 (top row, 6 from left)
204 204
     #endif
205 205
   #elif ENABLED(FYSETC_MINI_12864_2_1)
206
-    #define NEOPIXEL_PIN  P1_16   // EXP1-6  =>  Ethernet pin  6 (top row, 3 from left)
206
+    #define NEOPIXEL_PIN                   P1_16  // EXP1-6  =>  Ethernet pin  6 (top row, 3 from left)
207 207
   #endif
208 208
 
209 209
 #elif HAS_SPI_LCD
210 210
 
211
-  #define BEEPER_PIN      P1_31   // EXP1-1
212
-  //#define SD_DETECT_PIN P0_27   // EXP2-7
211
+  #define BEEPER_PIN                       P1_31  // EXP1-1
212
+  //#define SD_DETECT_PIN                  P0_27  // EXP2-7
213 213
 
214
-  #define BTN_EN1         P3_26   // EXP2-5
215
-  #define BTN_EN2         P3_25   // EXP2-3
216
-  #define BTN_ENC         P1_30   // EXP1-2
214
+  #define BTN_EN1                          P3_26  // EXP2-5
215
+  #define BTN_EN2                          P3_25  // EXP2-3
216
+  #define BTN_ENC                          P1_30  // EXP1-2
217 217
 
218
-  #define LCD_PINS_RS     P0_16   // EXP1-4
219
-  #define LCD_SDSS        P0_28   // EXP2-4
220
-  #define LCD_PINS_ENABLE P0_18   // EXP1-3
221
-  #define LCD_PINS_D4     P0_15   // EXP1-5
218
+  #define LCD_PINS_RS                      P0_16  // EXP1-4
219
+  #define LCD_SDSS                         P0_28  // EXP2-4
220
+  #define LCD_PINS_ENABLE                  P0_18  // EXP1-3
221
+  #define LCD_PINS_D4                      P0_15  // EXP1-5
222 222
 
223
-  #define KILL_PIN        P2_11   // EXP2-10
223
+  #define KILL_PIN                         P2_11  // EXP2-10
224 224
 
225 225
 #endif // HAS_SPI_LCD
226 226
 
@@ -228,22 +228,22 @@
228 228
 // SD Support
229 229
 //
230 230
 #ifndef SDCARD_CONNECTION
231
-  #define SDCARD_CONNECTION ONBOARD
231
+  #define SDCARD_CONNECTION              ONBOARD
232 232
 #endif
233 233
 
234
-#define ONBOARD_SD_CS_PIN  P0_06   // Chip select for "System" SD card
234
+#define ONBOARD_SD_CS_PIN                  P0_06  // Chip select for "System" SD card
235 235
 
236 236
 #if SD_CONNECTION_IS(LCD)
237
-  #define SCK_PIN          P0_07   // (52)  system defined J3-9 & AUX-3
238
-  #define MISO_PIN         P0_08   // (50)  system defined J3-10 & AUX-3
239
-  #define MOSI_PIN         P0_09   // (51)  system defined J3-10 & AUX-3
240
-  #define SS_PIN           P1_23   // (53)  system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
237
+  #define SCK_PIN                          P0_07  // (52)  system defined J3-9 & AUX-3
238
+  #define MISO_PIN                         P0_08  // (50)  system defined J3-10 & AUX-3
239
+  #define MOSI_PIN                         P0_09  // (51)  system defined J3-10 & AUX-3
240
+  #define SS_PIN                           P1_23  // (53)  system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
241 241
 #elif SD_CONNECTION_IS(ONBOARD)
242 242
   #undef SD_DETECT_PIN
243
-  #define SCK_PIN          P0_07
244
-  #define MISO_PIN         P0_08
245
-  #define MOSI_PIN         P0_09
246
-  #define SS_PIN           ONBOARD_SD_CS_PIN
243
+  #define SCK_PIN                          P0_07
244
+  #define MISO_PIN                         P0_08
245
+  #define MOSI_PIN                         P0_09
246
+  #define SS_PIN               ONBOARD_SD_CS_PIN
247 247
 #elif SD_CONNECTION_IS(CUSTOM_CABLE)
248 248
   #error "No custom SD drive cable defined for this board."
249 249
 #endif
@@ -251,16 +251,16 @@
251 251
 //
252 252
 // Ethernet pins
253 253
 //
254
-//#define ENET_MDIO          P1_17   // Ethernet pin  5 (bottom, 3 from left)
255
-//#define ENET_RX_ER         P1_14
256
-//#define ENET_RXD1          P1_10   // Ethernet pin 10 (top row, 5 from left)
257
-//#define ENET_MOC           P1_16   // Ethernet pin  6 (top row, 3 from left)
258
-//#define REF_CLK            P1_15
259
-//#define ENET_RXD0          P1_09   // Ethernet pin  9 (bottom, 5 from left)
260
-//#define ENET_CRS           P1_08   // Ethernet pin  8 (top row, 4 from left) - INPUT ONLY
261
-//#define ENET_TX_EN         P1_04   // Ethernet pin 11 (bottom, 6 from left)
262
-//#define ENET_TXD0          P1_00   // Ethernet pin 12 (top row, 6 from left)
263
-//#define ENET_TXD1          P1_01   // Ethernet pin 13 (bottom, 7 from left)
254
+//#define ENET_MDIO                        P1_17  // Ethernet pin  5 (bottom, 3 from left)
255
+//#define ENET_RX_ER                       P1_14
256
+//#define ENET_RXD1                        P1_10  // Ethernet pin 10 (top row, 5 from left)
257
+//#define ENET_MOC                         P1_16  // Ethernet pin  6 (top row, 3 from left)
258
+//#define REF_CLK                          P1_15
259
+//#define ENET_RXD0                        P1_09  // Ethernet pin  9 (bottom, 5 from left)
260
+//#define ENET_CRS                         P1_08  // Ethernet pin  8 (top row, 4 from left) - INPUT ONLY
261
+//#define ENET_TX_EN                       P1_04  // Ethernet pin 11 (bottom, 6 from left)
262
+//#define ENET_TXD0                        P1_00  // Ethernet pin 12 (top row, 6 from left)
263
+//#define ENET_TXD1                        P1_01  // Ethernet pin 13 (bottom, 7 from left)
264 264
 
265 265
 /**
266 266
  *  EXP1 pins

+ 11
- 11
Marlin/src/pins/lpc1769/pins_MKS_SGEN.h Переглянути файл

@@ -47,10 +47,10 @@
47 47
 
48 48
 //#undef BTN_EN1
49 49
 //#undef BTN_EN2
50
-//#define BTN_EN1            P1_23   // EXP2.5
51
-//#define BTN_EN2            P1_22   // EXP2.3
50
+//#define BTN_EN1                          P1_23  // EXP2.5
51
+//#define BTN_EN2                          P1_22  // EXP2.3
52 52
 
53
-#if HAS_TMC220x
53
+#if HAS_TMC_UART
54 54
   /**
55 55
    * TMC2208/TMC2209 stepper drivers
56 56
    *
@@ -58,16 +58,16 @@
58 58
    * In the worst case you may have to give up the LCD.
59 59
    * RX pins must be interrupt-capable.
60 60
    */
61
-  #define X_SERIAL_TX_PIN  P4_29   // J8-2
62
-  #define X_SERIAL_RX_PIN  P4_29   // J8-2
61
+  #define X_SERIAL_TX_PIN                  P4_29  // J8-2
62
+  #define X_SERIAL_RX_PIN                  P4_29  // J8-2
63 63
 
64
-  #define Y_SERIAL_TX_PIN  P2_08   // J8-3
65
-  #define Y_SERIAL_RX_PIN  P2_08   // J8-3
64
+  #define Y_SERIAL_TX_PIN                  P2_08  // J8-3
65
+  #define Y_SERIAL_RX_PIN                  P2_08  // J8-3
66 66
 
67
-  #define Z_SERIAL_TX_PIN  P2_11   // J8-4
68
-  #define Z_SERIAL_RX_PIN  P2_11   // J8-4
69
-  #define E0_SERIAL_TX_PIN P2_13   // J8-5
70
-  #define E0_SERIAL_RX_PIN P2_13   // J8-5
67
+  #define Z_SERIAL_TX_PIN                  P2_11  // J8-4
68
+  #define Z_SERIAL_RX_PIN                  P2_11  // J8-4
69
+  #define E0_SERIAL_TX_PIN                 P2_13  // J8-5
70
+  #define E0_SERIAL_RX_PIN                 P2_13  // J8-5
71 71
 
72 72
   // Reduce baud rate to improve software serial reliability
73 73
   #define TMC_BAUD_RATE 19200

+ 41
- 41
Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h Переглянути файл

@@ -41,79 +41,79 @@
41 41
 //
42 42
 // Servos
43 43
 //
44
-#define SERVO0_PIN         P1_23
44
+#define SERVO0_PIN                         P1_23
45 45
 
46 46
 //
47 47
 // Limit Switches
48 48
 //
49
-#define X_MIN_PIN          P1_24
50
-#define X_MAX_PIN          P1_25
51
-#define Y_MIN_PIN          P1_26
52
-#define Y_MAX_PIN          P1_27
53
-#define Z_MIN_PIN          P1_28
54
-#define Z_MAX_PIN          P1_29
49
+#define X_MIN_PIN                          P1_24
50
+#define X_MAX_PIN                          P1_25
51
+#define Y_MIN_PIN                          P1_26
52
+#define Y_MAX_PIN                          P1_27
53
+#define Z_MIN_PIN                          P1_28
54
+#define Z_MAX_PIN                          P1_29
55 55
 
56 56
 //
57 57
 // Steppers
58 58
 //
59
-#define X_STEP_PIN         P2_00
60
-#define X_DIR_PIN          P0_05
61
-#define X_ENABLE_PIN       P0_04
59
+#define X_STEP_PIN                         P2_00
60
+#define X_DIR_PIN                          P0_05
61
+#define X_ENABLE_PIN                       P0_04
62 62
 
63
-#define Y_STEP_PIN         P2_01
64
-#define Y_DIR_PIN          P0_11
65
-#define Y_ENABLE_PIN       P0_10
63
+#define Y_STEP_PIN                         P2_01
64
+#define Y_DIR_PIN                          P0_11
65
+#define Y_ENABLE_PIN                       P0_10
66 66
 
67
-#define Z_STEP_PIN         P2_02
68
-#define Z_DIR_PIN          P0_20
69
-#define Z_ENABLE_PIN       P0_19
67
+#define Z_STEP_PIN                         P2_02
68
+#define Z_DIR_PIN                          P0_20
69
+#define Z_ENABLE_PIN                       P0_19
70 70
 
71
-#define E0_STEP_PIN        P2_03
72
-#define E0_DIR_PIN         P0_22
73
-#define E0_ENABLE_PIN      P0_21
71
+#define E0_STEP_PIN                        P2_03
72
+#define E0_DIR_PIN                         P0_22
73
+#define E0_ENABLE_PIN                      P0_21
74 74
 
75
-#define E1_STEP_PIN        P2_08
76
-#define E1_DIR_PIN         P2_13
77
-#define E1_ENABLE_PIN      P4_29
75
+#define E1_STEP_PIN                        P2_08
76
+#define E1_DIR_PIN                         P2_13
77
+#define E1_ENABLE_PIN                      P4_29
78 78
 
79 79
 //
80 80
 // Temperature Sensors
81 81
 // 3.3V max when defined as an analog input
82 82
 //
83
-#define TEMP_0_PIN          P0_23_A0   // (T1)
84
-#define TEMP_BED_PIN        P0_24_A1   // (T2)
85
-#define TEMP_1_PIN          P0_25_A2   // (T3)
86
-#define TEMP_2_PIN          P0_26_A3   // (T4)
83
+#define TEMP_0_PIN                      P0_23_A0  // (T1)
84
+#define TEMP_BED_PIN                    P0_24_A1  // (T2)
85
+#define TEMP_1_PIN                      P0_25_A2  // (T3)
86
+#define TEMP_2_PIN                      P0_26_A3  // (T4)
87 87
 
88 88
 //
89 89
 // Heaters / Fans
90 90
 //
91
-#define HEATER_BED_PIN     P2_05
92
-#define HEATER_0_PIN       P2_07
93
-#define HEATER_1_PIN       P1_23
91
+#define HEATER_BED_PIN                     P2_05
92
+#define HEATER_0_PIN                       P2_07
93
+#define HEATER_1_PIN                       P1_23
94 94
 #ifndef FAN_PIN
95
-  #define FAN_PIN          P2_06
95
+  #define FAN_PIN                          P2_06
96 96
 #endif
97
-#define FAN1_PIN           P2_04
97
+#define FAN1_PIN                           P2_04
98 98
 
99 99
 //
100 100
 // LCD / Controller
101 101
 //
102 102
 #if ANY(VIKI2, miniVIKI)
103 103
 
104
-  #define BEEPER_PIN       P1_31
105
-  #define DOGLCD_A0        P2_11
106
-  #define DOGLCD_CS        P0_16
104
+  #define BEEPER_PIN                       P1_31
105
+  #define DOGLCD_A0                        P2_11
106
+  #define DOGLCD_CS                        P0_16
107 107
 
108
-  #define BTN_EN1          P3_25
109
-  #define BTN_EN2          P3_26
110
-  #define BTN_ENC          P1_30
108
+  #define BTN_EN1                          P3_25
109
+  #define BTN_EN2                          P3_26
110
+  #define BTN_ENC                          P1_30
111 111
 
112
-  #define SD_DETECT_PIN    P1_18
113
-  #define SDSS             P1_21
112
+  #define SD_DETECT_PIN                    P1_18
113
+  #define SDSS                             P1_21
114 114
 
115
-  #define STAT_LED_RED_PIN  P1_19
116
-  #define STAT_LED_BLUE_PIN P1_20
115
+  #define STAT_LED_RED_PIN                 P1_19
116
+  #define STAT_LED_BLUE_PIN                P1_20
117 117
 
118 118
 #elif HAS_SPI_LCD
119 119
 

+ 57
- 57
Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h Переглянути файл

@@ -41,58 +41,58 @@
41 41
 //
42 42
 // Servos
43 43
 //
44
-#define SERVO0_PIN         P2_04
44
+#define SERVO0_PIN                         P2_04
45 45
 
46 46
 //
47 47
 // Limit Switches
48 48
 //
49
-#define X_STOP_PIN         P1_24
50
-#define Y_STOP_PIN         P1_25
51
-#define Z_STOP_PIN         P1_26
49
+#define X_STOP_PIN                         P1_24
50
+#define Y_STOP_PIN                         P1_25
51
+#define Z_STOP_PIN                         P1_26
52 52
 
53 53
 //
54 54
 // Filament Runout Sensor
55 55
 //
56 56
 #ifndef FIL_RUNOUT_PIN
57
-  #define FIL_RUNOUT_PIN   P1_27
57
+  #define FIL_RUNOUT_PIN                   P1_27
58 58
 #endif
59 59
 
60 60
 //
61 61
 // Steppers
62 62
 //
63
-#define X_STEP_PIN         P2_00
64
-#define X_DIR_PIN          P1_16
65
-#define X_ENABLE_PIN       P1_17
63
+#define X_STEP_PIN                         P2_00
64
+#define X_DIR_PIN                          P1_16
65
+#define X_ENABLE_PIN                       P1_17
66 66
 
67
-#define Y_STEP_PIN         P2_01
68
-#define Y_DIR_PIN          P1_10
69
-#define Y_ENABLE_PIN       P1_09
67
+#define Y_STEP_PIN                         P2_01
68
+#define Y_DIR_PIN                          P1_10
69
+#define Y_ENABLE_PIN                       P1_09
70 70
 
71
-#define Z_STEP_PIN         P2_02
72
-#define Z_DIR_PIN          P1_15
73
-#define Z_ENABLE_PIN       P1_14
71
+#define Z_STEP_PIN                         P2_02
72
+#define Z_DIR_PIN                          P1_15
73
+#define Z_ENABLE_PIN                       P1_14
74 74
 
75
-#define E0_STEP_PIN        P2_03
76
-#define E0_DIR_PIN         P1_04
77
-#define E0_ENABLE_PIN      P1_08
75
+#define E0_STEP_PIN                        P2_03
76
+#define E0_DIR_PIN                         P1_04
77
+#define E0_ENABLE_PIN                      P1_08
78 78
 
79
-#define E1_STEP_PIN        P2_08
80
-#define E1_DIR_PIN         P2_13
81
-#define E1_ENABLE_PIN      P4_29
79
+#define E1_STEP_PIN                        P2_08
80
+#define E1_DIR_PIN                         P2_13
81
+#define E1_ENABLE_PIN                      P4_29
82 82
 
83 83
 #if HAS_TMC_UART
84 84
   //
85 85
   // TMC220x stepper drivers
86 86
   // Software serial
87 87
   //
88
-  #define X_SERIAL_TX_PIN  P0_04
89
-  #define X_SERIAL_RX_PIN  P0_05
90
-  #define Y_SERIAL_TX_PIN  P0_10
91
-  #define Y_SERIAL_RX_PIN  P0_11
92
-  #define Z_SERIAL_TX_PIN  P0_19
93
-  #define Z_SERIAL_RX_PIN  P0_20
94
-  #define E0_SERIAL_TX_PIN P0_22
95
-  #define E0_SERIAL_RX_PIN P0_21
88
+  #define X_SERIAL_TX_PIN                  P0_04
89
+  #define X_SERIAL_RX_PIN                  P0_05
90
+  #define Y_SERIAL_TX_PIN                  P0_10
91
+  #define Y_SERIAL_RX_PIN                  P0_11
92
+  #define Z_SERIAL_TX_PIN                  P0_19
93
+  #define Z_SERIAL_RX_PIN                  P0_20
94
+  #define E0_SERIAL_TX_PIN                 P0_22
95
+  #define E0_SERIAL_RX_PIN                 P0_21
96 96
 
97 97
   // Reduce baud rate to improve software serial reliability
98 98
   #define TMC_BAUD_RATE 19200
@@ -102,50 +102,50 @@
102 102
 // Temp Sensors
103 103
 //  3.3V max when defined as an Analog Input!
104 104
 //
105
-#if TEMP_SENSOR_0 == 20         // PT100 Adapter
106
-  #define TEMP_0_PIN        P0_02_A7   // Analog Input
105
+#if TEMP_SENSOR_0 == 20                           // PT100 Adapter
106
+  #define TEMP_0_PIN                    P0_02_A7  // Analog Input
107 107
 #else
108
-  #define TEMP_0_PIN        P0_23_A0   // Analog Input P0_23
108
+  #define TEMP_0_PIN                    P0_23_A0  // Analog Input P0_23
109 109
 #endif
110 110
 
111
-#define TEMP_BED_PIN        P0_24_A1   // Analog Input P0_24
112
-#define TEMP_1_PIN          P0_25_A2   // Analog Input P0_25
111
+#define TEMP_BED_PIN                    P0_24_A1  // Analog Input P0_24
112
+#define TEMP_1_PIN                      P0_25_A2  // Analog Input P0_25
113 113
 
114 114
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
115
-  #define FILWIDTH_PIN      P0_26_A3   // Analog Input P0_26
115
+  #define FILWIDTH_PIN                  P0_26_A3  // Analog Input P0_26
116 116
 #else
117
-  #define TEMP_2_PIN        P0_26_A3   // Analog Input P0_26
117
+  #define TEMP_2_PIN                    P0_26_A3  // Analog Input P0_26
118 118
 #endif
119 119
 
120 120
 //
121 121
 // Heaters / Fans
122 122
 //
123
-#define HEATER_BED_PIN     P2_05
124
-#define HEATER_0_PIN       P2_07
123
+#define HEATER_BED_PIN                     P2_05
124
+#define HEATER_0_PIN                       P2_07
125 125
 #ifndef FAN_PIN
126
-  #define FAN_PIN          P2_06
126
+  #define FAN_PIN                          P2_06
127 127
 #endif
128
-#define FAN1_PIN           P1_22
128
+#define FAN1_PIN                           P1_22
129 129
 
130 130
 //
131 131
 // Auto fans
132 132
 //
133
-#define AUTO_FAN_PIN       P1_22   // FET 3
134
-#define ORIG_E0_AUTO_FAN_PIN  AUTO_FAN_PIN
135
-#define ORIG_E1_AUTO_FAN_PIN  AUTO_FAN_PIN
136
-#define ORIG_E2_AUTO_FAN_PIN  AUTO_FAN_PIN
133
+#define AUTO_FAN_PIN                       P1_22  // FET 3
134
+#define ORIG_E0_AUTO_FAN_PIN        AUTO_FAN_PIN
135
+#define ORIG_E1_AUTO_FAN_PIN        AUTO_FAN_PIN
136
+#define ORIG_E2_AUTO_FAN_PIN        AUTO_FAN_PIN
137 137
 
138 138
 //
139 139
 // SD Card
140 140
 //
141 141
 
142
-#define SDCARD_CONNECTION ONBOARD
142
+#define SDCARD_CONNECTION                ONBOARD
143 143
 
144
-#define SCK_PIN            P0_07
145
-#define MISO_PIN           P0_08
146
-#define MOSI_PIN           P0_09
147
-#define ONBOARD_SD_CS_PIN  P0_06
148
-#define SS_PIN             ONBOARD_SD_CS_PIN
144
+#define SCK_PIN                            P0_07
145
+#define MISO_PIN                           P0_08
146
+#define MOSI_PIN                           P0_09
147
+#define ONBOARD_SD_CS_PIN                  P0_06
148
+#define SS_PIN                 ONBOARD_SD_CS_PIN
149 149
 
150 150
 //
151 151
 // LCD / Controller
@@ -170,14 +170,14 @@
170 170
  */
171 171
 
172 172
 #if ENABLED(CR10_STOCKDISPLAY)
173
-  #define BEEPER_PIN       P1_31
174
-  #define BTN_EN1          P3_26
175
-  #define BTN_EN2          P3_25
176
-  #define BTN_ENC          P1_30
177
-  #define LCD_PINS_RS      P0_16
178
-  #define LCD_PINS_ENABLE  P0_18
179
-  #define LCD_PINS_D4      P0_15
180
-  #define KILL_PIN         P2_11
173
+  #define BEEPER_PIN                       P1_31
174
+  #define BTN_EN1                          P3_26
175
+  #define BTN_EN2                          P3_25
176
+  #define BTN_ENC                          P1_30
177
+  #define LCD_PINS_RS                      P0_16
178
+  #define LCD_PINS_ENABLE                  P0_18
179
+  #define LCD_PINS_D4                      P0_15
180
+  #define KILL_PIN                         P2_11
181 181
 #elif HAS_SPI_LCD
182 182
   #error "Only the CR10_STOCKDISPLAY is supported with TH3D EZBoard."
183 183
 #endif

+ 24
- 24
Marlin/src/pins/mega/pins_CHEAPTRONIC.h Переглянути файл

@@ -33,46 +33,46 @@
33 33
 //
34 34
 // Limit Switches
35 35
 //
36
-#define X_STOP_PIN          3
37
-#define Y_STOP_PIN          2
38
-#define Z_STOP_PIN          5
36
+#define X_STOP_PIN                             3
37
+#define Y_STOP_PIN                             2
38
+#define Z_STOP_PIN                             5
39 39
 
40 40
 //
41 41
 // Steppers
42 42
 //
43
-#define X_STEP_PIN         14
44
-#define X_DIR_PIN          15
45
-#define X_ENABLE_PIN       24
43
+#define X_STEP_PIN                            14
44
+#define X_DIR_PIN                             15
45
+#define X_ENABLE_PIN                          24
46 46
 
47
-#define Y_STEP_PIN         35
48
-#define Y_DIR_PIN          36
49
-#define Y_ENABLE_PIN       31
47
+#define Y_STEP_PIN                            35
48
+#define Y_DIR_PIN                             36
49
+#define Y_ENABLE_PIN                          31
50 50
 
51
-#define Z_STEP_PIN         40
52
-#define Z_DIR_PIN          41
53
-#define Z_ENABLE_PIN       37
51
+#define Z_STEP_PIN                            40
52
+#define Z_DIR_PIN                             41
53
+#define Z_ENABLE_PIN                          37
54 54
 
55
-#define E0_STEP_PIN        26
56
-#define E0_DIR_PIN         28
57
-#define E0_ENABLE_PIN      25
55
+#define E0_STEP_PIN                           26
56
+#define E0_DIR_PIN                            28
57
+#define E0_ENABLE_PIN                         25
58 58
 
59
-#define E1_STEP_PIN        33
60
-#define E1_DIR_PIN         34
61
-#define E1_ENABLE_PIN      30
59
+#define E1_STEP_PIN                           33
60
+#define E1_DIR_PIN                            34
61
+#define E1_ENABLE_PIN                         30
62 62
 
63 63
 //
64 64
 // Temperature sensors
65 65
 //
66
-#define TEMP_0_PIN         15   // Analog Input
67
-#define TEMP_1_PIN         14   // Analog Input
68
-#define TEMP_BED_PIN       13   // Analog Input
66
+#define TEMP_0_PIN                            15  // Analog Input
67
+#define TEMP_1_PIN                            14  // Analog Input
68
+#define TEMP_BED_PIN                          13  // Analog Input
69 69
 
70 70
 //
71 71
 // Heaters / Fans
72 72
 //
73
-#define HEATER_0_PIN       19   // EXTRUDER 1
74
-#define HEATER_1_PIN       23   // EXTRUDER 2
75
-#define HEATER_BED_PIN     22
73
+#define HEATER_0_PIN                          19  // EXTRUDER 1
74
+#define HEATER_1_PIN                          23  // EXTRUDER 2
75
+#define HEATER_BED_PIN                        22
76 76
 
77 77
 //
78 78
 // LCD / Controller

+ 56
- 56
Marlin/src/pins/mega/pins_CHEAPTRONICv2.h Переглянути файл

@@ -36,101 +36,101 @@
36 36
 //
37 37
 // Limit Switches
38 38
 //
39
-#define X_MIN_PIN          30
40
-#define X_MAX_PIN          31
41
-#define Y_MIN_PIN          32
42
-#define Y_MAX_PIN          33
43
-#define Z_MIN_PIN          34
44
-#define Z_MAX_PIN          35
39
+#define X_MIN_PIN                             30
40
+#define X_MAX_PIN                             31
41
+#define Y_MIN_PIN                             32
42
+#define Y_MAX_PIN                             33
43
+#define Z_MIN_PIN                             34
44
+#define Z_MAX_PIN                             35
45 45
 
46 46
 //
47 47
 // Steppers
48 48
 //
49
-#define X_STEP_PIN         17
50
-#define X_DIR_PIN          16
51
-#define X_ENABLE_PIN       48
49
+#define X_STEP_PIN                            17
50
+#define X_DIR_PIN                             16
51
+#define X_ENABLE_PIN                          48
52 52
 
53
-#define Y_STEP_PIN         54
54
-#define Y_DIR_PIN          47
55
-#define Y_ENABLE_PIN       55
53
+#define Y_STEP_PIN                            54
54
+#define Y_DIR_PIN                             47
55
+#define Y_ENABLE_PIN                          55
56 56
 
57
-#define Z_STEP_PIN         57
58
-#define Z_DIR_PIN          56
59
-#define Z_ENABLE_PIN       62
57
+#define Z_STEP_PIN                            57
58
+#define Z_DIR_PIN                             56
59
+#define Z_ENABLE_PIN                          62
60 60
 
61
-#define E0_STEP_PIN        23
62
-#define E0_DIR_PIN         22
63
-#define E0_ENABLE_PIN      24
61
+#define E0_STEP_PIN                           23
62
+#define E0_DIR_PIN                            22
63
+#define E0_ENABLE_PIN                         24
64 64
 
65
-#define E1_STEP_PIN        26
66
-#define E1_DIR_PIN         25
67
-#define E1_ENABLE_PIN      27
65
+#define E1_STEP_PIN                           26
66
+#define E1_DIR_PIN                            25
67
+#define E1_ENABLE_PIN                         27
68 68
 
69
-#define E2_STEP_PIN        29
70
-#define E2_DIR_PIN         28
71
-#define E2_ENABLE_PIN      39
69
+#define E2_STEP_PIN                           29
70
+#define E2_DIR_PIN                            28
71
+#define E2_ENABLE_PIN                         39
72 72
 
73 73
 //
74 74
 // Temperature sensors
75 75
 //
76
-#define TEMP_0_PIN         15
77
-#define TEMP_1_PIN         13
78
-#define TEMP_2_PIN         14
79
-#define TEMP_3_PIN         11   // should be used for chamber temperature control
80
-#define TEMP_BED_PIN       12
76
+#define TEMP_0_PIN                            15
77
+#define TEMP_1_PIN                            13
78
+#define TEMP_2_PIN                            14
79
+#define TEMP_3_PIN                            11  // should be used for chamber temperature control
80
+#define TEMP_BED_PIN                          12
81 81
 
82 82
 //
83 83
 // Heaters / Fans
84 84
 //
85
-#define HEATER_0_PIN        6
86
-#define HEATER_1_PIN        7
87
-#define HEATER_2_PIN        8
88
-#define HEATER_BED_PIN      9
85
+#define HEATER_0_PIN                           6
86
+#define HEATER_1_PIN                           7
87
+#define HEATER_2_PIN                           8
88
+#define HEATER_BED_PIN                         9
89 89
 #ifndef FAN_PIN
90
-  #define FAN_PIN           3
90
+  #define FAN_PIN                              3
91 91
 #endif
92
-#define FAN2_PIN           58   // additional fan or light control output
92
+#define FAN2_PIN                              58  // additional fan or light control output
93 93
 
94 94
 //
95 95
 // Other board specific pins
96 96
 //
97 97
 #ifndef FIL_RUNOUT_PIN
98
-  #define FIL_RUNOUT_PIN   37   // board input labeled as F-DET
98
+  #define FIL_RUNOUT_PIN                      37  // board input labeled as F-DET
99 99
 #endif
100
-#define Z_MIN_PROBE_PIN    36   // additional external board input labeled as E-SENS (should be used for Z-probe)
101
-#define LED_PIN            13
102
-#define SPINDLE_ENABLE_PIN  4   // additional PWM pin 1 at JP1 connector - should be used for laser control too
103
-#define EXT_2               5   // additional PWM pin 2 at JP1 connector
104
-#define EXT_3               2   // additional PWM pin 3 at JP1 connector
105
-#define PS_ON_PIN          45
106
-#define KILL_PIN           46
100
+#define Z_MIN_PROBE_PIN                       36  // additional external board input labeled as E-SENS (should be used for Z-probe)
101
+#define LED_PIN                               13
102
+#define SPINDLE_ENABLE_PIN                     4  // additional PWM pin 1 at JP1 connector - should be used for laser control too
103
+#define EXT_2                                  5  // additional PWM pin 2 at JP1 connector
104
+#define EXT_3                                  2  // additional PWM pin 3 at JP1 connector
105
+#define PS_ON_PIN                             45
106
+#define KILL_PIN                              46
107 107
 
108 108
 #ifndef FILWIDTH_PIN
109
-  #define FILWIDTH_PIN     11   // shared with TEMP_3 analog input
109
+  #define FILWIDTH_PIN                        11  // shared with TEMP_3 analog input
110 110
 #endif
111 111
 
112 112
 //
113 113
 // LCD / Controller
114 114
 //
115
-#define LCD_PINS_RS        19
116
-#define LCD_PINS_ENABLE    42
117
-#define LCD_PINS_D4        18
118
-#define LCD_PINS_D5        38
119
-#define LCD_PINS_D6        41
120
-#define LCD_PINS_D7        40
115
+#define LCD_PINS_RS                           19
116
+#define LCD_PINS_ENABLE                       42
117
+#define LCD_PINS_D4                           18
118
+#define LCD_PINS_D5                           38
119
+#define LCD_PINS_D6                           41
120
+#define LCD_PINS_D7                           40
121 121
 
122 122
 //
123 123
 // Beeper, SD Card, Encoder
124 124
 //
125
-#define BEEPER_PIN         44
125
+#define BEEPER_PIN                            44
126 126
 
127 127
 #if ENABLED(SDSUPPORT)
128
-  #define SDSS             53
129
-  #define SD_DETECT_PIN    49
128
+  #define SDSS                                53
129
+  #define SD_DETECT_PIN                       49
130 130
 #endif
131 131
 
132 132
 #if ENABLED(NEWPANEL)
133
-  #define BTN_EN1          11
134
-  #define BTN_EN2          12
135
-  #define BTN_ENC          43
133
+  #define BTN_EN1                             11
134
+  #define BTN_EN2                             12
135
+  #define BTN_ENC                             43
136 136
 #endif

+ 66
- 66
Marlin/src/pins/mega/pins_CNCONTROLS_11.h Переглянути файл

@@ -34,115 +34,115 @@
34 34
 //
35 35
 // Limit Switches
36 36
 //
37
-#define X_STOP_PIN         43
38
-#define Y_STOP_PIN         45
39
-#define Z_STOP_PIN         42
37
+#define X_STOP_PIN                            43
38
+#define Y_STOP_PIN                            45
39
+#define Z_STOP_PIN                            42
40 40
 
41 41
 //
42 42
 // Steppers
43 43
 //
44
-#define X_STEP_PIN         34
45
-#define X_DIR_PIN          36
46
-#define X_ENABLE_PIN       35
44
+#define X_STEP_PIN                            34
45
+#define X_DIR_PIN                             36
46
+#define X_ENABLE_PIN                          35
47 47
 
48
-#define Y_STEP_PIN         37
49
-#define Y_DIR_PIN          39
50
-#define Y_ENABLE_PIN       38
48
+#define Y_STEP_PIN                            37
49
+#define Y_DIR_PIN                             39
50
+#define Y_ENABLE_PIN                          38
51 51
 
52
-#define Z_STEP_PIN         40
53
-#define Z_DIR_PIN          48
54
-#define Z_ENABLE_PIN       41
52
+#define Z_STEP_PIN                            40
53
+#define Z_DIR_PIN                             48
54
+#define Z_ENABLE_PIN                          41
55 55
 
56
-#define E0_STEP_PIN        29
57
-#define E0_DIR_PIN         28
58
-#define E0_ENABLE_PIN       3
56
+#define E0_STEP_PIN                           29
57
+#define E0_DIR_PIN                            28
58
+#define E0_ENABLE_PIN                          3
59 59
 
60
-#define E1_STEP_PIN        61
61
-#define E1_DIR_PIN         62
62
-#define E1_ENABLE_PIN      60
60
+#define E1_STEP_PIN                           61
61
+#define E1_DIR_PIN                            62
62
+#define E1_ENABLE_PIN                         60
63 63
 
64
-#define E2_STEP_PIN        15
65
-#define E2_DIR_PIN         14
66
-#define E2_ENABLE_PIN      16
64
+#define E2_STEP_PIN                           15
65
+#define E2_DIR_PIN                            14
66
+#define E2_ENABLE_PIN                         16
67 67
 
68
-#define E3_STEP_PIN        44
69
-#define E3_DIR_PIN         49
70
-#define E3_ENABLE_PIN      47
68
+#define E3_STEP_PIN                           44
69
+#define E3_DIR_PIN                            49
70
+#define E3_ENABLE_PIN                         47
71 71
 
72 72
 //
73 73
 // Temperature Sensors
74 74
 //
75
-#define TEMP_0_PIN          0   // Analog Input
76
-#define TEMP_1_PIN          3   // Analog Input.  3 for tool2 -> 2 for chambertemp
77
-#define TEMP_2_PIN          2   // Analog Input.  9 for tool3 -> 2 for chambertemp
78
-#define TEMP_3_PIN         11   // Analog Input. 11 for tool4 -> 2 for chambertemp
79
-#define TEMP_BED_PIN        1   // Analog Input
75
+#define TEMP_0_PIN                             0  // Analog Input
76
+#define TEMP_1_PIN                             3  // Analog Input.  3 for tool2 -> 2 for chambertemp
77
+#define TEMP_2_PIN                             2  // Analog Input.  9 for tool3 -> 2 for chambertemp
78
+#define TEMP_3_PIN                            11  // Analog Input. 11 for tool4 -> 2 for chambertemp
79
+#define TEMP_BED_PIN                           1  // Analog Input
80 80
 
81 81
 #ifndef TEMP_CHAMBER_PIN
82
-  //#define TEMP_CHAMBER_PIN 2  // Analog Input
82
+  //#define TEMP_CHAMBER_PIN                   2  // Analog Input
83 83
 #endif
84 84
 
85 85
 //
86 86
 // Heaters / Fans
87 87
 //
88
-#define HEATER_0_PIN        5
89
-#define HEATER_1_PIN       58
90
-#define HEATER_2_PIN       64
91
-#define HEATER_3_PIN       46
92
-#define HEATER_BED_PIN      2
88
+#define HEATER_0_PIN                           5
89
+#define HEATER_1_PIN                          58
90
+#define HEATER_2_PIN                          64
91
+#define HEATER_3_PIN                          46
92
+#define HEATER_BED_PIN                         2
93 93
 
94 94
 #ifndef FAN_PIN
95
-  //#define FAN_PIN         7   // common PWM pin for all tools
95
+  //#define FAN_PIN                            7  // common PWM pin for all tools
96 96
 #endif
97 97
 
98
-#define ORIG_E0_AUTO_FAN_PIN 7
99
-#define ORIG_E1_AUTO_FAN_PIN 7
100
-#define ORIG_E2_AUTO_FAN_PIN 7
101
-#define ORIG_E3_AUTO_FAN_PIN 7
98
+#define ORIG_E0_AUTO_FAN_PIN                   7
99
+#define ORIG_E1_AUTO_FAN_PIN                   7
100
+#define ORIG_E2_AUTO_FAN_PIN                   7
101
+#define ORIG_E3_AUTO_FAN_PIN                   7
102 102
 
103 103
 //
104 104
 // Misc. Functions
105 105
 //
106
-#define SDSS               53
107
-#define SD_DETECT_PIN      13
106
+#define SDSS                                  53
107
+#define SD_DETECT_PIN                         13
108 108
 
109 109
 // Tools
110 110
 
111
-//#define TOOL_0_PIN           4
112
-//#define TOOL_1_PIN          59
113
-//#define TOOL_2_PIN           8
114
-//#define TOOL_3_PIN          30
115
-//#define TOOL_PWM_PIN         7   // common PWM pin for all tools
111
+//#define TOOL_0_PIN                           4
112
+//#define TOOL_1_PIN                          59
113
+//#define TOOL_2_PIN                           8
114
+//#define TOOL_3_PIN                          30
115
+//#define TOOL_PWM_PIN                         7  // common PWM pin for all tools
116 116
 
117 117
 // Common I/O
118 118
 
119
-//#define FIL_RUNOUT_PIN      -1
120
-//#define PWM_1_PIN           11
121
-//#define PWM_2_PIN           10
122
-//#define SPARE_IO            12
119
+//#define FIL_RUNOUT_PIN                      -1
120
+//#define PWM_1_PIN                           11
121
+//#define PWM_2_PIN                           10
122
+//#define SPARE_IO                            12
123 123
 
124 124
 //
125 125
 // LCD / Controller
126 126
 //
127
-#define BEEPER_PIN          6
127
+#define BEEPER_PIN                             6
128 128
 
129 129
 // Pins for DOGM SPI LCD Support
130
-#define DOGLCD_A0          26
131
-#define DOGLCD_CS          24
132
-#define DOGLCD_MOSI        -1
133
-#define DOGLCD_SCK         -1
130
+#define DOGLCD_A0                             26
131
+#define DOGLCD_CS                             24
132
+#define DOGLCD_MOSI                           -1
133
+#define DOGLCD_SCK                            -1
134 134
 
135
-#define BTN_EN1            23
136
-#define BTN_EN2            25
137
-#define BTN_ENC            27
135
+#define BTN_EN1                               23
136
+#define BTN_EN2                               25
137
+#define BTN_ENC                               27
138 138
 
139 139
 // Hardware buttons for manual movement of XYZ
140
-#define SHIFT_OUT          19
141
-#define SHIFT_LD           18
142
-#define SHIFT_CLK          17
140
+#define SHIFT_OUT                             19
141
+#define SHIFT_LD                              18
142
+#define SHIFT_CLK                             17
143 143
 
144
-//#define UI1                31
145
-//#define UI2                22
144
+//#define UI1                                 31
145
+//#define UI2                                 22
146 146
 
147
-#define STAT_LED_BLUE_PIN  -1
148
-#define STAT_LED_RED_PIN   31
147
+#define STAT_LED_BLUE_PIN                     -1
148
+#define STAT_LED_RED_PIN                      31

+ 69
- 69
Marlin/src/pins/mega/pins_CNCONTROLS_12.h Переглянути файл

@@ -34,122 +34,122 @@
34 34
 //
35 35
 // Limit Switches
36 36
 //
37
-#define X_STOP_PIN         19
38
-#define Y_STOP_PIN         22
39
-#define Z_STOP_PIN         23
37
+#define X_STOP_PIN                            19
38
+#define Y_STOP_PIN                            22
39
+#define Z_STOP_PIN                            23
40 40
 
41 41
 //
42 42
 // Steppers
43 43
 //
44
-#define X_STEP_PIN         25
45
-#define X_DIR_PIN          27
46
-#define X_ENABLE_PIN       26
44
+#define X_STEP_PIN                            25
45
+#define X_DIR_PIN                             27
46
+#define X_ENABLE_PIN                          26
47 47
 
48
-#define Y_STEP_PIN         28
49
-#define Y_DIR_PIN          30
50
-#define Y_ENABLE_PIN       29
48
+#define Y_STEP_PIN                            28
49
+#define Y_DIR_PIN                             30
50
+#define Y_ENABLE_PIN                          29
51 51
 
52
-#define Z_STEP_PIN         31
53
-#define Z_DIR_PIN          33
54
-#define Z_ENABLE_PIN       32
52
+#define Z_STEP_PIN                            31
53
+#define Z_DIR_PIN                             33
54
+#define Z_ENABLE_PIN                          32
55 55
 
56
-#define E0_STEP_PIN        57
57
-#define E0_DIR_PIN         55
58
-#define E0_ENABLE_PIN      58
56
+#define E0_STEP_PIN                           57
57
+#define E0_DIR_PIN                            55
58
+#define E0_ENABLE_PIN                         58
59 59
 
60
-#define E1_STEP_PIN        61
61
-#define E1_DIR_PIN         62
62
-#define E1_ENABLE_PIN      60
60
+#define E1_STEP_PIN                           61
61
+#define E1_DIR_PIN                            62
62
+#define E1_ENABLE_PIN                         60
63 63
 
64
-#define E2_STEP_PIN        46
65
-#define E2_DIR_PIN         66
66
-#define E2_ENABLE_PIN      44
64
+#define E2_STEP_PIN                           46
65
+#define E2_DIR_PIN                            66
66
+#define E2_ENABLE_PIN                         44
67 67
 
68
-#define E3_STEP_PIN        45
69
-#define E3_DIR_PIN         69
70
-#define E3_ENABLE_PIN      47
68
+#define E3_STEP_PIN                           45
69
+#define E3_DIR_PIN                            69
70
+#define E3_ENABLE_PIN                         47
71 71
 
72 72
 //
73 73
 // Temperature Sensors
74 74
 //
75
-#define TEMP_0_PIN          0   // Analog Input
76
-#define TEMP_1_PIN          9   // Analog Input.  9 for tool2 -> 13 for chambertemp
77
-#define TEMP_2_PIN         13   // Analog Input. 10 for tool3 -> 13 for chambertemp
78
-#define TEMP_3_PIN         11   // Analog Input. 11 for tool4 -> 13 for chambertemp
79
-#define TEMP_BED_PIN       14   // Analog Input
75
+#define TEMP_0_PIN                             0  // Analog Input
76
+#define TEMP_1_PIN                             9  // Analog Input.  9 for tool2 -> 13 for chambertemp
77
+#define TEMP_2_PIN                            13  // Analog Input. 10 for tool3 -> 13 for chambertemp
78
+#define TEMP_3_PIN                            11  // Analog Input. 11 for tool4 -> 13 for chambertemp
79
+#define TEMP_BED_PIN                          14  // Analog Input
80 80
 
81 81
 #ifndef TEMP_CHAMBER_PIN
82
-  //#define TEMP_CHAMBER_PIN 13 // Analog Input
82
+  //#define TEMP_CHAMBER_PIN                  13  // Analog Input
83 83
 #endif
84 84
 
85 85
 //
86 86
 // Heaters / Fans
87 87
 //
88
-#define HEATER_0_PIN       11
89
-#define HEATER_1_PIN        9
90
-#define HEATER_2_PIN        6
91
-#define HEATER_3_PIN        3
92
-#define HEATER_BED_PIN     24
88
+#define HEATER_0_PIN                          11
89
+#define HEATER_1_PIN                           9
90
+#define HEATER_2_PIN                           6
91
+#define HEATER_3_PIN                           3
92
+#define HEATER_BED_PIN                        24
93 93
 
94 94
 #ifndef FAN_PIN
95
-  #define FAN_PIN           5   // 5 is PWMtool3 -> 7 is common PWM pin for all tools
95
+  #define FAN_PIN                              5  // 5 is PWMtool3 -> 7 is common PWM pin for all tools
96 96
 #endif
97 97
 
98
-#define ORIG_E0_AUTO_FAN_PIN 7
99
-#define ORIG_E1_AUTO_FAN_PIN 7
100
-#define ORIG_E2_AUTO_FAN_PIN 7
101
-#define ORIG_E3_AUTO_FAN_PIN 7
98
+#define ORIG_E0_AUTO_FAN_PIN                   7
99
+#define ORIG_E1_AUTO_FAN_PIN                   7
100
+#define ORIG_E2_AUTO_FAN_PIN                   7
101
+#define ORIG_E3_AUTO_FAN_PIN                   7
102 102
 
103 103
 //
104 104
 // Misc. Functions
105 105
 //
106
-#define SDSS               53
107
-#define SD_DETECT_PIN      15
106
+#define SDSS                                  53
107
+#define SD_DETECT_PIN                         15
108 108
 
109 109
 // Tools
110 110
 
111
-//#define TOOL_0_PIN         56
112
-//#define TOOL_0_PWM_PIN     10   // red warning led at dual extruder
113
-//#define TOOL_1_PIN         59
114
-//#define TOOL_1_PWM_PIN      8   // lights at dual extruder
115
-//#define TOOL_2_PIN          4
116
-//#define TOOL_2_PWM_PIN      5
117
-//#define TOOL_3_PIN         14
118
-//#define TOOL_3_PWM_PIN      2
111
+//#define TOOL_0_PIN                          56
112
+//#define TOOL_0_PWM_PIN                      10  // red warning led at dual extruder
113
+//#define TOOL_1_PIN                          59
114
+//#define TOOL_1_PWM_PIN                       8  // lights at dual extruder
115
+//#define TOOL_2_PIN                           4
116
+//#define TOOL_2_PWM_PIN                       5
117
+//#define TOOL_3_PIN                          14
118
+//#define TOOL_3_PWM_PIN                       2
119 119
 
120 120
 // Common I/O
121 121
 
122 122
 #ifndef FIL_RUNOUT_PIN
123
-  #define FIL_RUNOUT_PIN   18
123
+  #define FIL_RUNOUT_PIN                      18
124 124
 #endif
125
-//#define PWM_1_PIN          12
126
-//#define PWM_2_PIN          13
127
-//#define SPARE_IO           17
125
+//#define PWM_1_PIN                           12
126
+//#define PWM_2_PIN                           13
127
+//#define SPARE_IO                            17
128 128
 
129 129
 //
130 130
 // LCD / Controller
131 131
 //
132
-#define BEEPER_PIN         16
132
+#define BEEPER_PIN                            16
133 133
 
134 134
 // Pins for DOGM SPI LCD Support
135
-#define DOGLCD_A0          39
136
-#define DOGLCD_CS          35
137
-#define DOGLCD_MOSI        48
138
-#define DOGLCD_SCK         49
135
+#define DOGLCD_A0                             39
136
+#define DOGLCD_CS                             35
137
+#define DOGLCD_MOSI                           48
138
+#define DOGLCD_SCK                            49
139 139
 #define LCD_SCREEN_ROT_180
140 140
 
141 141
 // The encoder and click button
142
-#define BTN_EN1            36
143
-#define BTN_EN2            34
144
-#define BTN_ENC            38
142
+#define BTN_EN1                               36
143
+#define BTN_EN2                               34
144
+#define BTN_ENC                               38
145 145
 
146 146
 // Hardware buttons for manual movement of XYZ
147
-#define SHIFT_OUT          42
148
-#define SHIFT_LD           41
149
-#define SHIFT_CLK          40
147
+#define SHIFT_OUT                             42
148
+#define SHIFT_LD                              41
149
+#define SHIFT_CLK                             40
150 150
 
151
-//#define UI1              43
152
-//#define UI2              37
151
+//#define UI1                                 43
152
+//#define UI2                                 37
153 153
 
154
-#define STAT_LED_BLUE_PIN  -1
155
-#define STAT_LED_RED_PIN   10   // TOOL_0_PWM_PIN
154
+#define STAT_LED_BLUE_PIN                     -1
155
+#define STAT_LED_RED_PIN                      10  // TOOL_0_PWM_PIN

+ 39
- 39
Marlin/src/pins/mega/pins_CNCONTROLS_15.h Переглянути файл

@@ -34,79 +34,79 @@
34 34
 //
35 35
 // Servos
36 36
 //
37
-#define SERVO0_PIN          6
37
+#define SERVO0_PIN                             6
38 38
 
39 39
 //
40 40
 // Limit Switches
41 41
 //
42
-#define X_STOP_PIN         34
43
-#define Y_STOP_PIN         39
44
-#define Z_STOP_PIN         62
42
+#define X_STOP_PIN                            34
43
+#define Y_STOP_PIN                            39
44
+#define Z_STOP_PIN                            62
45 45
 
46 46
 #ifndef Z_MIN_PROBE_PIN
47
-  #define Z_MIN_PROBE_PIN  49
47
+  #define Z_MIN_PROBE_PIN                     49
48 48
 #endif
49 49
 
50 50
 //
51 51
 // Steppers
52 52
 //
53
-#define X_STEP_PIN         14
54
-#define X_DIR_PIN          25
55
-#define X_ENABLE_PIN       26
53
+#define X_STEP_PIN                            14
54
+#define X_DIR_PIN                             25
55
+#define X_ENABLE_PIN                          26
56 56
 
57
-#define Y_STEP_PIN         11
58
-#define Y_DIR_PIN          12
59
-#define Y_ENABLE_PIN       15
57
+#define Y_STEP_PIN                            11
58
+#define Y_DIR_PIN                             12
59
+#define Y_ENABLE_PIN                          15
60 60
 
61
-#define Z_STEP_PIN         24
62
-#define Z_DIR_PIN          27
63
-#define Z_ENABLE_PIN       28
61
+#define Z_STEP_PIN                            24
62
+#define Z_DIR_PIN                             27
63
+#define Z_ENABLE_PIN                          28
64 64
 
65
-#define E0_STEP_PIN        64
66
-#define E0_DIR_PIN         65
67
-#define E0_ENABLE_PIN      63
65
+#define E0_STEP_PIN                           64
66
+#define E0_DIR_PIN                            65
67
+#define E0_ENABLE_PIN                         63
68 68
 
69 69
 //
70 70
 // Temperature Sensors
71 71
 // Analog Inputs
72 72
 //
73
-#define TEMP_0_PIN          2   // Analog Input
74
-#define TEMP_BED_PIN        4   // Analog Input
73
+#define TEMP_0_PIN                             2  // Analog Input
74
+#define TEMP_BED_PIN                           4  // Analog Input
75 75
 
76 76
 #ifndef TEMP_CHAMBER_PIN
77
-  #define TEMP_CHAMBER_PIN  5   // Analog Input
77
+  #define TEMP_CHAMBER_PIN                     5  // Analog Input
78 78
 #endif
79 79
 
80 80
 //
81 81
 // Heaters
82 82
 //
83
-#define HEATER_0_PIN        4
84
-#define HEATER_BED_PIN     32
85
-#define HEATER_CHAMBER_PIN 33
83
+#define HEATER_0_PIN                           4
84
+#define HEATER_BED_PIN                        32
85
+#define HEATER_CHAMBER_PIN                    33
86 86
 
87 87
 //
88 88
 // Fans
89 89
 //
90
-#define FAN_PIN               8
91
-#define ORIG_E0_AUTO_FAN_PIN 30
92
-#define ORIG_E1_AUTO_FAN_PIN 30
93
-#define ORIG_E2_AUTO_FAN_PIN 30
94
-#define ORIG_E3_AUTO_FAN_PIN 30
95
-//#define ORIG_CHAMBER_AUTO_FAN_PIN 10
90
+#define FAN_PIN                                8
91
+#define ORIG_E0_AUTO_FAN_PIN                  30
92
+#define ORIG_E1_AUTO_FAN_PIN                  30
93
+#define ORIG_E2_AUTO_FAN_PIN                  30
94
+#define ORIG_E3_AUTO_FAN_PIN                  30
95
+//#define ORIG_CHAMBER_AUTO_FAN_PIN           10
96 96
 
97 97
 //
98 98
 // Misc. Functions
99 99
 //
100
-#define SDSS               53
101
-#define SD_DETECT_PIN      40
100
+#define SDSS                                  53
101
+#define SD_DETECT_PIN                         40
102 102
 
103 103
 // Common I/O
104 104
 
105
-#define FIL_RUNOUT_PIN      9
106
-//#define FIL_RUNOUT_PIN     29  // encoder sensor
107
-//#define PWM_1_PIN          12
108
-//#define PWM_2_PIN          13
109
-//#define SPARE_IO           17
110
-#define BEEPER_PIN         13
111
-#define STAT_LED_BLUE_PIN  -1
112
-#define STAT_LED_RED_PIN   10 // 31
105
+#define FIL_RUNOUT_PIN                         9
106
+//#define FIL_RUNOUT_PIN                      29  // encoder sensor
107
+//#define PWM_1_PIN                           12
108
+//#define PWM_2_PIN                           13
109
+//#define SPARE_IO                            17
110
+#define BEEPER_PIN                            13
111
+#define STAT_LED_BLUE_PIN                     -1
112
+#define STAT_LED_RED_PIN                      10  // 31

+ 34
- 34
Marlin/src/pins/mega/pins_EINSTART-S.h Переглянути файл

@@ -35,48 +35,48 @@
35 35
 //
36 36
 // Limit Switches
37 37
 //
38
-#define X_STOP_PIN         44
39
-#define Y_STOP_PIN         43
40
-#define Z_STOP_PIN         42
38
+#define X_STOP_PIN                            44
39
+#define Y_STOP_PIN                            43
40
+#define Z_STOP_PIN                            42
41 41
 
42 42
 //
43 43
 // Steppers
44 44
 //
45
-#define X_STEP_PIN         76
46
-#define X_DIR_PIN          75
47
-#define X_ENABLE_PIN       73
45
+#define X_STEP_PIN                            76
46
+#define X_DIR_PIN                             75
47
+#define X_ENABLE_PIN                          73
48 48
 
49
-#define Y_STEP_PIN         31
50
-#define Y_DIR_PIN          32
51
-#define Y_ENABLE_PIN       72
49
+#define Y_STEP_PIN                            31
50
+#define Y_DIR_PIN                             32
51
+#define Y_ENABLE_PIN                          72
52 52
 
53
-#define Z_STEP_PIN         34
54
-#define Z_DIR_PIN          35
55
-#define Z_ENABLE_PIN       33
53
+#define Z_STEP_PIN                            34
54
+#define Z_DIR_PIN                             35
55
+#define Z_ENABLE_PIN                          33
56 56
 
57
-#define E0_STEP_PIN        36
58
-#define E0_DIR_PIN         37
59
-#define E0_ENABLE_PIN      30
57
+#define E0_STEP_PIN                           36
58
+#define E0_DIR_PIN                            37
59
+#define E0_ENABLE_PIN                         30
60 60
 
61 61
 //
62 62
 // Temperature Sensors
63 63
 //
64
-#define TEMP_0_PIN          0   // Analog Input
65
-#define TEMP_BED_PIN        1   // Analog Input
64
+#define TEMP_0_PIN                             0  // Analog Input
65
+#define TEMP_BED_PIN                           1  // Analog Input
66 66
 
67 67
 //
68 68
 // Heaters / Fans
69 69
 //
70
-#define HEATER_0_PIN       83
71
-#define HEATER_BED_PIN     38
70
+#define HEATER_0_PIN                          83
71
+#define HEATER_BED_PIN                        38
72 72
 
73
-#define FAN_PIN            82
73
+#define FAN_PIN                               82
74 74
 
75 75
 //
76 76
 // Misc. Functions
77 77
 //
78
-#define SDSS               53
79
-#define LED_PIN             4
78
+#define SDSS                                  53
79
+#define LED_PIN                                4
80 80
 
81 81
 //////////////////////////
82 82
 // LCDs and Controllers //
@@ -90,24 +90,24 @@
90 90
 // u8glib constructor
91 91
 // U8GLIB_SH1106_128X64 u8g(DOGLCD_SCK, DOGLCD_MOSI, DOGLCD_CS, LCD_PINS_DC, LCD_PINS_RS);
92 92
 
93
-#define LCD_PINS_DC        78
94
-#define LCD_PINS_RS        79
93
+#define LCD_PINS_DC                           78
94
+#define LCD_PINS_RS                           79
95 95
 // DOGM SPI LCD Support
96
-#define DOGLCD_CS           3
97
-#define DOGLCD_MOSI         2
98
-#define DOGLCD_SCK          5
99
-#define DOGLCD_A0           2
96
+#define DOGLCD_CS                              3
97
+#define DOGLCD_MOSI                            2
98
+#define DOGLCD_SCK                             5
99
+#define DOGLCD_A0                              2
100 100
 
101 101
 //
102 102
 // LCD Display input pins
103 103
 //
104
-#define BTN_UP             25
105
-#define BTN_DWN            26
106
-#define BTN_LFT            27
107
-#define BTN_RT             28
104
+#define BTN_UP                                25
105
+#define BTN_DWN                               26
106
+#define BTN_LFT                               27
107
+#define BTN_RT                                28
108 108
 
109 109
 // 'OK' button
110
-#define BTN_ENC            29
110
+#define BTN_ENC                               29
111 111
 
112 112
 // Set Kill to right arrow, same as RIGID_PANEL
113
-#define KILL_PIN           28
113
+#define KILL_PIN                              28

+ 52
- 52
Marlin/src/pins/mega/pins_ELEFU_3.h Переглянути файл

@@ -34,115 +34,115 @@
34 34
 //
35 35
 // Limit Switches
36 36
 //
37
-#define X_MIN_PIN          35
38
-#define X_MAX_PIN          34
39
-#define Y_MIN_PIN          33
40
-#define Y_MAX_PIN          32
41
-#define Z_MIN_PIN          31
42
-#define Z_MAX_PIN          30
37
+#define X_MIN_PIN                             35
38
+#define X_MAX_PIN                             34
39
+#define Y_MIN_PIN                             33
40
+#define Y_MAX_PIN                             32
41
+#define Z_MIN_PIN                             31
42
+#define Z_MAX_PIN                             30
43 43
 
44 44
 //
45 45
 // Z Probe (when not Z_MIN_PIN)
46 46
 //
47 47
 #ifndef Z_MIN_PROBE_PIN
48
-  #define Z_MIN_PROBE_PIN  30
48
+  #define Z_MIN_PROBE_PIN                     30
49 49
 #endif
50 50
 
51 51
 //
52 52
 // Steppers
53 53
 //
54
-#define X_STEP_PIN         49
55
-#define X_DIR_PIN          13
56
-#define X_ENABLE_PIN       48
54
+#define X_STEP_PIN                            49
55
+#define X_DIR_PIN                             13
56
+#define X_ENABLE_PIN                          48
57 57
 
58
-#define Y_STEP_PIN         11
59
-#define Y_DIR_PIN           9
60
-#define Y_ENABLE_PIN       12
58
+#define Y_STEP_PIN                            11
59
+#define Y_DIR_PIN                              9
60
+#define Y_ENABLE_PIN                          12
61 61
 
62
-#define Z_STEP_PIN          7
63
-#define Z_DIR_PIN           6
64
-#define Z_ENABLE_PIN        8
62
+#define Z_STEP_PIN                             7
63
+#define Z_DIR_PIN                              6
64
+#define Z_ENABLE_PIN                           8
65 65
 
66
-#define E0_STEP_PIN        40
67
-#define E0_DIR_PIN         41
68
-#define E0_ENABLE_PIN      37
66
+#define E0_STEP_PIN                           40
67
+#define E0_DIR_PIN                            41
68
+#define E0_ENABLE_PIN                         37
69 69
 
70
-#define E1_STEP_PIN        18
71
-#define E1_DIR_PIN         19
72
-#define E1_ENABLE_PIN      38
70
+#define E1_STEP_PIN                           18
71
+#define E1_DIR_PIN                            19
72
+#define E1_ENABLE_PIN                         38
73 73
 
74
-#define E2_STEP_PIN        43
75
-#define E2_DIR_PIN         47
76
-#define E2_ENABLE_PIN      42
74
+#define E2_STEP_PIN                           43
75
+#define E2_DIR_PIN                            47
76
+#define E2_ENABLE_PIN                         42
77 77
 
78 78
 //
79 79
 // Temperature Sensors
80 80
 //
81
-#define TEMP_0_PIN          3   // Analog Input
82
-#define TEMP_1_PIN          2   // Analog Input
83
-#define TEMP_2_PIN          1   // Analog Input
84
-#define TEMP_BED_PIN        0   // Analog Input
81
+#define TEMP_0_PIN                             3  // Analog Input
82
+#define TEMP_1_PIN                             2  // Analog Input
83
+#define TEMP_2_PIN                             1  // Analog Input
84
+#define TEMP_BED_PIN                           0  // Analog Input
85 85
 
86 86
 //
87 87
 // Heaters / Fans
88 88
 //
89
-#define HEATER_0_PIN       45   // 12V PWM1
90
-#define HEATER_1_PIN       46   // 12V PWM2
91
-#define HEATER_2_PIN       17   // 12V PWM3
92
-#define HEATER_BED_PIN     44   // DOUBLE 12V PWM
89
+#define HEATER_0_PIN                          45  // 12V PWM1
90
+#define HEATER_1_PIN                          46  // 12V PWM2
91
+#define HEATER_2_PIN                          17  // 12V PWM3
92
+#define HEATER_BED_PIN                        44  // DOUBLE 12V PWM
93 93
 
94 94
 #ifndef FAN_PIN
95
-  #define FAN_PIN          16   // 5V PWM
95
+  #define FAN_PIN                             16  // 5V PWM
96 96
 #endif
97 97
 
98 98
 //
99 99
 // Misc. Functions
100 100
 //
101
-#define PS_ON_PIN          10   // Set to -1 if using a manual switch on the PWRSW Connector
102
-#define SLEEP_WAKE_PIN     26   // This feature still needs work
103
-#define PHOTOGRAPH_PIN     29
101
+#define PS_ON_PIN                             10  // Set to -1 if using a manual switch on the PWRSW Connector
102
+#define SLEEP_WAKE_PIN                        26  // This feature still needs work
103
+#define PHOTOGRAPH_PIN                        29
104 104
 
105 105
 //
106 106
 // LCD / Controller
107 107
 //
108
-#define BEEPER_PIN         36
108
+#define BEEPER_PIN                            36
109 109
 
110 110
 #if ENABLED(RA_CONTROL_PANEL)
111 111
 
112
-  #define SDSS             53
113
-  #define SD_DETECT_PIN    28
112
+  #define SDSS                                53
113
+  #define SD_DETECT_PIN                       28
114 114
 
115
-  #define BTN_EN1          14
116
-  #define BTN_EN2          39
117
-  #define BTN_ENC          15
115
+  #define BTN_EN1                             14
116
+  #define BTN_EN2                             39
117
+  #define BTN_ENC                             15
118 118
 
119 119
 #endif // RA_CONTROL_PANEL
120 120
 
121 121
 #if ENABLED(RA_DISCO)
122 122
   // variables for which pins the TLC5947 is using
123
-  #define TLC_CLOCK_PIN    25
124
-  #define TLC_BLANK_PIN    23
125
-  #define TLC_XLAT_PIN     22
126
-  #define TLC_DATA_PIN     24
123
+  #define TLC_CLOCK_PIN                       25
124
+  #define TLC_BLANK_PIN                       23
125
+  #define TLC_XLAT_PIN                        22
126
+  #define TLC_DATA_PIN                        24
127 127
 
128 128
   // We also need to define pin to port number mapping for the 2560 to match the pins listed above.
129 129
   // If you change the TLC pins, update this as well per the 2560 datasheet! This currently only works with the RA Board.
130
-  #define TLC_CLOCK_BIT     3
130
+  #define TLC_CLOCK_BIT                        3
131 131
   #define TLC_CLOCK_PORT    &PORTA
132 132
 
133
-  #define TLC_BLANK_BIT     1
133
+  #define TLC_BLANK_BIT                        1
134 134
   #define TLC_BLANK_PORT    &PORTA
135 135
 
136
-  #define TLC_DATA_BIT      2
136
+  #define TLC_DATA_BIT                         2
137 137
   #define TLC_DATA_PORT     &PORTA
138 138
 
139
-  #define TLC_XLAT_BIT      0
139
+  #define TLC_XLAT_BIT                         0
140 140
   #define TLC_XLAT_PORT     &PORTA
141 141
 
142 142
   // Change this to match your situation. Lots of TLCs takes up the arduino SRAM very quickly, so be careful
143 143
   // Leave it at at least 1 if you have enabled RA_LIGHTING
144 144
   // The number of TLC5947 boards chained together for use with the animation, additional ones will repeat the animation on them, but are not individually addressable and mimic those before them. You can leave the default at 2 even if you only have 1 TLC5947 module.
145
-  #define NUM_TLCS          2
145
+  #define NUM_TLCS                             2
146 146
 
147 147
   // These TRANS_ARRAY values let you change the order the LEDs on the lighting modules will animate for chase functions.
148 148
   // Modify them according to your specific situation.

+ 60
- 60
Marlin/src/pins/mega/pins_GT2560_REV_A.h Переглянути файл

@@ -39,102 +39,102 @@
39 39
 //
40 40
 // Limit Switches
41 41
 //
42
-#define X_MIN_PIN          22
43
-#define X_MAX_PIN          24
44
-#define Y_MIN_PIN          26
45
-#define Y_MAX_PIN          28
46
-#define Z_MIN_PIN          30
47
-#define Z_MAX_PIN          32
42
+#define X_MIN_PIN                             22
43
+#define X_MAX_PIN                             24
44
+#define Y_MIN_PIN                             26
45
+#define Y_MAX_PIN                             28
46
+#define Z_MIN_PIN                             30
47
+#define Z_MAX_PIN                             32
48 48
 
49 49
 //
50 50
 // Steppers
51 51
 //
52
-#define X_STEP_PIN         25
53
-#define X_DIR_PIN          23
54
-#define X_ENABLE_PIN       27
52
+#define X_STEP_PIN                            25
53
+#define X_DIR_PIN                             23
54
+#define X_ENABLE_PIN                          27
55 55
 
56
-#define Y_STEP_PIN         31
57
-#define Y_DIR_PIN          33
58
-#define Y_ENABLE_PIN       29
56
+#define Y_STEP_PIN                            31
57
+#define Y_DIR_PIN                             33
58
+#define Y_ENABLE_PIN                          29
59 59
 
60
-#define Z_STEP_PIN         37
61
-#define Z_DIR_PIN          39
62
-#define Z_ENABLE_PIN       35
60
+#define Z_STEP_PIN                            37
61
+#define Z_DIR_PIN                             39
62
+#define Z_ENABLE_PIN                          35
63 63
 
64
-#define E0_STEP_PIN        43
65
-#define E0_DIR_PIN         45
66
-#define E0_ENABLE_PIN      41
64
+#define E0_STEP_PIN                           43
65
+#define E0_DIR_PIN                            45
66
+#define E0_ENABLE_PIN                         41
67 67
 
68
-#define E1_STEP_PIN        49
69
-#define E1_DIR_PIN         47
70
-#define E1_ENABLE_PIN      48
68
+#define E1_STEP_PIN                           49
69
+#define E1_DIR_PIN                            47
70
+#define E1_ENABLE_PIN                         48
71 71
 
72 72
 //
73 73
 // Temperature Sensors
74 74
 //
75
-#define TEMP_0_PIN          8
76
-#define TEMP_1_PIN          9
77
-#define TEMP_BED_PIN       10
75
+#define TEMP_0_PIN                             8
76
+#define TEMP_1_PIN                             9
77
+#define TEMP_BED_PIN                          10
78 78
 
79 79
 //
80 80
 // Heaters / Fans
81 81
 //
82
-#define HEATER_0_PIN        2
83
-#define HEATER_1_PIN        3
84
-#define HEATER_BED_PIN      4
82
+#define HEATER_0_PIN                           2
83
+#define HEATER_1_PIN                           3
84
+#define HEATER_BED_PIN                         4
85 85
 #ifndef FAN_PIN
86
-  #define FAN_PIN           7
86
+  #define FAN_PIN                              7
87 87
 #endif
88 88
 
89 89
 //
90 90
 // Misc. Functions
91 91
 //
92
-#define SDSS               53
93
-#define LED_PIN            13
94
-#define PS_ON_PIN          12
95
-#define SUICIDE_PIN        54   // Must be enabled at startup to keep power flowing
96
-#define KILL_PIN           -1
92
+#define SDSS                                  53
93
+#define LED_PIN                               13
94
+#define PS_ON_PIN                             12
95
+#define SUICIDE_PIN                           54  // Must be enabled at startup to keep power flowing
96
+#define KILL_PIN                              -1
97 97
 
98 98
 #if HAS_SPI_LCD
99 99
 
100
-  #define BEEPER_PIN       18
100
+  #define BEEPER_PIN                          18
101 101
 
102 102
   #if ENABLED(NEWPANEL)
103 103
 
104 104
     #if ENABLED(MKS_MINI_12864)
105
-      #define DOGLCD_A0     5
106
-      #define DOGLCD_CS    21
107
-      #define BTN_EN1      40
108
-      #define BTN_EN2      42
105
+      #define DOGLCD_A0                        5
106
+      #define DOGLCD_CS                       21
107
+      #define BTN_EN1                         40
108
+      #define BTN_EN2                         42
109 109
     #else
110
-      #define LCD_PINS_RS  20
111
-      #define LCD_PINS_ENABLE 17
112
-      #define LCD_PINS_D4  16
113
-      #define LCD_PINS_D5  21
114
-      #define LCD_PINS_D6   5
115
-      #define LCD_PINS_D7   6
116
-      #define BTN_EN1      42
117
-      #define BTN_EN2      40
110
+      #define LCD_PINS_RS                     20
111
+      #define LCD_PINS_ENABLE                 17
112
+      #define LCD_PINS_D4                     16
113
+      #define LCD_PINS_D5                     21
114
+      #define LCD_PINS_D6                      5
115
+      #define LCD_PINS_D7                      6
116
+      #define BTN_EN1                         42
117
+      #define BTN_EN2                         40
118 118
     #endif
119 119
 
120
-    #define BTN_ENC        19
121
-    #define SD_DETECT_PIN  38
120
+    #define BTN_ENC                           19
121
+    #define SD_DETECT_PIN                     38
122 122
 
123
-  #else // !NEWPANEL
123
+  #else                                           // !NEWPANEL
124 124
 
125
-    #define SHIFT_CLK      38
126
-    #define SHIFT_LD       42
127
-    #define SHIFT_OUT      40
128
-    #define SHIFT_EN       17
125
+    #define SHIFT_CLK                         38
126
+    #define SHIFT_LD                          42
127
+    #define SHIFT_OUT                         40
128
+    #define SHIFT_EN                          17
129 129
 
130
-    #define LCD_PINS_RS    16
131
-    #define LCD_PINS_ENABLE 5
132
-    #define LCD_PINS_D4     6
133
-    #define LCD_PINS_D5    21
134
-    #define LCD_PINS_D6    20
135
-    #define LCD_PINS_D7    19
130
+    #define LCD_PINS_RS                       16
131
+    #define LCD_PINS_ENABLE                    5
132
+    #define LCD_PINS_D4                        6
133
+    #define LCD_PINS_D5                       21
134
+    #define LCD_PINS_D6                       20
135
+    #define LCD_PINS_D7                       19
136 136
 
137
-    #define SD_DETECT_PIN  -1
137
+    #define SD_DETECT_PIN                     -1
138 138
 
139 139
   #endif // !NEWPANEL
140 140
 

+ 57
- 57
Marlin/src/pins/mega/pins_GT2560_V3.h Переглянути файл

@@ -36,33 +36,33 @@
36 36
 //
37 37
 // Servos
38 38
 //
39
-#define SERVO0_PIN         11   //13 untested  3Dtouch
39
+#define SERVO0_PIN                            11  //13 untested  3Dtouch
40 40
 
41 41
 //
42 42
 // Limit Switches
43 43
 //
44 44
 #ifndef X_STOP_PIN
45 45
   #ifndef X_MIN_PIN
46
-    #define X_MIN_PIN      24
46
+    #define X_MIN_PIN                         24
47 47
   #endif
48 48
   #ifndef X_MAX_PIN
49
-    #define X_MAX_PIN      22
49
+    #define X_MAX_PIN                         22
50 50
   #endif
51 51
 #endif
52 52
 #ifndef Y_STOP_PIN
53 53
   #ifndef Y_MIN_PIN
54
-    #define Y_MIN_PIN      28
54
+    #define Y_MIN_PIN                         28
55 55
   #endif
56 56
   #ifndef Y_MAX_PIN
57
-    #define Y_MAX_PIN      26
57
+    #define Y_MAX_PIN                         26
58 58
   #endif
59 59
 #endif
60 60
 #ifndef Z_STOP_PIN
61 61
   #ifndef Z_MIN_PIN
62
-    #define Z_MIN_PIN      30
62
+    #define Z_MIN_PIN                         30
63 63
   #endif
64 64
   #ifndef Z_MAX_PIN
65
-    #define Z_MAX_PIN      32
65
+    #define Z_MAX_PIN                         32
66 66
   #endif
67 67
 #endif
68 68
 
@@ -70,116 +70,116 @@
70 70
 // Z Probe (when not Z_MIN_PIN)
71 71
 //
72 72
 #ifndef Z_MIN_PROBE_PIN
73
-  #define Z_MIN_PROBE_PIN  32
73
+  #define Z_MIN_PROBE_PIN                     32
74 74
 #endif
75 75
 
76 76
 //
77 77
 // Runout Sensor
78 78
 //
79 79
 #ifndef FIL_RUNOUT_PIN
80
-  #define FIL_RUNOUT_PIN   66
80
+  #define FIL_RUNOUT_PIN                      66
81 81
 #endif
82 82
 #ifndef FIL_RUNOUT2_PIN
83
-  #define FIL_RUNOUT2_PIN  67
83
+  #define FIL_RUNOUT2_PIN                     67
84 84
 #endif
85 85
 
86 86
 //
87 87
 // Power Recovery
88 88
 //
89
-#define POWER_LOSS_PIN     69   // Pin to detect power loss
90
-#define POWER_LOSS_STATE   LOW
89
+#define POWER_LOSS_PIN                        69  // Pin to detect power loss
90
+#define POWER_LOSS_STATE                     LOW
91 91
 
92 92
 //
93 93
 // Steppers
94 94
 //
95
-#define X_STEP_PIN         37
96
-#define X_DIR_PIN          39
97
-#define X_ENABLE_PIN       35
95
+#define X_STEP_PIN                            37
96
+#define X_DIR_PIN                             39
97
+#define X_ENABLE_PIN                          35
98 98
 
99
-#define Y_STEP_PIN         31
100
-#define Y_DIR_PIN          33
101
-#define Y_ENABLE_PIN       29
99
+#define Y_STEP_PIN                            31
100
+#define Y_DIR_PIN                             33
101
+#define Y_ENABLE_PIN                          29
102 102
 
103
-#define Z_STEP_PIN         25
104
-#define Z_DIR_PIN          23
105
-#define Z_ENABLE_PIN       27
103
+#define Z_STEP_PIN                            25
104
+#define Z_DIR_PIN                             23
105
+#define Z_ENABLE_PIN                          27
106 106
 
107
-#define E0_STEP_PIN        46
108
-#define E0_DIR_PIN         44
109
-#define E0_ENABLE_PIN      12
107
+#define E0_STEP_PIN                           46
108
+#define E0_DIR_PIN                            44
109
+#define E0_ENABLE_PIN                         12
110 110
 
111
-#define E1_STEP_PIN        49
112
-#define E1_DIR_PIN         47
113
-#define E1_ENABLE_PIN      48
111
+#define E1_STEP_PIN                           49
112
+#define E1_DIR_PIN                            47
113
+#define E1_ENABLE_PIN                         48
114 114
 
115
-#define E2_STEP_PIN        43
116
-#define E2_DIR_PIN         45
117
-#define E2_ENABLE_PIN      41
115
+#define E2_STEP_PIN                           43
116
+#define E2_DIR_PIN                            45
117
+#define E2_ENABLE_PIN                         41
118 118
 
119 119
 //
120 120
 // Temperature Sensors
121 121
 //
122
-#define TEMP_0_PIN         11   // Analog Input
123
-#define TEMP_1_PIN          9   // Analog Input
124
-#define TEMP_2_PIN          1   // Analog Input
125
-#define TEMP_BED_PIN       10   // Analog Input
122
+#define TEMP_0_PIN                            11  // Analog Input
123
+#define TEMP_1_PIN                             9  // Analog Input
124
+#define TEMP_2_PIN                             1  // Analog Input
125
+#define TEMP_BED_PIN                          10  // Analog Input
126 126
 
127 127
 //
128 128
 // Heaters / Fans
129 129
 //
130
-#define HEATER_0_PIN       10
131
-#define HEATER_1_PIN        3
132
-#define HEATER_2_PIN        1
133
-#define HEATER_BED_PIN      4
134
-#define FAN_PIN             9
135
-#define FAN1_PIN            8
136
-#define FAN2_PIN            7
130
+#define HEATER_0_PIN                          10
131
+#define HEATER_1_PIN                           3
132
+#define HEATER_2_PIN                           1
133
+#define HEATER_BED_PIN                         4
134
+#define FAN_PIN                                9
135
+#define FAN1_PIN                               8
136
+#define FAN2_PIN                               7
137 137
 
138 138
 //
139 139
 // Misc. Functions
140 140
 //
141
-#define SD_DETECT_PIN      38
142
-#define SDSS               53
143
-#define LED_PIN             6
144
-#define PS_ON_PIN          12
145
-#define SUICIDE_PIN        54   // This pin must be enabled at boot to keep power flowing
141
+#define SD_DETECT_PIN                         38
142
+#define SDSS                                  53
143
+#define LED_PIN                                6
144
+#define PS_ON_PIN                             12
145
+#define SUICIDE_PIN                           54  // This pin must be enabled at boot to keep power flowing
146 146
 
147 147
 #ifndef CASE_LIGHT_PIN
148
-  #define CASE_LIGHT_PIN    6   // 21
148
+  #define CASE_LIGHT_PIN                       6  // 21
149 149
 #endif
150 150
 
151 151
 //
152 152
 // LCD Controller
153 153
 //
154
-#define BEEPER_PIN         18
154
+#define BEEPER_PIN                            18
155 155
 
156 156
 #ifndef LCD_PINS_RS
157
-  #define LCD_PINS_RS      20
157
+  #define LCD_PINS_RS                         20
158 158
 #endif
159 159
 #ifndef LCD_PINS_ENABLE
160
-  #define LCD_PINS_ENABLE  17
160
+  #define LCD_PINS_ENABLE                     17
161 161
 #endif
162 162
 #ifndef LCD_PINS_D4
163
-  #define LCD_PINS_D4      16
163
+  #define LCD_PINS_D4                         16
164 164
 #endif
165 165
 #ifndef LCD_PINS_D5
166
-  #define LCD_PINS_D5      21
166
+  #define LCD_PINS_D5                         21
167 167
 #endif
168 168
 #ifndef LCD_PINS_D6
169
-  #define LCD_PINS_D6       5
169
+  #define LCD_PINS_D6                          5
170 170
 #endif
171 171
 #ifndef LCD_PINS_D7
172
-  #define LCD_PINS_D7      36
172
+  #define LCD_PINS_D7                         36
173 173
 #endif
174 174
 
175 175
 #if ENABLED(NEWPANEL)
176 176
   #ifndef BTN_EN1
177
-    #define BTN_EN1        42
177
+    #define BTN_EN1                           42
178 178
   #endif
179 179
   #ifndef BTN_EN2
180
-    #define BTN_EN2        40
180
+    #define BTN_EN2                           40
181 181
   #endif
182 182
   #ifndef BTN_ENC
183
-    #define BTN_ENC        19
183
+    #define BTN_ENC                           19
184 184
   #endif
185 185
 #endif

+ 7
- 7
Marlin/src/pins/mega/pins_GT2560_V3_A20.h Переглянути файл

@@ -25,15 +25,15 @@
25 25
  * Geeetech A20M pin assignment
26 26
  */
27 27
 
28
-#define LCD_PINS_RS       5
29
-#define LCD_PINS_ENABLE  36
30
-#define LCD_PINS_D4      21
31
-#define LCD_PINS_D7       6
28
+#define LCD_PINS_RS                           5
29
+#define LCD_PINS_ENABLE                      36
30
+#define LCD_PINS_D4                          21
31
+#define LCD_PINS_D7                           6
32 32
 
33 33
 #if ENABLED(NEWPANEL)
34
-  #define BTN_EN1        16
35
-  #define BTN_EN2        17
36
-  #define BTN_ENC        19
34
+  #define BTN_EN1                            16
35
+  #define BTN_EN2                            17
36
+  #define BTN_ENC                            19
37 37
 #endif
38 38
 
39 39
 #include "pins_GT2560_V3.h"

+ 4
- 4
Marlin/src/pins/mega/pins_GT2560_V3_MC2.h Переглянути файл

@@ -27,9 +27,9 @@
27 27
 
28 28
 #define BOARD_INFO_NAME "GT2560 V3.0 (MC2)"
29 29
 
30
-#define X_MIN_PIN          22
31
-#define X_MAX_PIN          24
32
-#define Y_MIN_PIN          26
33
-#define Y_MAX_PIN          28
30
+#define X_MIN_PIN                            22
31
+#define X_MAX_PIN                            24
32
+#define Y_MIN_PIN                            26
33
+#define Y_MAX_PIN                            28
34 34
 
35 35
 #include "pins_GT2560_V3.h"

+ 63
- 63
Marlin/src/pins/mega/pins_HJC2560C_REV2.h Переглянути файл

@@ -42,79 +42,79 @@
42 42
 //
43 43
 // Limit Switches
44 44
 //
45
-#define X_STOP_PIN         22
46
-#define Y_STOP_PIN         26
47
-#define Z_STOP_PIN         29
48
-//#define EXP_STOP_PIN       28
45
+#define X_STOP_PIN                            22
46
+#define Y_STOP_PIN                            26
47
+#define Z_STOP_PIN                            29
48
+//#define EXP_STOP_PIN                        28
49 49
 
50 50
 //
51 51
 // Steppers
52 52
 //
53
-#define X_STEP_PIN         25
54
-#define X_DIR_PIN          23
55
-#define X_ENABLE_PIN       27
53
+#define X_STEP_PIN                            25
54
+#define X_DIR_PIN                             23
55
+#define X_ENABLE_PIN                          27
56 56
 
57
-#define Y_STEP_PIN         32
58
-#define Y_DIR_PIN          33
59
-#define Y_ENABLE_PIN       31
57
+#define Y_STEP_PIN                            32
58
+#define Y_DIR_PIN                             33
59
+#define Y_ENABLE_PIN                          31
60 60
 
61
-#define Z_STEP_PIN         35
62
-#define Z_DIR_PIN          36
63
-#define Z_ENABLE_PIN       34
61
+#define Z_STEP_PIN                            35
62
+#define Z_DIR_PIN                             36
63
+#define Z_ENABLE_PIN                          34
64 64
 
65
-#define E0_STEP_PIN        42
66
-#define E0_DIR_PIN         43
67
-#define E0_ENABLE_PIN      37
65
+#define E0_STEP_PIN                           42
66
+#define E0_DIR_PIN                            43
67
+#define E0_ENABLE_PIN                         37
68 68
 
69
-#define E1_STEP_PIN        49
70
-#define E1_DIR_PIN         47
71
-#define E1_ENABLE_PIN      48
69
+#define E1_STEP_PIN                           49
70
+#define E1_DIR_PIN                            47
71
+#define E1_ENABLE_PIN                         48
72 72
 
73
-#define MOTOR_CURRENT_PWM_XY_PIN   44
74
-#define MOTOR_CURRENT_PWM_Z_PIN    45
75
-#define MOTOR_CURRENT_PWM_E_PIN    46
73
+#define MOTOR_CURRENT_PWM_XY_PIN              44
74
+#define MOTOR_CURRENT_PWM_Z_PIN               45
75
+#define MOTOR_CURRENT_PWM_E_PIN               46
76 76
 // Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
77 77
 #ifndef MOTOR_CURRENT_PWM_RANGE
78
-  #define MOTOR_CURRENT_PWM_RANGE  2000
78
+  #define MOTOR_CURRENT_PWM_RANGE            2000
79 79
 #endif
80 80
 #define DEFAULT_PWM_MOTOR_CURRENT  { 1300, 1300, 1250 }
81 81
 
82 82
 //
83 83
 // Temperature Sensors
84 84
 //
85
-#define TEMP_0_PIN          8   // Analog Input
86
-#define TEMP_1_PIN          9   // Analog Input
87
-#define TEMP_BED_PIN       10   // Analog Input
85
+#define TEMP_0_PIN                             8  // Analog Input
86
+#define TEMP_1_PIN                             9  // Analog Input
87
+#define TEMP_BED_PIN                          10  // Analog Input
88 88
 
89 89
 //
90 90
 // Heaters / Fans
91 91
 //
92
-#define HEATER_0_PIN        2
93
-#define HEATER_1_PIN        3
94
-#define HEATER_BED_PIN      4
92
+#define HEATER_0_PIN                           2
93
+#define HEATER_1_PIN                           3
94
+#define HEATER_BED_PIN                         4
95 95
 
96 96
 #ifndef FAN_PIN
97
-  #define FAN_PIN           7   //默认不使用PWM_FAN冷却喷嘴,如果需要,则取消注释
97
+  #define FAN_PIN                              7  //默认不使用PWM_FAN冷却喷嘴,如果需要,则取消注释
98 98
 #endif
99 99
 
100 100
 //
101 101
 // Misc. Functions
102 102
 //
103
-#define SDSS               53
104
-#define SD_DETECT_PIN      39
105
-//#define LED_PIN           8
106
-#define CASE_LIGHT_PIN      8           // 8 默认挤出机风扇作为Case LED,如果需要PWM FAN,则需要将FAN_PIN置为7,LED_PIN置为8
103
+#define SDSS                                  53
104
+#define SD_DETECT_PIN                         39
105
+//#define LED_PIN                              8
106
+#define CASE_LIGHT_PIN                         8  // 8 默认挤出机风扇作为Case LED,如果需要PWM FAN,则需要将FAN_PIN置为7,LED_PIN置为8
107 107
 
108
-//#define SAFETY_TRIGGERED_PIN     28   // PIN to detect the safety circuit has triggered
109
-//#define MAIN_VOLTAGE_MEASURE_PIN 14   // ANALOG PIN to measure the main voltage, with a 100k - 4k7 resitor divider.
108
+//#define SAFETY_TRIGGERED_PIN                28  // PIN to detect the safety circuit has triggered
109
+//#define MAIN_VOLTAGE_MEASURE_PIN            14  // ANALOG PIN to measure the main voltage, with a 100k - 4k7 resitor divider.
110 110
 
111 111
 //
112 112
 // M3/M4/M5 - Spindle/Laser Control
113 113
 //
114 114
 #if ENABLED(SPINDLE_LASER_ENABLE)
115
-  #define SPINDLE_DIR_PIN           16
116
-  #define SPINDLE_LASER_ENABLE_PIN  17   // Pin should have a pullup!
117
-  #define SPINDLE_LASER_PWM_PIN      9   // Hardware PWM
115
+  #define SPINDLE_DIR_PIN                     16
116
+  #define SPINDLE_LASER_ENABLE_PIN            17  // Pin should have a pullup!
117
+  #define SPINDLE_LASER_PWM_PIN                9  // Hardware PWM
118 118
 #endif
119 119
 
120 120
 //
@@ -122,48 +122,48 @@
122 122
 //
123 123
 #if HAS_SPI_LCD
124 124
 
125
-  #define BEEPER_PIN       18
125
+  #define BEEPER_PIN                          18
126 126
 
127 127
   #if ENABLED(NEWPANEL)
128 128
 
129
-    #define LCD_PINS_RS     20   // LCD_CS
130
-    #define LCD_PINS_ENABLE 15   // LCD_SDA
131
-    #define LCD_PINS_D4     14   // LCD_SCK
129
+    #define LCD_PINS_RS                       20  // LCD_CS
130
+    #define LCD_PINS_ENABLE                   15  // LCD_SDA
131
+    #define LCD_PINS_D4                       14  // LCD_SCK
132 132
 
133 133
     #if ENABLED(HJC_LCD_SMART_CONTROLLER)
134
-      #define LCD_BACKLIGHT_PIN  5   // LCD_Backlight
134
+      #define LCD_BACKLIGHT_PIN                5  // LCD_Backlight
135 135
       //#ifndef LCD_CONTRAST_PIN
136 136
       //  #define LCD_CONTRAST_PIN  5   // LCD_Contrast
137 137
       //#endif
138 138
       #ifndef FIL_RUNOUT_PIN
139
-        #define FIL_RUNOUT_PIN 24   // Filament runout
139
+        #define FIL_RUNOUT_PIN                24  // Filament runout
140 140
       #endif
141 141
     #else
142
-      #define LCD_PINS_D5  21
143
-      #define LCD_PINS_D6   5
144
-      #define LCD_PINS_D7   6
142
+      #define LCD_PINS_D5                     21
143
+      #define LCD_PINS_D6                      5
144
+      #define LCD_PINS_D7                      6
145 145
     #endif
146 146
 
147
-    #define BTN_EN1        41
148
-    #define BTN_EN2        40
149
-    #define BTN_ENC        19
147
+    #define BTN_EN1                           41
148
+    #define BTN_EN2                           40
149
+    #define BTN_ENC                           19
150 150
 
151
-    #define SD_DETECT_PIN  39
151
+    #define SD_DETECT_PIN                     39
152 152
 
153 153
   #else
154 154
 
155 155
     // Buttons attached to a shift register
156
-    #define SHIFT_CLK      38
157
-    #define SHIFT_LD       42
158
-    #define SHIFT_OUT      40
159
-    #define SHIFT_EN       17
160
-
161
-    #define LCD_PINS_RS    16
162
-    #define LCD_PINS_ENABLE 5
163
-    #define LCD_PINS_D4     6
164
-    #define LCD_PINS_D5    21
165
-    #define LCD_PINS_D6    20
166
-    #define LCD_PINS_D7    19
156
+    #define SHIFT_CLK                         38
157
+    #define SHIFT_LD                          42
158
+    #define SHIFT_OUT                         40
159
+    #define SHIFT_EN                          17
160
+
161
+    #define LCD_PINS_RS                       16
162
+    #define LCD_PINS_ENABLE                    5
163
+    #define LCD_PINS_D4                        6
164
+    #define LCD_PINS_D5                       21
165
+    #define LCD_PINS_D6                       20
166
+    #define LCD_PINS_D7                       19
167 167
 
168 168
   #endif // !NEWPANEL
169 169
 

+ 33
- 33
Marlin/src/pins/mega/pins_LEAPFROG.h Переглянути файл

@@ -34,59 +34,59 @@
34 34
 //
35 35
 // Limit Switches
36 36
 //
37
-#define X_MIN_PIN          47
38
-#define X_MAX_PIN           2
39
-#define Y_MIN_PIN          48
40
-#define Y_MAX_PIN          15
41
-#define Z_MIN_PIN          49
42
-#define Z_MAX_PIN          -1
37
+#define X_MIN_PIN                             47
38
+#define X_MAX_PIN                              2
39
+#define Y_MIN_PIN                             48
40
+#define Y_MAX_PIN                             15
41
+#define Z_MIN_PIN                             49
42
+#define Z_MAX_PIN                             -1
43 43
 
44 44
 //
45 45
 // Steppers
46 46
 //
47
-#define X_STEP_PIN         28
48
-#define X_DIR_PIN          63
49
-#define X_ENABLE_PIN       29
47
+#define X_STEP_PIN                            28
48
+#define X_DIR_PIN                             63
49
+#define X_ENABLE_PIN                          29
50 50
 
51
-#define Y_STEP_PIN         14   // A6
52
-#define Y_DIR_PIN          15   // A0
53
-#define Y_ENABLE_PIN       39
51
+#define Y_STEP_PIN                            14  // A6
52
+#define Y_DIR_PIN                             15  // A0
53
+#define Y_ENABLE_PIN                          39
54 54
 
55
-#define Z_STEP_PIN         31   // A2
56
-#define Z_DIR_PIN          32   // A6
57
-#define Z_ENABLE_PIN       30   // A1
55
+#define Z_STEP_PIN                            31  // A2
56
+#define Z_DIR_PIN                             32  // A6
57
+#define Z_ENABLE_PIN                          30  // A1
58 58
 
59
-#define E0_STEP_PIN        34   // 34
60
-#define E0_DIR_PIN         35   // 35
61
-#define E0_ENABLE_PIN      33   // 33
59
+#define E0_STEP_PIN                           34  // 34
60
+#define E0_DIR_PIN                            35  // 35
61
+#define E0_ENABLE_PIN                         33  // 33
62 62
 
63
-#define E1_STEP_PIN        37   // 37
64
-#define E1_DIR_PIN         40   // 40
65
-#define E1_ENABLE_PIN      36   // 36
63
+#define E1_STEP_PIN                           37  // 37
64
+#define E1_DIR_PIN                            40  // 40
65
+#define E1_ENABLE_PIN                         36  // 36
66 66
 
67 67
 //
68 68
 // Temperature Sensors
69 69
 //
70
-#define TEMP_0_PIN         13   // Analog Input (D27)
71
-#define TEMP_1_PIN         15   // Analog Input (1)
72
-#define TEMP_BED_PIN       14   // Analog Input (1,2 or I2C)
70
+#define TEMP_0_PIN                            13  // Analog Input (D27)
71
+#define TEMP_1_PIN                            15  // Analog Input (1)
72
+#define TEMP_BED_PIN                          14  // Analog Input (1,2 or I2C)
73 73
 
74 74
 //
75 75
 // Heaters / Fans
76 76
 //
77
-#define HEATER_0_PIN        9
78
-#define HEATER_1_PIN        8   // 12
79
-#define HEATER_2_PIN       11   // 13
80
-#define HEATER_BED_PIN     10   // 14/15
77
+#define HEATER_0_PIN                           9
78
+#define HEATER_1_PIN                           8  // 12
79
+#define HEATER_2_PIN                          11  // 13
80
+#define HEATER_BED_PIN                        10  // 14/15
81 81
 
82
-#define FAN_PIN             7
82
+#define FAN_PIN                                7
83 83
 
84 84
 //
85 85
 // Misc. Functions
86 86
 //
87
-#define SDSS               11
88
-#define LED_PIN            13
89
-#define SOL1_PIN           16
90
-#define SOL2_PIN           17
87
+#define SDSS                                  11
88
+#define LED_PIN                               13
89
+#define SOL1_PIN                              16
90
+#define SOL2_PIN                              17
91 91
 
92 92
 /*  Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31)  */

+ 36
- 36
Marlin/src/pins/mega/pins_LEAPFROG_XEED2015.h Переглянути файл

@@ -38,9 +38,9 @@
38 38
 //
39 39
 // Limit Switches
40 40
 //
41
-#define X_STOP_PIN         47   // 'X Min'
42
-#define Y_STOP_PIN         48   // 'Y Min'
43
-#define Z_STOP_PIN         49   // 'Z Min'
41
+#define X_STOP_PIN                            47  // 'X Min'
42
+#define Y_STOP_PIN                            48  // 'Y Min'
43
+#define Z_STOP_PIN                            49  // 'Z Min'
44 44
 
45 45
 //
46 46
 // Steppers
@@ -51,65 +51,65 @@
51 51
 //
52 52
 
53 53
 // X-axis signal-level connector
54
-#define X_STEP_PIN         65
55
-#define X_DIR_PIN          64
56
-#define X_ENABLE_PIN       66   // Not actually used on Xeed, could be repurposed
54
+#define X_STEP_PIN                            65
55
+#define X_DIR_PIN                             64
56
+#define X_ENABLE_PIN                          66  // Not actually used on Xeed, could be repurposed
57 57
 
58 58
 // Y-axis signal-level connector
59
-#define Y_STEP_PIN         23
60
-#define Y_DIR_PIN          22
61
-#define Y_ENABLE_PIN       24   // Not actually used on Xeed, could be repurposed
59
+#define Y_STEP_PIN                            23
60
+#define Y_DIR_PIN                             22
61
+#define Y_ENABLE_PIN                          24  // Not actually used on Xeed, could be repurposed
62 62
 
63 63
 // ZMOT connector (Front Right Z Motor)
64
-#define Z_STEP_PIN         31
65
-#define Z_DIR_PIN          32
66
-#define Z_ENABLE_PIN       30
64
+#define Z_STEP_PIN                            31
65
+#define Z_DIR_PIN                             32
66
+#define Z_ENABLE_PIN                          30
67 67
 
68 68
 // XMOT connector (Rear Z Motor)
69
-#define Z2_STEP_PIN        28
70
-#define Z2_DIR_PIN         63
71
-#define Z2_ENABLE_PIN      29
69
+#define Z2_STEP_PIN                           28
70
+#define Z2_DIR_PIN                            63
71
+#define Z2_ENABLE_PIN                         29
72 72
 
73 73
 // YMOT connector (Front Left Z Motor)
74
-#define Z3_STEP_PIN        14
75
-#define Z3_DIR_PIN         15
76
-#define Z3_ENABLE_PIN      39
74
+#define Z3_STEP_PIN                           14
75
+#define Z3_DIR_PIN                            15
76
+#define Z3_ENABLE_PIN                         39
77 77
 
78 78
 // EMOT2 connector
79
-#define E0_STEP_PIN        37
80
-#define E0_DIR_PIN         40
81
-#define E0_ENABLE_PIN      36
79
+#define E0_STEP_PIN                           37
80
+#define E0_DIR_PIN                            40
81
+#define E0_ENABLE_PIN                         36
82 82
 
83 83
 // EMOT connector
84
-#define E1_STEP_PIN        34
85
-#define E1_DIR_PIN         35
86
-#define E1_ENABLE_PIN      33
84
+#define E1_STEP_PIN                           34
85
+#define E1_DIR_PIN                            35
86
+#define E1_ENABLE_PIN                         33
87 87
 
88 88
 //
89 89
 // Filament runout
90 90
 //
91
-#define FIL_RUNOUT_PIN     42   // ROT2 Connector
92
-#define FIL_RUNOUT2_PIN    44   // ROT1 Connector
91
+#define FIL_RUNOUT_PIN                        42  // ROT2 Connector
92
+#define FIL_RUNOUT2_PIN                       44  // ROT1 Connector
93 93
 
94 94
 //
95 95
 // Temperature Sensors
96 96
 //
97
-#define TEMP_0_PIN         15   // T3 Connector
98
-#define TEMP_1_PIN         13   // T1 Connector
99
-#define TEMP_BED_PIN       14   // BED Connector (Between T1 and T3)
97
+#define TEMP_0_PIN                            15  // T3 Connector
98
+#define TEMP_1_PIN                            13  // T1 Connector
99
+#define TEMP_BED_PIN                          14  // BED Connector (Between T1 and T3)
100 100
 
101 101
 //
102 102
 // Heaters / Fans
103 103
 //
104
-#define HEATER_0_PIN        8   // Misc Connector, pins 3 and 4 (Out2)
105
-#define HEATER_1_PIN        9   // Misc Connector, pins 5 and 6 (Out3)
106
-#define HEATER_BED_PIN      6   // Misc Connector, pins 9(-) and 10(+) (OutA)
104
+#define HEATER_0_PIN                           8  // Misc Connector, pins 3 and 4 (Out2)
105
+#define HEATER_1_PIN                           9  // Misc Connector, pins 5 and 6 (Out3)
106
+#define HEATER_BED_PIN                         6  // Misc Connector, pins 9(-) and 10(+) (OutA)
107 107
 
108
-#define FAN_PIN            10   // Misc Connector, pins 7(-) and 8 (+) (Out4)
108
+#define FAN_PIN                               10  // Misc Connector, pins 7(-) and 8 (+) (Out4)
109 109
 
110
-#define LED_PIN            13
110
+#define LED_PIN                               13
111 111
 
112
-#define SOL1_PIN            7   // Misc Connector, pins 1(-) and 2(+) (Out1)
112
+#define SOL1_PIN                               7  // Misc Connector, pins 1(-) and 2(+) (Out1)
113 113
 
114 114
 // Door Closed Sensor
115
-//#define DOOR_PIN           45 // HM1 Connector
115
+//#define DOOR_PIN                            45  // HM1 Connector

+ 55
- 55
Marlin/src/pins/mega/pins_MEGACONTROLLER.h Переглянути файл

@@ -36,89 +36,89 @@
36 36
 //
37 37
 // Servos
38 38
 //
39
-#define SERVO0_PIN         30
40
-#define SERVO1_PIN         31
41
-#define SERVO2_PIN         32
42
-#define SERVO3_PIN         33
39
+#define SERVO0_PIN                            30
40
+#define SERVO1_PIN                            31
41
+#define SERVO2_PIN                            32
42
+#define SERVO3_PIN                            33
43 43
 
44 44
 //
45 45
 // Limit Switches
46 46
 //
47
-#define X_MIN_PIN          43
48
-#define X_MAX_PIN          42
49
-#define Y_MIN_PIN          38
50
-#define Y_MAX_PIN          41
51
-#define Z_MIN_PIN          40
52
-#define Z_MAX_PIN          37
47
+#define X_MIN_PIN                             43
48
+#define X_MAX_PIN                             42
49
+#define Y_MIN_PIN                             38
50
+#define Y_MAX_PIN                             41
51
+#define Z_MIN_PIN                             40
52
+#define Z_MAX_PIN                             37
53 53
 
54 54
 //
55 55
 // Z Probe (when not Z_MIN_PIN)
56 56
 //
57 57
 #ifndef Z_MIN_PROBE_PIN
58
-  #define Z_MIN_PROBE_PIN  37
58
+  #define Z_MIN_PROBE_PIN                     37
59 59
 #endif
60 60
 
61 61
 //
62 62
 // Steppers
63 63
 //
64
-#define X_STEP_PIN         62   // A8
65
-#define X_DIR_PIN          63   // A9
66
-#define X_ENABLE_PIN       61   // A7
64
+#define X_STEP_PIN                            62  // A8
65
+#define X_DIR_PIN                             63  // A9
66
+#define X_ENABLE_PIN                          61  // A7
67 67
 
68
-#define Y_STEP_PIN         65   // A11
69
-#define Y_DIR_PIN          66   // A12
70
-#define Y_ENABLE_PIN       64   // A10
68
+#define Y_STEP_PIN                            65  // A11
69
+#define Y_DIR_PIN                             66  // A12
70
+#define Y_ENABLE_PIN                          64  // A10
71 71
 
72
-#define Z_STEP_PIN         68   // A14
73
-#define Z_DIR_PIN          69   // A15
74
-#define Z_ENABLE_PIN       67   // A13
72
+#define Z_STEP_PIN                            68  // A14
73
+#define Z_DIR_PIN                             69  // A15
74
+#define Z_ENABLE_PIN                          67  // A13
75 75
 
76
-#define E0_STEP_PIN        23
77
-#define E0_DIR_PIN         24
78
-#define E0_ENABLE_PIN      22
76
+#define E0_STEP_PIN                           23
77
+#define E0_DIR_PIN                            24
78
+#define E0_ENABLE_PIN                         22
79 79
 
80
-#define E1_STEP_PIN        26
81
-#define E1_DIR_PIN         27
82
-#define E1_ENABLE_PIN      25
80
+#define E1_STEP_PIN                           26
81
+#define E1_DIR_PIN                            27
82
+#define E1_ENABLE_PIN                         25
83 83
 
84 84
 //
85 85
 // Temperature Sensors
86 86
 //
87 87
 #if TEMP_SENSOR_0 == -1
88
-  #define TEMP_0_PIN        4   // Analog Input
88
+  #define TEMP_0_PIN                           4  // Analog Input
89 89
 #else
90
-  #define TEMP_0_PIN        0   // Analog Input
90
+  #define TEMP_0_PIN                           0  // Analog Input
91 91
 #endif
92 92
 
93 93
 #if TEMP_SENSOR_1 == -1
94
-  #define TEMP_1_PIN        5   // Analog Input
94
+  #define TEMP_1_PIN                           5  // Analog Input
95 95
 #else
96
-  #define TEMP_1_PIN        2   // Analog Input
96
+  #define TEMP_1_PIN                           2  // Analog Input
97 97
 #endif
98 98
 
99
-#define TEMP_2_PIN          3   // Analog Input
99
+#define TEMP_2_PIN                             3  // Analog Input
100 100
 
101 101
 #if TEMP_SENSOR_BED == -1
102
-  #define TEMP_BED_PIN      6   // Analog Input
102
+  #define TEMP_BED_PIN                         6  // Analog Input
103 103
 #else
104
-  #define TEMP_BED_PIN      1   // Analog Input
104
+  #define TEMP_BED_PIN                         1  // Analog Input
105 105
 #endif
106 106
 
107 107
 //
108 108
 // Heaters / Fans
109 109
 //
110
-#define HEATER_0_PIN       29
111
-#define HEATER_1_PIN       34
112
-#define HEATER_BED_PIN     28
110
+#define HEATER_0_PIN                          29
111
+#define HEATER_1_PIN                          34
112
+#define HEATER_BED_PIN                        28
113 113
 
114 114
 #ifndef FAN_PIN
115
-  #define FAN_PIN          39
115
+  #define FAN_PIN                             39
116 116
 #endif
117
-#define FAN1_PIN           35
118
-#define FAN2_PIN           36
117
+#define FAN1_PIN                              35
118
+#define FAN2_PIN                              36
119 119
 
120 120
 #ifndef CONTROLLER_FAN_PIN
121
-  #define CONTROLLER_FAN_PIN FAN2_PIN
121
+  #define CONTROLLER_FAN_PIN            FAN2_PIN
122 122
 #endif
123 123
 
124 124
 #define FAN_SOFT_PWM
@@ -126,39 +126,39 @@
126 126
 //
127 127
 // Misc. Functions
128 128
 //
129
-#define SDSS               53
130
-#define LED_PIN            13
131
-#define CASE_LIGHT_PIN      2
129
+#define SDSS                                  53
130
+#define LED_PIN                               13
131
+#define CASE_LIGHT_PIN                         2
132 132
 
133 133
 //
134 134
 // LCD / Controller
135 135
 //
136 136
 #if ENABLED(MINIPANEL)
137 137
 
138
-  #define BEEPER_PIN       46
138
+  #define BEEPER_PIN                          46
139 139
   // Pins for DOGM SPI LCD Support
140
-  #define DOGLCD_A0        47
141
-  #define DOGLCD_CS        45
142
-  #define LCD_BACKLIGHT_PIN 44   // backlight LED on PA3
140
+  #define DOGLCD_A0                           47
141
+  #define DOGLCD_CS                           45
142
+  #define LCD_BACKLIGHT_PIN                   44  // backlight LED on PA3
143 143
 
144
-  #define KILL_PIN         12
144
+  #define KILL_PIN                            12
145 145
   // GLCD features
146 146
   // Uncomment screen orientation
147 147
   //#define LCD_SCREEN_ROT_90
148 148
   //#define LCD_SCREEN_ROT_180
149 149
   //#define LCD_SCREEN_ROT_270
150 150
 
151
-  #define BTN_EN1          48
152
-  #define BTN_EN2          11
153
-  #define BTN_ENC          10
151
+  #define BTN_EN1                             48
152
+  #define BTN_EN2                             11
153
+  #define BTN_ENC                             10
154 154
 
155
-  #define SD_DETECT_PIN    49
155
+  #define SD_DETECT_PIN                       49
156 156
 
157 157
 #endif // MINIPANEL
158 158
 
159 159
 //
160 160
 // M3/M4/M5 - Spindle/Laser Control
161 161
 //
162
-#define SPINDLE_LASER_PWM_PIN     6   // Hardware PWM
163
-#define SPINDLE_LASER_ENA_PIN     7   // Pullup!
164
-#define SPINDLE_DIR_PIN           8
162
+#define SPINDLE_LASER_PWM_PIN                  6  // Hardware PWM
163
+#define SPINDLE_LASER_ENA_PIN                  7  // Pullup!
164
+#define SPINDLE_DIR_PIN                        8

+ 48
- 48
Marlin/src/pins/mega/pins_MEGATRONICS.h Переглянути файл

@@ -33,99 +33,99 @@
33 33
 //
34 34
 // Limit Switches
35 35
 //
36
-#define X_MIN_PIN          41
37
-#define X_MAX_PIN          37
38
-#define Y_MIN_PIN          14
39
-#define Y_MAX_PIN          15
40
-#define Z_MIN_PIN          18
41
-#define Z_MAX_PIN          19
36
+#define X_MIN_PIN                             41
37
+#define X_MAX_PIN                             37
38
+#define Y_MIN_PIN                             14
39
+#define Y_MAX_PIN                             15
40
+#define Z_MIN_PIN                             18
41
+#define Z_MAX_PIN                             19
42 42
 
43 43
 //
44 44
 // Z Probe (when not Z_MIN_PIN)
45 45
 //
46 46
 #ifndef Z_MIN_PROBE_PIN
47
-  #define Z_MIN_PROBE_PIN  19
47
+  #define Z_MIN_PROBE_PIN                     19
48 48
 #endif
49 49
 
50 50
 //
51 51
 // Steppers
52 52
 //
53
-#define X_STEP_PIN         26
54
-#define X_DIR_PIN          28
55
-#define X_ENABLE_PIN       24
53
+#define X_STEP_PIN                            26
54
+#define X_DIR_PIN                             28
55
+#define X_ENABLE_PIN                          24
56 56
 
57
-#define Y_STEP_PIN         60   // A6
58
-#define Y_DIR_PIN          61   // A7
59
-#define Y_ENABLE_PIN       22
57
+#define Y_STEP_PIN                            60  // A6
58
+#define Y_DIR_PIN                             61  // A7
59
+#define Y_ENABLE_PIN                          22
60 60
 
61
-#define Z_STEP_PIN         54   // A0
62
-#define Z_DIR_PIN          55   // A1
63
-#define Z_ENABLE_PIN       56   // A2
61
+#define Z_STEP_PIN                            54  // A0
62
+#define Z_DIR_PIN                             55  // A1
63
+#define Z_ENABLE_PIN                          56  // A2
64 64
 
65
-#define E0_STEP_PIN        31
66
-#define E0_DIR_PIN         32
67
-#define E0_ENABLE_PIN      38
65
+#define E0_STEP_PIN                           31
66
+#define E0_DIR_PIN                            32
67
+#define E0_ENABLE_PIN                         38
68 68
 
69
-#define E1_STEP_PIN        34
70
-#define E1_DIR_PIN         36
71
-#define E1_ENABLE_PIN      30
69
+#define E1_STEP_PIN                           34
70
+#define E1_DIR_PIN                            36
71
+#define E1_ENABLE_PIN                         30
72 72
 
73 73
 //
74 74
 // Temperature Sensors
75 75
 //
76 76
 #if TEMP_SENSOR_0 == -1
77
-  #define TEMP_0_PIN        8   // Analog Input
77
+  #define TEMP_0_PIN                           8  // Analog Input
78 78
 #else
79
-  #define TEMP_0_PIN       13   // Analog Input
79
+  #define TEMP_0_PIN                          13  // Analog Input
80 80
 #endif
81
-#define TEMP_1_PIN         15   // Analog Input
82
-#define TEMP_BED_PIN       14   // Analog Input
81
+#define TEMP_1_PIN                            15  // Analog Input
82
+#define TEMP_BED_PIN                          14  // Analog Input
83 83
 
84 84
 //
85 85
 // Heaters / Fans
86 86
 //
87
-#define HEATER_0_PIN        9
88
-#define HEATER_1_PIN        8
89
-#define HEATER_BED_PIN     10
87
+#define HEATER_0_PIN                           9
88
+#define HEATER_1_PIN                           8
89
+#define HEATER_BED_PIN                        10
90 90
 
91 91
 #ifndef FAN_PIN
92
-  #define FAN_PIN           7   // IO pin. Buffer needed
92
+  #define FAN_PIN                              7  // IO pin. Buffer needed
93 93
 #endif
94 94
 
95 95
 //
96 96
 // Misc. Functions
97 97
 //
98
-#define SDSS               53
99
-#define LED_PIN            13
100
-#define PS_ON_PIN          12
101
-#define CASE_LIGHT_PIN      2
98
+#define SDSS                                  53
99
+#define LED_PIN                               13
100
+#define PS_ON_PIN                             12
101
+#define CASE_LIGHT_PIN                         2
102 102
 
103 103
 //
104 104
 // LCD / Controller
105 105
 //
106
-#define BEEPER_PIN         33
106
+#define BEEPER_PIN                            33
107 107
 
108 108
 #if BOTH(ULTRA_LCD, NEWPANEL)
109 109
 
110
-  #define LCD_PINS_RS     16
111
-  #define LCD_PINS_ENABLE 17
112
-  #define LCD_PINS_D4     23
113
-  #define LCD_PINS_D5     25
114
-  #define LCD_PINS_D6     27
115
-  #define LCD_PINS_D7     29
110
+  #define LCD_PINS_RS                         16
111
+  #define LCD_PINS_ENABLE                     17
112
+  #define LCD_PINS_D4                         23
113
+  #define LCD_PINS_D5                         25
114
+  #define LCD_PINS_D6                         27
115
+  #define LCD_PINS_D7                         29
116 116
 
117 117
   // Buttons directly attached to AUX-2
118
-  #define BTN_EN1         59
119
-  #define BTN_EN2         64
120
-  #define BTN_ENC         43
118
+  #define BTN_EN1                             59
119
+  #define BTN_EN2                             64
120
+  #define BTN_ENC                             43
121 121
 
122
-  #define SD_DETECT_PIN   -1   // RAMPS doesn't use this
122
+  #define SD_DETECT_PIN                       -1  // RAMPS doesn't use this
123 123
 
124 124
 #endif // HAS_SPI_LCD && NEWPANEL
125 125
 
126 126
 //
127 127
 // M3/M4/M5 - Spindle/Laser Control
128 128
 //
129
-#define SPINDLE_LASER_PWM_PIN     3   // Hardware PWM
130
-#define SPINDLE_LASER_ENA_PIN     4   // Pullup!
131
-#define SPINDLE_DIR_PIN          11
129
+#define SPINDLE_LASER_PWM_PIN                  3  // Hardware PWM
130
+#define SPINDLE_LASER_ENA_PIN                  4  // Pullup!
131
+#define SPINDLE_DIR_PIN                       11

+ 57
- 57
Marlin/src/pins/mega/pins_MEGATRONICS_2.h Переглянути файл

@@ -33,120 +33,120 @@
33 33
 //
34 34
 // Limit Switches
35 35
 //
36
-#define X_MIN_PIN          37
37
-#define X_MAX_PIN          40
38
-#define Y_MIN_PIN          41
39
-#define Y_MAX_PIN          38
40
-#define Z_MIN_PIN          18
41
-#define Z_MAX_PIN          19
36
+#define X_MIN_PIN                             37
37
+#define X_MAX_PIN                             40
38
+#define Y_MIN_PIN                             41
39
+#define Y_MAX_PIN                             38
40
+#define Z_MIN_PIN                             18
41
+#define Z_MAX_PIN                             19
42 42
 
43 43
 //
44 44
 // Z Probe (when not Z_MIN_PIN)
45 45
 //
46 46
 #ifndef Z_MIN_PROBE_PIN
47
-  #define Z_MIN_PROBE_PIN  19
47
+  #define Z_MIN_PROBE_PIN                     19
48 48
 #endif
49 49
 
50 50
 //
51 51
 // Steppers
52 52
 //
53
-#define X_STEP_PIN         26
54
-#define X_DIR_PIN          27
55
-#define X_ENABLE_PIN       25
53
+#define X_STEP_PIN                            26
54
+#define X_DIR_PIN                             27
55
+#define X_ENABLE_PIN                          25
56 56
 
57
-#define Y_STEP_PIN          4   // A6
58
-#define Y_DIR_PIN          54   // A0
59
-#define Y_ENABLE_PIN        5
57
+#define Y_STEP_PIN                             4  // A6
58
+#define Y_DIR_PIN                             54  // A0
59
+#define Y_ENABLE_PIN                           5
60 60
 
61
-#define Z_STEP_PIN         56   // A2
62
-#define Z_DIR_PIN          60   // A6
63
-#define Z_ENABLE_PIN       55   // A1
61
+#define Z_STEP_PIN                            56  // A2
62
+#define Z_DIR_PIN                             60  // A6
63
+#define Z_ENABLE_PIN                          55  // A1
64 64
 
65
-#define E0_STEP_PIN        35
66
-#define E0_DIR_PIN         36
67
-#define E0_ENABLE_PIN      34
65
+#define E0_STEP_PIN                           35
66
+#define E0_DIR_PIN                            36
67
+#define E0_ENABLE_PIN                         34
68 68
 
69
-#define E1_STEP_PIN        29
70
-#define E1_DIR_PIN         39
71
-#define E1_ENABLE_PIN      28
69
+#define E1_STEP_PIN                           29
70
+#define E1_DIR_PIN                            39
71
+#define E1_ENABLE_PIN                         28
72 72
 
73
-#define E2_STEP_PIN        23   // ? schematic says 24
74
-#define E2_DIR_PIN         24   // ? schematic says 23
75
-#define E2_ENABLE_PIN      22
73
+#define E2_STEP_PIN                           23  // ? schematic says 24
74
+#define E2_DIR_PIN                            24  // ? schematic says 23
75
+#define E2_ENABLE_PIN                         22
76 76
 
77 77
 //
78 78
 // Temperature Sensors
79 79
 //
80 80
 #if TEMP_SENSOR_0 == -1
81
-  #define TEMP_0_PIN        4   // Analog Input
81
+  #define TEMP_0_PIN                           4  // Analog Input
82 82
 #else
83
-  #define TEMP_0_PIN       13   // Analog Input
83
+  #define TEMP_0_PIN                          13  // Analog Input
84 84
 #endif
85 85
 
86 86
 #if TEMP_SENSOR_1 == -1
87
-  #define TEMP_1_PIN        8   // Analog Input
87
+  #define TEMP_1_PIN                           8  // Analog Input
88 88
 #else
89
-  #define TEMP_1_PIN       15   // Analog Input
89
+  #define TEMP_1_PIN                          15  // Analog Input
90 90
 #endif
91 91
 
92 92
 #if TEMP_SENSOR_BED == -1
93
-  #define TEMP_BED_PIN      8   // Analog Input
93
+  #define TEMP_BED_PIN                         8  // Analog Input
94 94
 #else
95
-  #define TEMP_BED_PIN     14   // Analog Input
95
+  #define TEMP_BED_PIN                        14  // Analog Input
96 96
 #endif
97 97
 
98 98
 //
99 99
 // Heaters / Fans
100 100
 //
101
-#define HEATER_0_PIN        9
102
-#define HEATER_1_PIN        8
103
-#define HEATER_BED_PIN     10
101
+#define HEATER_0_PIN                           9
102
+#define HEATER_1_PIN                           8
103
+#define HEATER_BED_PIN                        10
104 104
 
105 105
 #ifndef FAN_PIN
106
-  #define FAN_PIN           7
106
+  #define FAN_PIN                              7
107 107
 #endif
108
-#define FAN1_PIN            6
108
+#define FAN1_PIN                               6
109 109
 
110 110
 //
111 111
 // Misc. Functions
112 112
 //
113
-#define SDSS               53
114
-#define LED_PIN            13
115
-#define PS_ON_PIN          12
116
-#define CASE_LIGHT_PIN      2
113
+#define SDSS                                  53
114
+#define LED_PIN                               13
115
+#define PS_ON_PIN                             12
116
+#define CASE_LIGHT_PIN                         2
117 117
 
118 118
 //
119 119
 // M3/M4/M5 - Spindle/Laser Control
120 120
 //
121
-#define SPINDLE_LASER_PWM_PIN     3   // Hardware PWM
122
-#define SPINDLE_LASER_ENA_PIN    16   // Pullup!
123
-#define SPINDLE_DIR_PIN          11
121
+#define SPINDLE_LASER_PWM_PIN                  3  // Hardware PWM
122
+#define SPINDLE_LASER_ENA_PIN                 16  // Pullup!
123
+#define SPINDLE_DIR_PIN                       11
124 124
 
125 125
 //
126 126
 // LCD / Controller
127 127
 //
128
-#define BEEPER_PIN         64
128
+#define BEEPER_PIN                            64
129 129
 
130 130
 #if HAS_SPI_LCD
131 131
 
132
-  #define LCD_PINS_RS      14
133
-  #define LCD_PINS_ENABLE  15
134
-  #define LCD_PINS_D4      30
135
-  #define LCD_PINS_D5      31
136
-  #define LCD_PINS_D6      32
137
-  #define LCD_PINS_D7      33
132
+  #define LCD_PINS_RS                         14
133
+  #define LCD_PINS_ENABLE                     15
134
+  #define LCD_PINS_D4                         30
135
+  #define LCD_PINS_D5                         31
136
+  #define LCD_PINS_D6                         32
137
+  #define LCD_PINS_D7                         33
138 138
 
139 139
   #if ENABLED(NEWPANEL)
140 140
     // Buttons are directly attached using keypad
141
-    #define BTN_EN1        61
142
-    #define BTN_EN2        59
143
-    #define BTN_ENC        43
141
+    #define BTN_EN1                           61
142
+    #define BTN_EN2                           59
143
+    #define BTN_ENC                           43
144 144
   #else
145 145
     // Buttons attached to shift register of reprapworld keypad v1.1
146
-    #define SHIFT_CLK      63
147
-    #define SHIFT_LD       42
148
-    #define SHIFT_OUT      17
149
-    #define SHIFT_EN       17
146
+    #define SHIFT_CLK                         63
147
+    #define SHIFT_LD                          42
148
+    #define SHIFT_OUT                         17
149
+    #define SHIFT_EN                          17
150 150
   #endif
151 151
 
152 152
 #endif // HAS_SPI_LCD

+ 82
- 82
Marlin/src/pins/mega/pins_MEGATRONICS_3.h Переглянути файл

@@ -40,132 +40,132 @@
40 40
 //
41 41
 // Servos
42 42
 //
43
-#define SERVO0_PIN         46   // AUX3-6
44
-#define SERVO1_PIN         47   // AUX3-5
45
-#define SERVO2_PIN         48   // AUX3-4
46
-#define SERVO3_PIN         49   // AUX3-3
43
+#define SERVO0_PIN                            46  // AUX3-6
44
+#define SERVO1_PIN                            47  // AUX3-5
45
+#define SERVO2_PIN                            48  // AUX3-4
46
+#define SERVO3_PIN                            49  // AUX3-3
47 47
 
48 48
 //
49 49
 // Limit Switches
50 50
 //
51
-#define X_MIN_PIN          37   // No INT
52
-#define X_MAX_PIN          40   // No INT
53
-#define Y_MIN_PIN          41   // No INT
54
-#define Y_MAX_PIN          38   // No INT
55
-#define Z_MIN_PIN          18   // No INT
56
-#define Z_MAX_PIN          19   // No INT
51
+#define X_MIN_PIN                             37  // No INT
52
+#define X_MAX_PIN                             40  // No INT
53
+#define Y_MIN_PIN                             41  // No INT
54
+#define Y_MAX_PIN                             38  // No INT
55
+#define Z_MIN_PIN                             18  // No INT
56
+#define Z_MAX_PIN                             19  // No INT
57 57
 
58 58
 //
59 59
 // Z Probe (when not Z_MIN_PIN)
60 60
 //
61 61
 #ifndef Z_MIN_PROBE_PIN
62
-  #define Z_MIN_PROBE_PIN  19
62
+  #define Z_MIN_PROBE_PIN                     19
63 63
 #endif
64 64
 
65 65
 //
66 66
 // Steppers
67 67
 //
68
-#define X_STEP_PIN         58
69
-#define X_DIR_PIN          57
70
-#define X_ENABLE_PIN       59
68
+#define X_STEP_PIN                            58
69
+#define X_DIR_PIN                             57
70
+#define X_ENABLE_PIN                          59
71 71
 
72
-#define Y_STEP_PIN          5
73
-#define Y_DIR_PIN          17
74
-#define Y_ENABLE_PIN        4
72
+#define Y_STEP_PIN                             5
73
+#define Y_DIR_PIN                             17
74
+#define Y_ENABLE_PIN                           4
75 75
 
76
-#define Z_STEP_PIN         16
77
-#define Z_DIR_PIN          11
78
-#define Z_ENABLE_PIN        3
76
+#define Z_STEP_PIN                            16
77
+#define Z_DIR_PIN                             11
78
+#define Z_ENABLE_PIN                           3
79 79
 
80
-#define E0_STEP_PIN        28
81
-#define E0_DIR_PIN         27
82
-#define E0_ENABLE_PIN      29
80
+#define E0_STEP_PIN                           28
81
+#define E0_DIR_PIN                            27
82
+#define E0_ENABLE_PIN                         29
83 83
 
84
-#define E1_STEP_PIN        25
85
-#define E1_DIR_PIN         24
86
-#define E1_ENABLE_PIN      26
84
+#define E1_STEP_PIN                           25
85
+#define E1_DIR_PIN                            24
86
+#define E1_ENABLE_PIN                         26
87 87
 
88
-#define E2_STEP_PIN        22
89
-#define E2_DIR_PIN         60
90
-#define E2_ENABLE_PIN      23
88
+#define E2_STEP_PIN                           22
89
+#define E2_DIR_PIN                            60
90
+#define E2_ENABLE_PIN                         23
91 91
 
92 92
 //
93 93
 // Temperature Sensors
94 94
 //
95 95
 #if TEMP_SENSOR_0 == -1
96
-  #define TEMP_0_PIN       11   // Analog Input
96
+  #define TEMP_0_PIN                          11  // Analog Input
97 97
 #else
98
-  #define TEMP_0_PIN       15   // Analog Input
98
+  #define TEMP_0_PIN                          15  // Analog Input
99 99
 #endif
100 100
 #if TEMP_SENSOR_1 == -1
101
-  #define TEMP_1_PIN       10   // Analog Input
101
+  #define TEMP_1_PIN                          10  // Analog Input
102 102
 #else
103
-  #define TEMP_1_PIN       13   // Analog Input
103
+  #define TEMP_1_PIN                          13  // Analog Input
104 104
 #endif
105 105
 #if TEMP_SENSOR_2 == -1
106
-  #define TEMP_2_PIN        9   // Analog Input
106
+  #define TEMP_2_PIN                           9  // Analog Input
107 107
 #else
108
-  #define TEMP_2_PIN       12   // Analog Input
108
+  #define TEMP_2_PIN                          12  // Analog Input
109 109
 #endif
110 110
 #if TEMP_SENSOR_BED == -1
111
-  #define TEMP_BED_PIN      8   // Analog Input
111
+  #define TEMP_BED_PIN                         8  // Analog Input
112 112
 #else
113
-  #define TEMP_BED_PIN     14   // Analog Input
113
+  #define TEMP_BED_PIN                        14  // Analog Input
114 114
 #endif
115 115
 
116 116
 //
117 117
 // Heaters / Fans
118 118
 //
119
-#define HEATER_0_PIN        2
120
-#define HEATER_1_PIN        9
121
-#define HEATER_2_PIN        8
122
-#define HEATER_BED_PIN     10
119
+#define HEATER_0_PIN                           2
120
+#define HEATER_1_PIN                           9
121
+#define HEATER_2_PIN                           8
122
+#define HEATER_BED_PIN                        10
123 123
 
124 124
 #ifndef FAN_PIN
125
-  #define FAN_PIN           6
125
+  #define FAN_PIN                              6
126 126
 #endif
127
-#define FAN1_PIN            7
127
+#define FAN1_PIN                               7
128 128
 
129 129
 //
130 130
 // Misc. Functions
131 131
 //
132
-#define SDSS               53
133
-#define LED_PIN            13
134
-#define PS_ON_PIN          12
135
-#define CASE_LIGHT_PIN     45   // Try the keypad connector
132
+#define SDSS                                  53
133
+#define LED_PIN                               13
134
+#define PS_ON_PIN                             12
135
+#define CASE_LIGHT_PIN                        45  // Try the keypad connector
136 136
 
137 137
 //
138 138
 // LCD / Controller
139 139
 //
140
-#define BEEPER_PIN         61
140
+#define BEEPER_PIN                            61
141 141
 
142
-#define BTN_EN1            44
143
-#define BTN_EN2            45
144
-#define BTN_ENC            33
142
+#define BTN_EN1                               44
143
+#define BTN_EN2                               45
144
+#define BTN_ENC                               33
145 145
 
146 146
 #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
147 147
 
148
-  #define LCD_PINS_RS      56   // CS chip select / SS chip slave select
149
-  #define LCD_PINS_ENABLE  51   // SID (MOSI)
150
-  #define LCD_PINS_D4      52   // SCK (CLK) clock
151
-  #define SD_DETECT_PIN    35
148
+  #define LCD_PINS_RS                         56  // CS chip select / SS chip slave select
149
+  #define LCD_PINS_ENABLE                     51  // SID (MOSI)
150
+  #define LCD_PINS_D4                         52  // SCK (CLK) clock
151
+  #define SD_DETECT_PIN                       35
152 152
 
153 153
 #else
154 154
 
155
-  #define LCD_PINS_RS      32
156
-  #define LCD_PINS_ENABLE  31
157
-  #define LCD_PINS_D4      14
158
-  #define LCD_PINS_D5      30
159
-  #define LCD_PINS_D6      39
160
-  #define LCD_PINS_D7      15
155
+  #define LCD_PINS_RS                         32
156
+  #define LCD_PINS_ENABLE                     31
157
+  #define LCD_PINS_D4                         14
158
+  #define LCD_PINS_D5                         30
159
+  #define LCD_PINS_D6                         39
160
+  #define LCD_PINS_D7                         15
161 161
 
162
-  #define SHIFT_CLK        43
163
-  #define SHIFT_LD         35
164
-  #define SHIFT_OUT        34
165
-  #define SHIFT_EN         44
162
+  #define SHIFT_CLK                           43
163
+  #define SHIFT_LD                            35
164
+  #define SHIFT_OUT                           34
165
+  #define SHIFT_EN                            44
166 166
 
167 167
   #if MB(MEGATRONICS_31, MEGATRONICS_32)
168
-    #define SD_DETECT_PIN  56
168
+    #define SD_DETECT_PIN                     56
169 169
   #endif
170 170
 
171 171
 #endif
@@ -173,23 +173,23 @@
173 173
 //
174 174
 // M3/M4/M5 - Spindle/Laser Control
175 175
 //
176
-#if DISABLED(REPRAPWORLD_KEYPAD)        // try to use the keypad connector first
177
-  #define SPINDLE_LASER_PWM_PIN    44   // Hardware PWM
178
-  #define SPINDLE_LASER_ENA_PIN    43   // Pullup!
179
-  #define SPINDLE_DIR_PIN          42
176
+#if DISABLED(REPRAPWORLD_KEYPAD)                  // try to use the keypad connector first
177
+  #define SPINDLE_LASER_PWM_PIN               44  // Hardware PWM
178
+  #define SPINDLE_LASER_ENA_PIN               43  // Pullup!
179
+  #define SPINDLE_DIR_PIN                     42
180 180
 #elif EXTRUDERS <= 2
181 181
   // Hijack the last extruder so that we can get the PWM signal off the Y breakout
182 182
   // Move Y to the E2 plug. This makes dual Y steppers harder
183
-  #undef Y_ENABLE_PIN  //  4
184
-  #undef Y_STEP_PIN    //  5
185
-  #undef Y_DIR_PIN     // 17
186
-  #undef E2_ENABLE_PIN // 23
187
-  #undef E2_STEP_PIN   // 22
188
-  #undef E2_DIR_PIN    // 60
189
-  #define Y_ENABLE_PIN             23
190
-  #define Y_STEP_PIN               22
191
-  #define Y_DIR_PIN                60
192
-  #define SPINDLE_LASER_PWM_PIN     4   // Hardware PWM
193
-  #define SPINDLE_LASER_ENA_PIN    17   // Pullup!
194
-  #define SPINDLE_DIR_PIN           5
183
+  #undef Y_ENABLE_PIN                             //  4
184
+  #undef Y_STEP_PIN                               //  5
185
+  #undef Y_DIR_PIN                                // 17
186
+  #undef E2_ENABLE_PIN                            // 23
187
+  #undef E2_STEP_PIN                              // 22
188
+  #undef E2_DIR_PIN                               // 60
189
+  #define Y_ENABLE_PIN                        23
190
+  #define Y_STEP_PIN                          22
191
+  #define Y_DIR_PIN                           60
192
+  #define SPINDLE_LASER_PWM_PIN                4  // Hardware PWM
193
+  #define SPINDLE_LASER_ENA_PIN               17  // Pullup!
194
+  #define SPINDLE_DIR_PIN                      5
195 195
 #endif

+ 103
- 103
Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h Переглянути файл

@@ -47,60 +47,60 @@
47 47
 //
48 48
 // Servos
49 49
 //
50
-#define SERVO0_PIN         36   // C1 (1280-EX1)
51
-#define SERVO1_PIN         37   // C0 (1280-EX2)
52
-#define SERVO2_PIN         40   // G1 (1280-EX3)
53
-#define SERVO3_PIN         41   // G0 (1280-EX4)
50
+#define SERVO0_PIN                            36  // C1 (1280-EX1)
51
+#define SERVO1_PIN                            37  // C0 (1280-EX2)
52
+#define SERVO2_PIN                            40  // G1 (1280-EX3)
53
+#define SERVO3_PIN                            41  // G0 (1280-EX4)
54 54
 
55 55
 //
56 56
 // Limit Switches
57 57
 //
58
-#define X_MIN_PIN          49   // L0
59
-#define X_MAX_PIN          48   // L1
60
-#define Y_MIN_PIN          47   // L2
61
-#define Y_MAX_PIN          46   // L3
62
-#define Z_MIN_PIN          43   // L6
63
-#define Z_MAX_PIN          42   // L7
58
+#define X_MIN_PIN                             49  // L0
59
+#define X_MAX_PIN                             48  // L1
60
+#define Y_MIN_PIN                             47  // L2
61
+#define Y_MAX_PIN                             46  // L3
62
+#define Z_MIN_PIN                             43  // L6
63
+#define Z_MAX_PIN                             42  // L7
64 64
 
65 65
 //
66 66
 // Z Probe (when not Z_MIN_PIN)
67 67
 //
68 68
 #ifndef Z_MIN_PROBE_PIN
69
-  #define Z_MIN_PROBE_PIN  42
69
+  #define Z_MIN_PROBE_PIN                     42
70 70
 #endif
71 71
 
72 72
 //
73 73
 // Filament Runout Pins
74 74
 //
75 75
 #ifndef FIL_RUNOUT_PIN
76
-  #define FIL_RUNOUT_PIN   49
76
+  #define FIL_RUNOUT_PIN                      49
77 77
 #endif
78 78
 #ifndef FIL_RUNOUT2_PIN
79
-  #define FIL_RUNOUT2_PIN  47
79
+  #define FIL_RUNOUT2_PIN                     47
80 80
 #endif
81 81
 
82 82
 //
83 83
 // Steppers
84 84
 //
85
-#define X_STEP_PIN         55   // F1
86
-#define X_DIR_PIN          54   // F0
87
-#define X_ENABLE_PIN       56   // F2
85
+#define X_STEP_PIN                            55  // F1
86
+#define X_DIR_PIN                             54  // F0
87
+#define X_ENABLE_PIN                          56  // F2
88 88
 
89
-#define Y_STEP_PIN         59   // F5
90
-#define Y_DIR_PIN          58   // F4
91
-#define Y_ENABLE_PIN       60   // F6
89
+#define Y_STEP_PIN                            59  // F5
90
+#define Y_DIR_PIN                             58  // F4
91
+#define Y_ENABLE_PIN                          60  // F6
92 92
 
93
-#define Z_STEP_PIN         63   // K1
94
-#define Z_DIR_PIN          62   // K0
95
-#define Z_ENABLE_PIN       64   // K2
93
+#define Z_STEP_PIN                            63  // K1
94
+#define Z_DIR_PIN                             62  // K0
95
+#define Z_ENABLE_PIN                          64  // K2
96 96
 
97
-#define E0_STEP_PIN        25   // A3
98
-#define E0_DIR_PIN         24   // A2
99
-#define E0_ENABLE_PIN      26   // A4
97
+#define E0_STEP_PIN                           25  // A3
98
+#define E0_DIR_PIN                            24  // A2
99
+#define E0_ENABLE_PIN                         26  // A4
100 100
 
101
-#define E1_STEP_PIN        29   // A7
102
-#define E1_DIR_PIN         28   // A6
103
-#define E1_ENABLE_PIN      39   // G2
101
+#define E1_STEP_PIN                           29  // A7
102
+#define E1_DIR_PIN                            28  // A6
103
+#define E1_ENABLE_PIN                         39  // G2
104 104
 
105 105
 //
106 106
 // I2C Digipots - MCP4018
@@ -108,22 +108,22 @@
108 108
 // Set from 0 - 127 with stop bit.
109 109
 // (Ex. 3F << 1 | 1)
110 110
 //
111
-#define DIGIPOTS_I2C_SCL    76   // J5
112
-#define DIGIPOTS_I2C_SDA_X  57   // F3
113
-#define DIGIPOTS_I2C_SDA_Y  61   // F7
114
-#define DIGIPOTS_I2C_SDA_Z  65   // K3
115
-#define DIGIPOTS_I2C_SDA_E0 27   // A5
116
-#define DIGIPOTS_I2C_SDA_E1 77   // J6
111
+#define DIGIPOTS_I2C_SCL                      76  // J5
112
+#define DIGIPOTS_I2C_SDA_X                    57  // F3
113
+#define DIGIPOTS_I2C_SDA_Y                    61  // F7
114
+#define DIGIPOTS_I2C_SDA_Z                    65  // K3
115
+#define DIGIPOTS_I2C_SDA_E0                   27  // A5
116
+#define DIGIPOTS_I2C_SDA_E1                   77  // J6
117 117
 
118 118
 #ifndef DIGIPOT_I2C_ADDRESS_A
119
-  #define DIGIPOT_I2C_ADDRESS_A 0x2F   // unshifted slave address (5E <- 2F << 1)
119
+  #define DIGIPOT_I2C_ADDRESS_A 0x2F              // unshifted slave address (5E <- 2F << 1)
120 120
 #endif
121 121
 
122 122
 //
123 123
 // Temperature Sensors
124 124
 //
125 125
 // K7 - 69 / ADC15 - 15
126
-#define TEMP_BED_PIN       15
126
+#define TEMP_BED_PIN                          15
127 127
 
128 128
 // SPI for Max6675 or Max31855 Thermocouple
129 129
 // Uses a separate SPI bus
@@ -133,15 +133,15 @@
133 133
 //  2 E4 CS2
134 134
 // 78 E2 SCK
135 135
 //
136
-#define THERMO_SCK_PIN     78   // E2
137
-#define THERMO_DO_PIN       3   // E5
138
-#define THERMO_CS1_PIN      5   // E3
139
-#define THERMO_CS2_PIN      2   // E4
136
+#define THERMO_SCK_PIN                        78  // E2
137
+#define THERMO_DO_PIN                          3  // E5
138
+#define THERMO_CS1_PIN                         5  // E3
139
+#define THERMO_CS2_PIN                         2  // E4
140 140
 
141
-#define MAX6675_SS_PIN     THERMO_CS1_PIN
142
-#define MAX6675_SS2_PIN    THERMO_CS2_PIN
143
-#define MAX6675_SCK_PIN    THERMO_SCK_PIN
144
-#define MAX6675_DO_PIN     THERMO_DO_PIN
141
+#define MAX6675_SS_PIN            THERMO_CS1_PIN
142
+#define MAX6675_SS2_PIN           THERMO_CS2_PIN
143
+#define MAX6675_SCK_PIN           THERMO_SCK_PIN
144
+#define MAX6675_DO_PIN             THERMO_DO_PIN
145 145
 
146 146
 //
147 147
 // Augmentation for auto-assigning plugs
@@ -152,12 +152,12 @@
152 152
 //
153 153
 
154 154
 // Labels from the schematic:
155
-#define EX1_HEAT_PIN        6   // H3
156
-#define EX1_FAN_PIN         7   // H4
157
-#define EX2_HEAT_PIN       11   // B5
158
-#define EX2_FAN_PIN        12   // B6
159
-#define HBP_PIN            45   // L4
160
-#define EXTRA_FET_PIN      44   // L5
155
+#define EX1_HEAT_PIN                           6  // H3
156
+#define EX1_FAN_PIN                            7  // H4
157
+#define EX2_HEAT_PIN                          11  // B5
158
+#define EX2_FAN_PIN                           12  // B6
159
+#define HBP_PIN                               45  // L4
160
+#define EXTRA_FET_PIN                         44  // L5
161 161
 
162 162
 #if HOTENDS > 1
163 163
   #if TEMP_SENSOR_BED
@@ -174,35 +174,35 @@
174 174
 //
175 175
 // Heaters / Fans (24V)
176 176
 //
177
-#define HEATER_0_PIN       EX1_HEAT_PIN
178
-
179
-#if ENABLED(IS_EFB)                            // Hotend, Fan, Bed
180
-  #define HEATER_BED_PIN   HBP_PIN
181
-#elif ENABLED(IS_EEF)                          // Hotend, Hotend, Fan
182
-  #define HEATER_1_PIN     EX2_HEAT_PIN
183
-#elif ENABLED(IS_EEB)                          // Hotend, Hotend, Bed
184
-  #define HEATER_1_PIN     EX2_HEAT_PIN
185
-  #define HEATER_BED_PIN   HBP_PIN
186
-#elif ENABLED(IS_EFF)                          // Hotend, Fan, Fan
187
-  #define FAN1_PIN         HBP_PIN
177
+#define HEATER_0_PIN                EX1_HEAT_PIN
178
+
179
+#if ENABLED(IS_EFB)                               // Hotend, Fan, Bed
180
+  #define HEATER_BED_PIN                 HBP_PIN
181
+#elif ENABLED(IS_EEF)                             // Hotend, Hotend, Fan
182
+  #define HEATER_1_PIN              EX2_HEAT_PIN
183
+#elif ENABLED(IS_EEB)                             // Hotend, Hotend, Bed
184
+  #define HEATER_1_PIN              EX2_HEAT_PIN
185
+  #define HEATER_BED_PIN                 HBP_PIN
186
+#elif ENABLED(IS_EFF)                             // Hotend, Fan, Fan
187
+  #define FAN1_PIN                       HBP_PIN
188 188
 #endif
189 189
 
190 190
 #ifndef FAN_PIN
191 191
   #if EITHER(IS_EFB, IS_EFF)                      // Hotend, Fan, Bed or Hotend, Fan, Fan
192
-    #define FAN_PIN        EX2_HEAT_PIN
192
+    #define FAN_PIN                 EX2_HEAT_PIN
193 193
   #elif EITHER(IS_EEF, IS_SF)                     // Hotend, Hotend, Fan or Spindle, Fan
194
-    #define FAN_PIN        HBP_PIN
194
+    #define FAN_PIN                      HBP_PIN
195 195
   #else
196
-    #define FAN_PIN        EXTRA_FET_PIN
196
+    #define FAN_PIN                EXTRA_FET_PIN
197 197
   #endif
198 198
 #endif
199 199
 
200 200
 //
201 201
 // Misc. Functions
202 202
 //
203
-#define LED_PIN            13   // B7
204
-#define CUTOFF_RESET_PIN   16   // H1
205
-#define CUTOFF_TEST_PIN    17   // H0
203
+#define LED_PIN                               13  // B7
204
+#define CUTOFF_RESET_PIN                      16  // H1
205
+#define CUTOFF_TEST_PIN                       17  // H0
206 206
 
207 207
 //
208 208
 // LCD / Controller
@@ -211,57 +211,57 @@
211 211
 
212 212
   #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
213 213
 
214
-    #define LCD_PINS_RS    33   // C4: LCD-STROBE
215
-    #define LCD_PINS_ENABLE 72  // J2: LEFT
216
-    #define LCD_PINS_D4    35   // C2: LCD-CLK
217
-    #define LCD_PINS_D5    32   // C5: RLED
218
-    #define LCD_PINS_D6    34   // C3: LCD-DATA
219
-    #define LCD_PINS_D7    31   // C6: GLED
214
+    #define LCD_PINS_RS                       33  // C4: LCD-STROBE
215
+    #define LCD_PINS_ENABLE                   72  // J2: LEFT
216
+    #define LCD_PINS_D4                       35  // C2: LCD-CLK
217
+    #define LCD_PINS_D5                       32  // C5: RLED
218
+    #define LCD_PINS_D6                       34  // C3: LCD-DATA
219
+    #define LCD_PINS_D7                       31  // C6: GLED
220 220
 
221
-    #define BTN_EN2        75   // J4, UP
222
-    #define BTN_EN1        73   // J3, DOWN
221
+    #define BTN_EN2                           75  // J4, UP
222
+    #define BTN_EN1                           73  // J3, DOWN
223 223
     //STOP button connected as KILL_PIN
224
-    #define KILL_PIN       14   // J1, RIGHT
224
+    #define KILL_PIN                          14  // J1, RIGHT
225 225
     //KILL - not connected
226 226
 
227
-    #define BEEPER_PIN      8   // H5, SD_WP
227
+    #define BEEPER_PIN                         8  // H5, SD_WP
228 228
 
229 229
     //on board leds
230
-    #define STAT_LED_RED_LED  SERVO0_PIN   // C1 (1280-EX1, DEBUG2)
231
-    #define STAT_LED_BLUE_PIN SERVO1_PIN   // C0 (1280-EX2, DEBUG3)
230
+    #define STAT_LED_RED_LED          SERVO0_PIN  // C1 (1280-EX1, DEBUG2)
231
+    #define STAT_LED_BLUE_PIN         SERVO1_PIN  // C0 (1280-EX2, DEBUG3)
232 232
 
233 233
   #else
234 234
     // Replicator uses a 3-wire SR controller with HD44780
235
-    #define SR_DATA_PIN    34   // C3
236
-    #define SR_CLK_PIN     35   // C2
237
-    #define SR_STROBE_PIN  33   // C4
235
+    #define SR_DATA_PIN                       34  // C3
236
+    #define SR_CLK_PIN                        35  // C2
237
+    #define SR_STROBE_PIN                     33  // C4
238 238
 
239
-    #define BTN_UP         75   // J4
240
-    #define BTN_DWN        73   // J3
241
-    #define BTN_LFT        72   // J2
242
-    #define BTN_RT         14   // J1
239
+    #define BTN_UP                            75  // J4
240
+    #define BTN_DWN                           73  // J3
241
+    #define BTN_LFT                           72  // J2
242
+    #define BTN_RT                            14  // J1
243 243
 
244 244
     // Disable encoder
245 245
     #undef BTN_EN1
246 246
     #undef BTN_EN2
247 247
 
248
-    #define BEEPER_PIN      4   // G5
248
+    #define BEEPER_PIN                         4  // G5
249 249
 
250
-    #define STAT_LED_RED_PIN  32   // C5
251
-    #define STAT_LED_BLUE_PIN 31   // C6 (Actually green)
250
+    #define STAT_LED_RED_PIN                  32  // C5
251
+    #define STAT_LED_BLUE_PIN                 31  // C6 (Actually green)
252 252
 
253 253
   #endif
254 254
 
255
-  #define BTN_CENTER       15   // J0
256
-  #define BTN_ENC          BTN_CENTER
255
+  #define BTN_CENTER                          15  // J0
256
+  #define BTN_ENC                     BTN_CENTER
257 257
 
258 258
 #endif // HAS_SPI_LCD
259 259
 
260 260
 //
261 261
 // SD Card
262 262
 //
263
-#define SDSS               53   // B0
264
-#define SD_DETECT_PIN       9   // H6
263
+#define SDSS                                  53  // B0
264
+#define SD_DETECT_PIN                          9  // H6
265 265
 
266 266
 //
267 267
 // TMC 220x
@@ -280,19 +280,19 @@
280 280
    * Software serial
281 281
    */
282 282
 
283
-  #define X_SERIAL_TX_PIN  16
284
-  #define X_SERIAL_RX_PIN  17
283
+  #define X_SERIAL_TX_PIN                     16
284
+  #define X_SERIAL_RX_PIN                     17
285 285
 
286
-  #define Y_SERIAL_TX_PIN  18
287
-  #define Y_SERIAL_RX_PIN  19
286
+  #define Y_SERIAL_TX_PIN                     18
287
+  #define Y_SERIAL_RX_PIN                     19
288 288
 
289
-  #define Z_SERIAL_TX_PIN  41
290
-  #define Z_SERIAL_RX_PIN  66
289
+  #define Z_SERIAL_TX_PIN                     41
290
+  #define Z_SERIAL_RX_PIN                     66
291 291
 
292
-  #define E0_SERIAL_TX_PIN 40
293
-  #define E0_SERIAL_RX_PIN 67
292
+  #define E0_SERIAL_TX_PIN                    40
293
+  #define E0_SERIAL_RX_PIN                    67
294 294
 
295
-  #define E1_SERIAL_TX_PIN 37
296
-  #define E1_SERIAL_RX_PIN 68
295
+  #define E1_SERIAL_TX_PIN                    37
296
+  #define E1_SERIAL_RX_PIN                    68
297 297
 
298 298
 #endif

+ 54
- 54
Marlin/src/pins/mega/pins_MINITRONICS.h Переглянути файл

@@ -42,102 +42,102 @@
42 42
 //
43 43
 // Limit Switches
44 44
 //
45
-#define X_MIN_PIN           5
46
-#define X_MAX_PIN           2
47
-#define Y_MIN_PIN           2
48
-#define Y_MAX_PIN          15
49
-#define Z_MIN_PIN           6
50
-#define Z_MAX_PIN          -1
45
+#define X_MIN_PIN                              5
46
+#define X_MAX_PIN                              2
47
+#define Y_MIN_PIN                              2
48
+#define Y_MAX_PIN                             15
49
+#define Z_MIN_PIN                              6
50
+#define Z_MAX_PIN                             -1
51 51
 
52 52
 //
53 53
 // Steppers
54 54
 //
55
-#define X_STEP_PIN         48
56
-#define X_DIR_PIN          47
57
-#define X_ENABLE_PIN       49
55
+#define X_STEP_PIN                            48
56
+#define X_DIR_PIN                             47
57
+#define X_ENABLE_PIN                          49
58 58
 
59
-#define Y_STEP_PIN         39   // A6
60
-#define Y_DIR_PIN          40   // A0
61
-#define Y_ENABLE_PIN       38
59
+#define Y_STEP_PIN                            39  // A6
60
+#define Y_DIR_PIN                             40  // A0
61
+#define Y_ENABLE_PIN                          38
62 62
 
63
-#define Z_STEP_PIN         42   // A2
64
-#define Z_DIR_PIN          43   // A6
65
-#define Z_ENABLE_PIN       41   // A1
63
+#define Z_STEP_PIN                            42  // A2
64
+#define Z_DIR_PIN                             43  // A6
65
+#define Z_ENABLE_PIN                          41  // A1
66 66
 
67
-#define E0_STEP_PIN        45
68
-#define E0_DIR_PIN         44
69
-#define E0_ENABLE_PIN      27
67
+#define E0_STEP_PIN                           45
68
+#define E0_DIR_PIN                            44
69
+#define E0_ENABLE_PIN                         27
70 70
 
71
-#define E1_STEP_PIN        36
72
-#define E1_DIR_PIN         35
73
-#define E1_ENABLE_PIN      37
71
+#define E1_STEP_PIN                           36
72
+#define E1_DIR_PIN                            35
73
+#define E1_ENABLE_PIN                         37
74 74
 
75 75
 //
76 76
 // Temperature Sensors
77 77
 //
78
-#define TEMP_0_PIN          7   // Analog Input
79
-#define TEMP_1_PIN          6   // Analog Input
80
-#define TEMP_BED_PIN        6   // Analog Input
78
+#define TEMP_0_PIN                             7  // Analog Input
79
+#define TEMP_1_PIN                             6  // Analog Input
80
+#define TEMP_BED_PIN                           6  // Analog Input
81 81
 
82 82
 //
83 83
 // Heaters / Fans
84 84
 //
85
-#define HEATER_0_PIN        7   // EXTRUDER 1
86
-#define HEATER_1_PIN        8   // EXTRUDER 2
87
-#define HEATER_BED_PIN      3   // BED
85
+#define HEATER_0_PIN                           7  // EXTRUDER 1
86
+#define HEATER_1_PIN                           8  // EXTRUDER 2
87
+#define HEATER_BED_PIN                         3  // BED
88 88
 
89 89
 #ifndef FAN_PIN
90
-  #define FAN_PIN           9
90
+  #define FAN_PIN                              9
91 91
 #endif
92 92
 
93 93
 //
94 94
 // Misc. Functions
95 95
 //
96
-#define SDSS               16
97
-#define LED_PIN            46
96
+#define SDSS                                  16
97
+#define LED_PIN                               46
98 98
 
99 99
 //
100 100
 // LCD / Controller
101 101
 //
102
-#define BEEPER_PIN         -1
102
+#define BEEPER_PIN                            -1
103 103
 
104 104
 #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
105 105
 
106
-  #define LCD_PINS_RS      15   // CS chip select /SS chip slave select
107
-  #define LCD_PINS_ENABLE  11   // SID (MOSI)
108
-  #define LCD_PINS_D4      10   // SCK (CLK) clock
106
+  #define LCD_PINS_RS                         15  // CS chip select /SS chip slave select
107
+  #define LCD_PINS_ENABLE                     11  // SID (MOSI)
108
+  #define LCD_PINS_D4                         10  // SCK (CLK) clock
109 109
 
110
-  #define BTN_EN1          18
111
-  #define BTN_EN2          17
112
-  #define BTN_ENC          25
110
+  #define BTN_EN1                             18
111
+  #define BTN_EN2                             17
112
+  #define BTN_ENC                             25
113 113
 
114
-  #define SD_DETECT_PIN    30
114
+  #define SD_DETECT_PIN                       30
115 115
 
116 116
 #else
117 117
 
118
-  #define LCD_PINS_RS      -1
119
-  #define LCD_PINS_ENABLE  -1
118
+  #define LCD_PINS_RS                         -1
119
+  #define LCD_PINS_ENABLE                     -1
120 120
 
121 121
   // Buttons are directly attached using keypad
122
-  #define BTN_EN1          -1
123
-  #define BTN_EN2          -1
124
-  #define BTN_ENC          -1
122
+  #define BTN_EN1                             -1
123
+  #define BTN_EN2                             -1
124
+  #define BTN_ENC                             -1
125 125
 
126
-  #define SD_DETECT_PIN    -1   // Minitronics doesn't use this
126
+  #define SD_DETECT_PIN                       -1  // Minitronics doesn't use this
127 127
 #endif
128 128
 
129 129
 //
130 130
 // M3/M4/M5 - Spindle/Laser Control
131 131
 //
132
-#if HAS_CUTTER  // assumes we're only doing CNC work (no 3D printing)
132
+#if HAS_CUTTER                                    // assumes we're only doing CNC work (no 3D printing)
133 133
   #undef HEATER_BED_PIN
134
-  #undef TEMP_BED_PIN             // need to free up some pins but also need to
135
-  #undef TEMP_0_PIN               // re-assign them (to unused pins) because Marlin
136
-  #undef TEMP_1_PIN               // requires the presence of certain pins or else it
137
-  #define HEATER_BED_PIN      4   // won't compile
138
-  #define TEMP_BED_PIN       50
139
-  #define TEMP_0_PIN         51
140
-  #define SPINDLE_LASER_ENA_PIN         52   // using A6 because it already has a pullup
141
-  #define SPINDLE_LASER_PWM_PIN          3   // WARNING - LED & resistor pull up to +12/+24V stepper voltage
142
-  #define SPINDLE_DIR_PIN               53
134
+  #undef TEMP_BED_PIN                             // need to free up some pins but also need to
135
+  #undef TEMP_0_PIN                               // re-assign them (to unused pins) because Marlin
136
+  #undef TEMP_1_PIN                               // requires the presence of certain pins or else it
137
+  #define HEATER_BED_PIN                       4  // won't compile
138
+  #define TEMP_BED_PIN                        50
139
+  #define TEMP_0_PIN                          51
140
+  #define SPINDLE_LASER_ENA_PIN               52  // using A6 because it already has a pullup
141
+  #define SPINDLE_LASER_PWM_PIN                3  // WARNING - LED & resistor pull up to +12/+24V stepper voltage
142
+  #define SPINDLE_DIR_PIN                     53
143 143
 #endif

+ 50
- 50
Marlin/src/pins/mega/pins_OVERLORD.h Переглянути файл

@@ -37,83 +37,83 @@
37 37
 //
38 38
 // Limit Switches
39 39
 //
40
-#define X_STOP_PIN         24
41
-#define Y_STOP_PIN         28
42
-#define Z_MIN_PIN          46
43
-#define Z_MAX_PIN          32
40
+#define X_STOP_PIN                            24
41
+#define Y_STOP_PIN                            28
42
+#define Z_MIN_PIN                             46
43
+#define Z_MAX_PIN                             32
44 44
 
45 45
 //
46 46
 // Z Probe (when not Z_MIN_PIN)
47 47
 //
48 48
 #ifndef Z_MIN_PROBE_PIN
49
-  #define Z_MIN_PROBE_PIN  46   // JP4, Tfeed1
49
+  #define Z_MIN_PROBE_PIN                     46  // JP4, Tfeed1
50 50
 #endif
51 51
 
52 52
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
53
-  #define FIL_RUNOUT_PIN   44   // JP3, Tfeed2
53
+  #define FIL_RUNOUT_PIN                      44  // JP3, Tfeed2
54 54
 #endif
55 55
 
56 56
 //
57 57
 // Steppers
58 58
 //
59
-#define X_STEP_PIN         25
60
-#define X_DIR_PIN          23
61
-#define X_ENABLE_PIN       27
59
+#define X_STEP_PIN                            25
60
+#define X_DIR_PIN                             23
61
+#define X_ENABLE_PIN                          27
62 62
 
63
-#define Y_STEP_PIN         31
64
-#define Y_DIR_PIN          33
65
-#define Y_ENABLE_PIN       29
63
+#define Y_STEP_PIN                            31
64
+#define Y_DIR_PIN                             33
65
+#define Y_ENABLE_PIN                          29
66 66
 
67
-#define Z_STEP_PIN         37
68
-#define Z_DIR_PIN          39
69
-#define Z_ENABLE_PIN       35
67
+#define Z_STEP_PIN                            37
68
+#define Z_DIR_PIN                             39
69
+#define Z_ENABLE_PIN                          35
70 70
 
71
-#define E0_STEP_PIN        43
72
-#define E0_DIR_PIN         45
73
-#define E0_ENABLE_PIN      41
71
+#define E0_STEP_PIN                           43
72
+#define E0_DIR_PIN                            45
73
+#define E0_ENABLE_PIN                         41
74 74
 
75
-#define E1_STEP_PIN        49
76
-#define E1_DIR_PIN         47
77
-#define E1_ENABLE_PIN      48
75
+#define E1_STEP_PIN                           49
76
+#define E1_DIR_PIN                            47
77
+#define E1_ENABLE_PIN                         48
78 78
 
79 79
 //
80 80
 // Temperature Sensors
81 81
 //
82
-#define TEMP_0_PIN          8   // Analog Input
83
-#define TEMP_1_PIN          9   // Analog Input - Redundant temp sensor
84
-#define TEMP_2_PIN         12   // Analog Input
85
-#define TEMP_3_PIN         14   // Analog Input
86
-#define TEMP_BED_PIN       10   // Analog Input
82
+#define TEMP_0_PIN                             8  // Analog Input
83
+#define TEMP_1_PIN                             9  // Analog Input - Redundant temp sensor
84
+#define TEMP_2_PIN                            12  // Analog Input
85
+#define TEMP_3_PIN                            14  // Analog Input
86
+#define TEMP_BED_PIN                          10  // Analog Input
87 87
 
88 88
 //
89 89
 // Heaters / Fans
90 90
 //
91
-#define HEATER_0_PIN        2
92
-#define HEATER_1_PIN        3
93
-#define HEATER_BED_PIN      4
91
+#define HEATER_0_PIN                           2
92
+#define HEATER_1_PIN                           3
93
+#define HEATER_BED_PIN                         4
94 94
 
95
-#define FAN_PIN             7   // material cooling fan
95
+#define FAN_PIN                                7  // material cooling fan
96 96
 
97 97
 //
98 98
 // SD Card
99 99
 //
100
-#define SDSS               53
101
-#define SD_DETECT_PIN      38
100
+#define SDSS                                  53
101
+#define SD_DETECT_PIN                         38
102 102
 
103 103
 //
104 104
 // Misc. Functions
105 105
 //
106
-#define LED_PIN            13   // On PCB status led
107
-#define PS_ON_PIN          12   // For stepper/heater/fan power. Active HIGH.
108
-#define POWER_LOSS_PIN     34   // Power check - whether hotends/steppers/fans have power
106
+#define LED_PIN                               13  // On PCB status led
107
+#define PS_ON_PIN                             12  // For stepper/heater/fan power. Active HIGH.
108
+#define POWER_LOSS_PIN                        34  // Power check - whether hotends/steppers/fans have power
109 109
 
110 110
 #if ENABLED(BATTERY_STATUS_AVAILABLE)
111 111
   #undef BATTERY_STATUS_PIN
112
-  #define BATTERY_STATUS_PIN 26   // Status of power loss battery, whether it is charged (low) or charging (high)
112
+  #define BATTERY_STATUS_PIN                  26  // Status of power loss battery, whether it is charged (low) or charging (high)
113 113
 #endif
114 114
 #if ENABLED(INPUT_VOLTAGE_AVAILABLE)
115 115
   #undef VOLTAGE_DETECTION_PIN
116
-  #define VOLTAGE_DETECTION_PIN 11  // Analog Input - ADC Voltage level of main input
116
+  #define VOLTAGE_DETECTION_PIN               11  // Analog Input - ADC Voltage level of main input
117 117
 #endif
118 118
 
119 119
 //
@@ -121,24 +121,24 @@
121 121
 //
122 122
 #if HAS_GRAPHICAL_LCD
123 123
   // OVERLORD OLED pins
124
-  #define LCD_PINS_RS      20
125
-  #define LCD_PINS_D5      21
126
-  #define LCD_PINS_ENABLE  15
127
-  #define LCD_PINS_D4      14
128
-  #define LCD_PINS_D6       5
129
-  #define LCD_PINS_D7       6
124
+  #define LCD_PINS_RS                         20
125
+  #define LCD_PINS_D5                         21
126
+  #define LCD_PINS_ENABLE                     15
127
+  #define LCD_PINS_D4                         14
128
+  #define LCD_PINS_D6                          5
129
+  #define LCD_PINS_D7                          6
130 130
   #ifndef LCD_RESET_PIN
131
-    #define LCD_RESET_PIN   5   // LCD_PINS_D6
131
+    #define LCD_RESET_PIN                      5  // LCD_PINS_D6
132 132
   #endif
133 133
 #endif
134 134
 
135 135
 #if ENABLED(NEWPANEL)
136
-  #define BTN_ENC          16   // Enter Pin
137
-  #define BTN_UP           19   // Button UP Pin
138
-  #define BTN_DWN          17   // Button DOWN Pin
136
+  #define BTN_ENC                             16  // Enter Pin
137
+  #define BTN_UP                              19  // Button UP Pin
138
+  #define BTN_DWN                             17  // Button DOWN Pin
139 139
 #endif
140 140
 
141 141
 // Additional connectors/pins on the Overlord V1.X board
142
-#define PCB_VERSION_PIN    22
143
-#define APPROACH_PIN       11   // JP7, Tpd
144
-#define GATE_PIN           36   // Threshold, JP6, Tg
142
+#define PCB_VERSION_PIN                       22
143
+#define APPROACH_PIN                          11  // JP7, Tpd
144
+#define GATE_PIN                              36  // Threshold, JP6, Tg

+ 50
- 50
Marlin/src/pins/mega/pins_PICA.h Переглянути файл

@@ -49,95 +49,95 @@
49 49
 //
50 50
 // Limit Switches
51 51
 //
52
-#define X_MIN_PIN          14
53
-#define X_MAX_PIN          15
54
-#define Y_MIN_PIN          16
55
-#define Y_MAX_PIN          17
56
-#define Z_MIN_PIN          23
57
-#define Z_MAX_PIN          22
52
+#define X_MIN_PIN                             14
53
+#define X_MAX_PIN                             15
54
+#define Y_MIN_PIN                             16
55
+#define Y_MAX_PIN                             17
56
+#define Z_MIN_PIN                             23
57
+#define Z_MAX_PIN                             22
58 58
 
59 59
 //
60 60
 // Steppers
61 61
 //
62
-#define X_STEP_PIN         55
63
-#define X_DIR_PIN          54
64
-#define X_ENABLE_PIN       60
62
+#define X_STEP_PIN                            55
63
+#define X_DIR_PIN                             54
64
+#define X_ENABLE_PIN                          60
65 65
 
66
-#define Y_STEP_PIN         57
67
-#define Y_DIR_PIN          56
68
-#define Y_ENABLE_PIN       61
66
+#define Y_STEP_PIN                            57
67
+#define Y_DIR_PIN                             56
68
+#define Y_ENABLE_PIN                          61
69 69
 
70
-#define Z_STEP_PIN         59
71
-#define Z_DIR_PIN          58
72
-#define Z_ENABLE_PIN       62
70
+#define Z_STEP_PIN                            59
71
+#define Z_DIR_PIN                             58
72
+#define Z_ENABLE_PIN                          62
73 73
 
74
-#define E0_STEP_PIN        67
75
-#define E0_DIR_PIN         24
76
-#define E0_ENABLE_PIN      26
74
+#define E0_STEP_PIN                           67
75
+#define E0_DIR_PIN                            24
76
+#define E0_ENABLE_PIN                         26
77 77
 
78 78
 //
79 79
 // Temperature Sensors
80 80
 //
81
-#define TEMP_0_PIN          9   // Analog Input
82
-#define TEMP_1_PIN         10
83
-#define TEMP_BED_PIN       10
84
-#define TEMP_2_PIN         11
85
-#define TEMP_3_PIN         12
81
+#define TEMP_0_PIN                             9  // Analog Input
82
+#define TEMP_1_PIN                            10
83
+#define TEMP_BED_PIN                          10
84
+#define TEMP_2_PIN                            11
85
+#define TEMP_3_PIN                            12
86 86
 
87 87
 //
88 88
 // Heaters / Fans
89 89
 //
90 90
 #ifndef HEATER_0_PIN
91
-  #define HEATER_0_PIN     10   // E0
91
+  #define HEATER_0_PIN                        10  // E0
92 92
 #endif
93 93
 #ifndef HEATER_1_PIN
94
-  #define HEATER_1_PIN      2   // E1
94
+  #define HEATER_1_PIN                         2  // E1
95 95
 #endif
96
-#define HEATER_BED_PIN      8   // HEAT-BED
96
+#define HEATER_BED_PIN                         8  // HEAT-BED
97 97
 
98 98
 #ifndef FAN_PIN
99
-  #define FAN_PIN           9
99
+  #define FAN_PIN                              9
100 100
 #endif
101 101
 #ifndef FAN_2_PIN
102
-  #define FAN_2_PIN         7
102
+  #define FAN_2_PIN                            7
103 103
 #endif
104 104
 
105
-#define SDPOWER_PIN        -1
106
-#define LED_PIN            -1
107
-#define PS_ON_PIN          -1
108
-#define KILL_PIN           -1
105
+#define SDPOWER_PIN                           -1
106
+#define LED_PIN                               -1
107
+#define PS_ON_PIN                             -1
108
+#define KILL_PIN                              -1
109 109
 
110
-#define SSR_PIN             6
110
+#define SSR_PIN                                6
111 111
 
112 112
 // SPI for Max6675 or Max31855 Thermocouple
113 113
 #if DISABLED(SDSUPPORT)
114
-  #define MAX6675_SS_PIN   66   // Don't use 53 if using Display/SD card
114
+  #define MAX6675_SS_PIN                      66  // Don't use 53 if using Display/SD card
115 115
 #else
116
-  #define MAX6675_SS_PIN   66   // Don't use 49 (SD_DETECT_PIN)
116
+  #define MAX6675_SS_PIN                      66  // Don't use 49 (SD_DETECT_PIN)
117 117
 #endif
118 118
 
119 119
 //
120 120
 // SD Support
121 121
 //
122
-#define SD_DETECT_PIN      49
123
-#define SDSS               53
122
+#define SD_DETECT_PIN                         49
123
+#define SDSS                                  53
124 124
 
125 125
 //
126 126
 // LCD / Controller
127 127
 //
128
-#define BEEPER_PIN         29
128
+#define BEEPER_PIN                            29
129 129
 
130 130
 #if HAS_SPI_LCD
131
-  #define LCD_PINS_RS      33
132
-  #define LCD_PINS_ENABLE  30
133
-  #define LCD_PINS_D4      35
134
-  #define LCD_PINS_D5      32
135
-  #define LCD_PINS_D6      37
136
-  #define LCD_PINS_D7      36
137
-
138
-  #define BTN_EN1          47
139
-  #define BTN_EN2          48
140
-  #define BTN_ENC          31
141
-
142
-  #define LCD_SDSS         53
131
+  #define LCD_PINS_RS                         33
132
+  #define LCD_PINS_ENABLE                     30
133
+  #define LCD_PINS_D4                         35
134
+  #define LCD_PINS_D5                         32
135
+  #define LCD_PINS_D6                         37
136
+  #define LCD_PINS_D7                         36
137
+
138
+  #define BTN_EN1                             47
139
+  #define BTN_EN2                             48
140
+  #define BTN_ENC                             31
141
+
142
+  #define LCD_SDSS                            53
143 143
 #endif

+ 0
- 0
Marlin/src/pins/mega/pins_PICAOLD.h Переглянути файл


Деякі файли не було показано, через те що забагато файлів було змінено

Завантаження…
Відмінити
Зберегти