My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pins_GMARSH_X6_REV1.h 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. #pragma once
  23. #ifndef MCU_LPC1768
  24. #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
  25. #endif
  26. #define BOARD_INFO_NAME "GMARSH X6 REV1"
  27. // Ignore temp readings during develpment.
  28. //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
  29. //
  30. // Enable 12MHz clock output on P1.27 pin to sync TMC2208 chip clocks
  31. //
  32. #define LPC1768_ENABLE_CLKOUT_12M
  33. //
  34. // Servos
  35. //
  36. #define SERVO0_PIN P1_26 // PWM1[6]
  37. #define SERVO1_PIN P1_18 // PWM1[1]
  38. //
  39. // Limit Switches
  40. //
  41. #define X_MIN_PIN P0_00
  42. #define X_MAX_PIN P0_01
  43. #define Y_MIN_PIN P0_10
  44. #define Y_MAX_PIN P0_21
  45. #define Z_MIN_PIN P2_13
  46. #define Z_MAX_PIN P2_22
  47. //
  48. // Steppers
  49. //
  50. #define X_STEP_PIN P1_01
  51. #define X_DIR_PIN P1_04
  52. #define X_ENABLE_PIN P0_26
  53. #define Y_STEP_PIN P1_10
  54. #define Y_DIR_PIN P1_14
  55. #define Y_ENABLE_PIN P1_08
  56. #define Z_STEP_PIN P1_17
  57. #define Z_DIR_PIN P4_29
  58. #define Z_ENABLE_PIN P1_15
  59. #define E0_STEP_PIN P0_05
  60. #define E0_DIR_PIN P2_00
  61. #define E0_ENABLE_PIN P4_28
  62. #define E1_STEP_PIN P2_03
  63. #define E1_DIR_PIN P2_04
  64. #define E1_ENABLE_PIN P2_01
  65. #define E2_STEP_PIN P2_07
  66. #define E2_DIR_PIN P2_08
  67. #define E2_ENABLE_PIN P2_05
  68. //
  69. // TMC2208 UART pins
  70. //
  71. #if HAS_TMC_UART
  72. #define X_SERIAL_TX_PIN P1_00
  73. #define X_SERIAL_RX_PIN P1_00
  74. #define Y_SERIAL_TX_PIN P1_09
  75. #define Y_SERIAL_RX_PIN P1_09
  76. #define Z_SERIAL_TX_PIN P1_16
  77. #define Z_SERIAL_RX_PIN P1_16
  78. #define E0_SERIAL_TX_PIN P0_04
  79. #define E0_SERIAL_RX_PIN P0_04
  80. #define E1_SERIAL_TX_PIN P2_02
  81. #define E1_SERIAL_RX_PIN P2_02
  82. #define E2_SERIAL_TX_PIN P2_06
  83. #define E2_SERIAL_RX_PIN P2_06
  84. // Reduce baud rate to improve software serial reliability
  85. #define TMC_BAUD_RATE 19200
  86. #else
  87. #error "TMC2208 UART configuration is required for GMarsh X6."
  88. #endif
  89. //
  90. // Temperature Sensors
  91. // 3.3V max when defined as an analog input
  92. //
  93. #define TEMP_0_PIN P0_24_A1 // AD0[0] on P0_23
  94. #define TEMP_BED_PIN P0_23_A0 // AD0[1] on P0_24
  95. //
  96. // Heaters / Fans
  97. //
  98. #define HEATER_BED_PIN P1_19 // Not a PWM pin, software PWM required
  99. #define HEATER_0_PIN P3_26 // PWM1[3]
  100. #define FAN_PIN P3_25 // Part cooling fan - connected to PWM1[2]
  101. #define E0_AUTO_FAN_PIN P0_27 // Extruder cooling fan
  102. //
  103. // Misc. Functions
  104. //
  105. #define LED_PIN P1_31
  106. //
  107. // LCD
  108. //
  109. #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
  110. #define BEEPER_PIN P0_19
  111. #define BTN_EN1 P1_23
  112. #define BTN_EN2 P1_24
  113. #define BTN_ENC P1_25
  114. #define LCD_PINS_RS P0_20
  115. #define LCD_PINS_ENABLE P0_21
  116. #define LCD_PINS_D4 P2_11
  117. #define LCD_PINS_D5 P0_22
  118. #define LCD_PINS_D6 P1_29
  119. #define LCD_PINS_D7 P1_28
  120. #endif
  121. //
  122. // SD Support
  123. //
  124. #ifndef SDCARD_CONNECTION
  125. #define SDCARD_CONNECTION LCD
  126. #endif
  127. #define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
  128. #if SD_CONNECTION_IS(LCD)
  129. #define SCK_PIN P0_15
  130. #define MISO_PIN P0_17
  131. #define MOSI_PIN P0_18
  132. #define SS_PIN P0_16
  133. #elif SD_CONNECTION_IS(ONBOARD)
  134. #undef SD_DETECT_PIN
  135. #define SD_DETECT_PIN P0_27
  136. #define SCK_PIN P0_07
  137. #define MISO_PIN P0_08
  138. #define MOSI_PIN P0_09
  139. #define SS_PIN ONBOARD_SD_CS_PIN
  140. #endif