My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

pins_AZTEEG_X5_MINI.h 7.2KB

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