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_AZTEEG_X5_MINI.h 7.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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 <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * Azteeg X5 MINI pin assignments
  25. */
  26. #if NOT_TARGET(MCU_LPC1769)
  27. #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
  28. #endif
  29. #ifndef BOARD_INFO_NAME
  30. #define BOARD_INFO_NAME "Azteeg X5 MINI"
  31. #endif
  32. #define BOARD_WEBSITE_URL "tiny.cc/x5_mini"
  33. //
  34. // LED
  35. //
  36. #define LED_PIN P1_18
  37. #define LED2_PIN P1_20
  38. #define LED3_PIN P1_19
  39. #define LED4_PIN P1_21
  40. //
  41. // Servos
  42. //
  43. #define SERVO0_PIN P1_29
  44. //
  45. // Limit Switches
  46. //
  47. #define X_STOP_PIN P1_24
  48. #define Y_STOP_PIN P1_26
  49. #define Z_STOP_PIN P1_28
  50. #ifndef FIL_RUNOUT_PIN
  51. #define FIL_RUNOUT_PIN P2_04
  52. #endif
  53. #ifndef FILWIDTH_PIN
  54. #define FILWIDTH_PIN P0_25_A2 // Analog Input (P0_25)
  55. #endif
  56. //
  57. // Steppers
  58. //
  59. #define X_STEP_PIN P2_01
  60. #define X_DIR_PIN P0_11
  61. #define X_ENABLE_PIN P0_10
  62. #define Y_STEP_PIN P2_02
  63. #define Y_DIR_PIN P0_20
  64. #define Y_ENABLE_PIN P0_19
  65. #define Z_STEP_PIN P2_03
  66. #define Z_DIR_PIN P0_22
  67. #define Z_ENABLE_PIN P0_21
  68. #define E0_STEP_PIN P2_00
  69. #define E0_DIR_PIN P0_05
  70. #define E0_ENABLE_PIN P0_04
  71. //
  72. // DIGIPOT slave addresses (7-bit unshifted)
  73. //
  74. #ifndef DIGIPOT_I2C_ADDRESS_A
  75. #define DIGIPOT_I2C_ADDRESS_A 0x2C
  76. #endif
  77. #ifndef DIGIPOT_I2C_ADDRESS_B
  78. #define DIGIPOT_I2C_ADDRESS_B 0x2E
  79. #endif
  80. //
  81. // Temperature Sensors
  82. // 3.3V max when defined as an analog input
  83. //
  84. #define TEMP_BED_PIN P0_23_A0 // A0 (TH1)
  85. #define TEMP_0_PIN P0_24_A1 // A1 (TH2)
  86. //
  87. // Heaters / Fans
  88. //
  89. #define HEATER_BED_PIN P2_07
  90. #define HEATER_0_PIN P2_05
  91. #ifndef FAN_PIN
  92. #define FAN_PIN P0_26
  93. #endif
  94. #define FAN1_PIN P1_25
  95. //
  96. // Display
  97. //
  98. #if HAS_WIRED_LCD
  99. #if ENABLED(CR10_STOCKDISPLAY)
  100. // Re-Arm can support Creality stock display without SD card reader and single cable on EXP3.
  101. // Re-Arm J3 pins 1 (p1.31) & 2 (P3.26) are not used. Stock cable will need to have one
  102. // 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
  103. // Requires REVERSE_ENCODER_DIRECTION in Configuration.h
  104. #define BEEPER_PIN P2_11 // J3-3 & AUX-4
  105. #define BTN_EN1 P0_16 // J3-7 & AUX-4
  106. #define BTN_EN2 P1_23 // J3-5 & AUX-4
  107. #define BTN_ENC P3_25 // J3-4 & AUX-4
  108. #define LCD_PINS_RS P0_15 // J3-9 & AUX-4 (CS)
  109. #define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
  110. #define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
  111. #else
  112. #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
  113. #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
  114. #define BTN_ENC P2_11 // (35) J3-3 & AUX-4
  115. #define SD_DETECT_PIN P1_31 // (49) not 5V tolerant J3-1 & AUX-3
  116. #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
  117. #define LCD_PINS_RS P0_16 // (16) J3-7 & AUX-4
  118. #define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
  119. #define LCD_BACKLIGHT_PIN P0_16 // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
  120. #define LCD_PINS_ENABLE P0_18 // (51) (MOSI) J3-10 & AUX-3
  121. #define LCD_PINS_D4 P0_15 // (52) (SCK) J3-9 & AUX-3
  122. #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
  123. #if IS_RRW_KEYPAD
  124. #define SHIFT_OUT_PIN P0_18 // (51) (MOSI) J3-10 & AUX-3
  125. #define SHIFT_CLK_PIN P0_15 // (52) (SCK) J3-9 & AUX-3
  126. #define SHIFT_LD_PIN P1_31 // (49) not 5V tolerant J3-1 & AUX-3
  127. #elif !IS_NEWPANEL
  128. //#define SHIFT_OUT_PIN P2_11 // (35) J3-3 & AUX-4
  129. //#define SHIFT_CLK_PIN P3_26 // (31) J3-2 & AUX-4
  130. //#define SHIFT_LD_PIN P3_25 // (33) J3-4 & AUX-4
  131. //#define SHIFT_EN_PIN P1_22 // (41) J5-4 & AUX-4
  132. #endif
  133. #if ANY(VIKI2, miniVIKI)
  134. //#define LCD_SCREEN_ROT_180
  135. #define BEEPER_PIN P1_30 // (37) may change if cable changes
  136. #define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
  137. #define DOGLCD_SCK SD_SCK_PIN
  138. #define DOGLCD_MOSI SD_MOSI_PIN
  139. #define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
  140. #define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
  141. #else
  142. #if IS_ULTIPANEL
  143. #define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
  144. #define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER
  145. #define LCD_PINS_D7 P1_10 // (75) ENET_RXD1
  146. #endif
  147. #define BEEPER_PIN P1_30 // (37) not 5V tolerant
  148. #define DOGLCD_CS P0_16 // (16)
  149. #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  150. #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
  151. #endif
  152. #endif
  153. #if ENABLED(MINIPANEL)
  154. // GLCD features
  155. // Uncomment screen orientation
  156. //#define LCD_SCREEN_ROT_90
  157. //#define LCD_SCREEN_ROT_180
  158. //#define LCD_SCREEN_ROT_270
  159. #endif
  160. #endif
  161. #endif // HAS_WIRED_LCD
  162. //
  163. // SD Support
  164. //
  165. #ifndef SDCARD_CONNECTION
  166. #define SDCARD_CONNECTION ONBOARD
  167. #endif
  168. #define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
  169. #if SD_CONNECTION_IS(LCD)
  170. #define SD_SCK_PIN P0_15
  171. #define SD_MISO_PIN P0_17
  172. #define SD_MOSI_PIN P0_18
  173. #define SD_SS_PIN P1_23
  174. #elif SD_CONNECTION_IS(ONBOARD)
  175. #undef SD_DETECT_PIN
  176. #define SD_SCK_PIN P0_07
  177. #define SD_MISO_PIN P0_08
  178. #define SD_MOSI_PIN P0_09
  179. #define SD_SS_PIN ONBOARD_SD_CS_PIN
  180. #elif SD_CONNECTION_IS(CUSTOM_CABLE)
  181. #error "No custom SD drive cable defined for this board."
  182. #endif