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 5.3KB

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