My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

pins_AZTEEG_X5_MINI_WIFI.h 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. * Copyright (C) 2017 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  5. *
  6. * Based on Sprinter and grbl.
  7. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation, either version 3 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. *
  22. */
  23. /**
  24. * Azteeg X5 MINI pin assignments
  25. */
  26. #ifndef TARGET_LPC1768
  27. #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
  28. #endif
  29. #define BOARD_NAME "Azteeg X5 MINI WIFI"
  30. #define DEFAULT_WEBSITE_URL "http://www.panucatt.com/azteeg_X5_mini_reprap_3d_printer_controller_p/ax5mini.htm"
  31. //
  32. // LED
  33. //
  34. #define LED_PIN P1_18
  35. //
  36. // Servo
  37. //
  38. #define SERVO0_PIN P1_29
  39. //
  40. // Limit Switches
  41. //
  42. #define X_MIN_PIN P1_24
  43. #define Y_MIN_PIN P1_26
  44. #define Z_MIN_PIN P1_28
  45. //
  46. // Steppers
  47. //
  48. #define X_STEP_PIN P2_01
  49. #define X_DIR_PIN P0_11
  50. #define X_ENABLE_PIN P0_10
  51. #define Y_STEP_PIN P2_02
  52. #define Y_DIR_PIN P0_20
  53. #define Y_ENABLE_PIN P0_19
  54. #define Z_STEP_PIN P2_03
  55. #define Z_DIR_PIN P0_22
  56. #define Z_ENABLE_PIN P0_21
  57. #define E0_STEP_PIN P2_00
  58. #define E0_DIR_PIN P0_05
  59. #define E0_ENABLE_PIN P0_04
  60. //
  61. // DIGIPOT slave addresses
  62. //
  63. #define DIGIPOT_I2C_ADDRESS_A 0x58 // shifted slave address for first DIGIPOT (0x58 <- 0x2C << 1)
  64. #define DIGIPOT_I2C_ADDRESS_B 0x5C // shifted slave address for second DIGIPOT (0x5C <- 0x2E << 1)
  65. //
  66. // Temperature Sensors
  67. // 3.3V max when defined as an analog input
  68. //
  69. #define TEMP_BED_PIN 0 // A0 (TH1)
  70. #define TEMP_0_PIN 1 // A1 (TH2)
  71. //
  72. // Heaters / Fans
  73. //
  74. #define HEATER_BED_PIN P2_07
  75. #define HEATER_0_PIN P2_05
  76. #ifndef FAN_PIN
  77. #define FAN_PIN P0_26
  78. #endif
  79. #define FAN1_PIN P1_25
  80. //
  81. // Display
  82. //
  83. #if ENABLED(ULTRA_LCD)
  84. #if ENABLED(CR10_STOCKDISPLAY)
  85. // Re-Arm can support Creality stock display without SD card reader and single cable on EXP3.
  86. // Re-Arm J3 pins 1 (p1.31) & 2 (P3.26) are not used. Stock cable will need to have one
  87. // 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
  88. // Requires REVERSE_ENCODER_DIRECTION in Configuration.h
  89. #define BEEPER_PIN P2_11 // J3-3 & AUX-4
  90. #define BTN_EN1 P0_16 // J3-7 & AUX-4
  91. #define BTN_EN2 P1_23 // J3-5 & AUX-4
  92. #define BTN_ENC P3_25 // J3-4 & AUX-4
  93. #define LCD_PINS_RS P0_15 // J3-9 & AUX-4 (CS)
  94. #define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
  95. #define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
  96. #else
  97. #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
  98. #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
  99. #define BTN_ENC P2_11 // (35) J3-3 & AUX-4
  100. #define SD_DETECT_PIN P1_31 // (49) not 5V tolerant J3-1 & AUX-3
  101. #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
  102. #define LCD_PINS_RS P0_16 // (16) J3-7 & AUX-4
  103. #define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
  104. #define LCD_BACKLIGHT_PIN P0_16 // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
  105. #define LCD_PINS_ENABLE P0_18 // (51) (MOSI) J3-10 & AUX-3
  106. #define LCD_PINS_D4 P0_15 // (52) (SCK) J3-9 & AUX-3
  107. #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
  108. #if ENABLED(REPRAPWORLD_KEYPAD)
  109. #define SHIFT_OUT P0_18 // (51) (MOSI) J3-10 & AUX-3
  110. #define SHIFT_CLK P0_15 // (52) (SCK) J3-9 & AUX-3
  111. #define SHIFT_LD P1_31 // (49) not 5V tolerant J3-1 & AUX-3
  112. #elif DISABLED(NEWPANEL)
  113. //#define SHIFT_OUT P2_11 // (35) J3-3 & AUX-4
  114. //#define SHIFT_CLK P3_26 // (31) J3-2 & AUX-4
  115. //#define SHIFT_LD P3_25 // (33) J3-4 & AUX-4
  116. //#define SHIFT_EN P1_22 // (41) J5-4 & AUX-4
  117. #endif
  118. #if ENABLED(VIKI2) || ENABLED(miniVIKI)
  119. //#define LCD_SCREEN_ROT_180
  120. #define BEEPER_PIN P1_30 // (37) may change if cable changes
  121. #define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
  122. #define DOGLCD_SCK SCK_PIN
  123. #define DOGLCD_MOSI MOSI_PIN
  124. #define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
  125. #define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
  126. #else
  127. #if ENABLED(ULTIPANEL)
  128. #define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
  129. #define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER
  130. #define LCD_PINS_D7 P1_10 // (75) ENET_RXD1
  131. #endif
  132. #define BEEPER_PIN P1_30 // (37) not 5V tolerant
  133. #define DOGLCD_CS P0_16 // (16)
  134. #endif
  135. #if ENABLED(MINIPANEL)
  136. // GLCD features
  137. //#define LCD_CONTRAST 190
  138. // Uncomment screen orientation
  139. //#define LCD_SCREEN_ROT_90
  140. //#define LCD_SCREEN_ROT_180
  141. //#define LCD_SCREEN_ROT_270
  142. #endif
  143. #endif
  144. #endif // ULTRA_LCD
  145. //
  146. // SD Support
  147. //
  148. //#define USB_SD_DISABLED // Disable host access to SD card as mass storage device through USB
  149. //#define USB_SD_ONBOARD // Enable host access to SD card as mass storage device through USB
  150. //#define LPC_SD_LCD // Marlin uses the SD drive attached to the LCD
  151. #define LPC_SD_ONBOARD // Marlin uses the SD drive on the control board. There is no SD detect pin
  152. // for the onboard card. Init card from LCD menu or send M21 whenever printer
  153. // is powered on to enable SD access.
  154. #if ENABLED(LPC_SD_LCD)
  155. #define SCK_PIN P0_15
  156. #define MISO_PIN P0_17
  157. #define MOSI_PIN P0_18
  158. #define SS_PIN P1_23 // Chip select for SD card used by Marlin
  159. #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
  160. #elif ENABLED(LPC_SD_ONBOARD)
  161. #if ENABLED(USB_SD_ONBOARD)
  162. // When sharing the SD card with a PC we want the menu options to
  163. // mount/unmount the card and refresh it. So we disable card detect.
  164. #define SHARED_SD_CARD
  165. #undef SD_DETECT_PIN // there is also no detect pin for the onboard card
  166. #endif
  167. #define SCK_PIN P0_07
  168. #define MISO_PIN P0_08
  169. #define MOSI_PIN P0_09
  170. #define SS_PIN P0_06 // Chip select for SD card used by Marlin
  171. #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
  172. #endif