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.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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. /**
  24. * Azteeg X5 MINI pin assignments
  25. */
  26. #ifndef 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. //
  38. // Servos
  39. //
  40. #define SERVO0_PIN P1_29
  41. //
  42. // Limit Switches
  43. //
  44. #define X_STOP_PIN P1_24
  45. #define Y_STOP_PIN P1_26
  46. #define Z_STOP_PIN P1_28
  47. #ifndef FIL_RUNOUT_PIN
  48. #define FIL_RUNOUT_PIN P2_04
  49. #endif
  50. #ifndef FILWIDTH_PIN
  51. #define FILWIDTH_PIN P0_25_A2 // Analog Input (P0_25)
  52. #endif
  53. //
  54. // Steppers
  55. //
  56. #define X_STEP_PIN P2_01
  57. #define X_DIR_PIN P0_11
  58. #define X_ENABLE_PIN P0_10
  59. #define Y_STEP_PIN P2_02
  60. #define Y_DIR_PIN P0_20
  61. #define Y_ENABLE_PIN P0_19
  62. #define Z_STEP_PIN P2_03
  63. #define Z_DIR_PIN P0_22
  64. #define Z_ENABLE_PIN P0_21
  65. #define E0_STEP_PIN P2_00
  66. #define E0_DIR_PIN P0_05
  67. #define E0_ENABLE_PIN P0_04
  68. //
  69. // DIGIPOT slave addresses
  70. //
  71. #ifndef DIGIPOT_I2C_ADDRESS_A
  72. #define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT
  73. #endif
  74. #ifndef DIGIPOT_I2C_ADDRESS_B
  75. #define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT
  76. #endif
  77. //
  78. // Temperature Sensors
  79. // 3.3V max when defined as an analog input
  80. //
  81. #define TEMP_BED_PIN P0_23_A0 // A0 (TH1)
  82. #define TEMP_0_PIN P0_24_A1 // A1 (TH2)
  83. //
  84. // Heaters / Fans
  85. //
  86. #define HEATER_BED_PIN P2_07
  87. #define HEATER_0_PIN P2_05
  88. #ifndef FAN_PIN
  89. #define FAN_PIN P0_26
  90. #endif
  91. #define FAN1_PIN P1_25
  92. //
  93. // Display
  94. //
  95. #if HAS_SPI_LCD
  96. #if ENABLED(CR10_STOCKDISPLAY)
  97. // Re-Arm can support Creality stock display without SD card reader and single cable on EXP3.
  98. // Re-Arm J3 pins 1 (p1.31) & 2 (P3.26) are not used. Stock cable will need to have one
  99. // 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
  100. // Requires REVERSE_ENCODER_DIRECTION in Configuration.h
  101. #define BEEPER_PIN P2_11 // J3-3 & AUX-4
  102. #define BTN_EN1 P0_16 // J3-7 & AUX-4
  103. #define BTN_EN2 P1_23 // J3-5 & AUX-4
  104. #define BTN_ENC P3_25 // J3-4 & AUX-4
  105. #define LCD_PINS_RS P0_15 // J3-9 & AUX-4 (CS)
  106. #define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
  107. #define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
  108. #else
  109. #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
  110. #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
  111. #define BTN_ENC P2_11 // (35) J3-3 & AUX-4
  112. #define SD_DETECT_PIN P1_31 // (49) not 5V tolerant J3-1 & AUX-3
  113. #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
  114. #define LCD_PINS_RS P0_16 // (16) J3-7 & AUX-4
  115. #define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
  116. #define LCD_BACKLIGHT_PIN P0_16 // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
  117. #define LCD_PINS_ENABLE P0_18 // (51) (MOSI) J3-10 & AUX-3
  118. #define LCD_PINS_D4 P0_15 // (52) (SCK) J3-9 & AUX-3
  119. #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
  120. #if ENABLED(REPRAPWORLD_KEYPAD)
  121. #define SHIFT_OUT P0_18 // (51) (MOSI) J3-10 & AUX-3
  122. #define SHIFT_CLK P0_15 // (52) (SCK) J3-9 & AUX-3
  123. #define SHIFT_LD P1_31 // (49) not 5V tolerant J3-1 & AUX-3
  124. #elif DISABLED(NEWPANEL)
  125. //#define SHIFT_OUT P2_11 // (35) J3-3 & AUX-4
  126. //#define SHIFT_CLK P3_26 // (31) J3-2 & AUX-4
  127. //#define SHIFT_LD P3_25 // (33) J3-4 & AUX-4
  128. //#define SHIFT_EN P1_22 // (41) J5-4 & AUX-4
  129. #endif
  130. #if ANY(VIKI2, miniVIKI)
  131. //#define LCD_SCREEN_ROT_180
  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 SCK_PIN
  135. #define DOGLCD_MOSI 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. #else
  139. #if ENABLED(ULTIPANEL)
  140. #define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
  141. #define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER
  142. #define LCD_PINS_D7 P1_10 // (75) ENET_RXD1
  143. #endif
  144. #define BEEPER_PIN P1_30 // (37) not 5V tolerant
  145. #define DOGLCD_CS P0_16 // (16)
  146. #endif
  147. #if ENABLED(MINIPANEL)
  148. // GLCD features
  149. // Uncomment screen orientation
  150. //#define LCD_SCREEN_ROT_90
  151. //#define LCD_SCREEN_ROT_180
  152. //#define LCD_SCREEN_ROT_270
  153. #endif
  154. #endif
  155. #endif // HAS_SPI_LCD
  156. //
  157. // EEPROM
  158. //
  159. #if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
  160. #define FLASH_EEPROM_EMULATION
  161. //#define SDCARD_EEPROM_EMULATION
  162. #endif
  163. //
  164. // SD Support
  165. //
  166. #ifndef SDCARD_CONNECTION
  167. #define SDCARD_CONNECTION ONBOARD
  168. #endif
  169. #define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
  170. #if SD_CONNECTION_IS(LCD)
  171. #define SCK_PIN P0_15
  172. #define MISO_PIN P0_17
  173. #define MOSI_PIN P0_18
  174. #define SS_PIN P1_23
  175. #elif SD_CONNECTION_IS(ONBOARD)
  176. #undef SD_DETECT_PIN
  177. #define SCK_PIN P0_07
  178. #define MISO_PIN P0_08
  179. #define MOSI_PIN P0_09
  180. #define SS_PIN ONBOARD_SD_CS_PIN
  181. #elif SD_CONNECTION_IS(CUSTOM_CABLE)
  182. #error "No custom SD drive cable defined for this board."
  183. #endif