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_RAMPS_RE_ARM.h 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  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. * Re-ARM with RAMPS v1.4 pin assignments
  25. *
  26. * Applies to the following boards:
  27. *
  28. * RAMPS_14_EFB (Hotend, Fan, Bed)
  29. * RAMPS_14_EEB (Hotend0, Hotend1, Bed)
  30. * RAMPS_14_EFF (Hotend, Fan0, Fan1)
  31. * RAMPS_14_EEF (Hotend0, Hotend1, Fan)
  32. * RAMPS_14_SF (Spindle, Controller Fan)
  33. */
  34. // Numbers in parentheses () are the corresponding mega2560 pin numbers
  35. #include "env_validate.h"
  36. #define BOARD_INFO_NAME "Re-ARM RAMPS 1.4"
  37. //
  38. // Servos
  39. //
  40. #define SERVO0_PIN P1_20 // (11)
  41. #define SERVO1_PIN P1_21 // ( 6) also on J5-1
  42. #define SERVO2_PIN P1_19 // ( 5)
  43. #define SERVO3_PIN P1_18 // ( 4) 5V output
  44. //
  45. // Limit Switches
  46. //
  47. #define X_MIN_PIN P1_24 // ( 3) 10k pullup to 3.3V, 1K series
  48. #define X_MAX_PIN P1_25 // ( 2) 10k pullup to 3.3V, 1K series
  49. #define Y_MIN_PIN P1_26 // (14) 10k pullup to 3.3V, 1K series
  50. #define Y_MAX_PIN P1_27 // (15) 10k pullup to 3.3V, 1K series
  51. #define Z_MIN_PIN P1_29 // (18) 10k pullup to 3.3V, 1K series
  52. #define Z_MAX_PIN P1_28 // (19) 10k pullup to 3.3V, 1K series
  53. #define ONBOARD_ENDSTOPPULLUPS // Board has built-in pullups
  54. //
  55. // Steppers
  56. //
  57. #define X_STEP_PIN P2_01 // (54)
  58. #define X_DIR_PIN P0_11 // (55)
  59. #define X_ENABLE_PIN P0_10 // (38)
  60. #ifndef X_CS_PIN
  61. #define X_CS_PIN P1_01 // ETH
  62. #endif
  63. #define Y_STEP_PIN P2_02 // (60)
  64. #define Y_DIR_PIN P0_20 // (61)
  65. #define Y_ENABLE_PIN P0_19 // (56)
  66. #ifndef Y_CS_PIN
  67. #define Y_CS_PIN P1_04 // ETH
  68. #endif
  69. #define Z_STEP_PIN P2_03 // (46)
  70. #define Z_DIR_PIN P0_22 // (48)
  71. #define Z_ENABLE_PIN P0_21 // (62)
  72. #ifndef Z_CS_PIN
  73. #define Z_CS_PIN P1_10 // ETH
  74. #endif
  75. #define E0_STEP_PIN P2_00 // (26)
  76. #define E0_DIR_PIN P0_05 // (28)
  77. #define E0_ENABLE_PIN P0_04 // (24)
  78. #ifndef E0_CS_PIN
  79. #define E0_CS_PIN P1_14 // ETH
  80. #endif
  81. #define E1_STEP_PIN P2_08 // (36)
  82. #define E1_DIR_PIN P2_13 // (34)
  83. #define E1_ENABLE_PIN P4_29 // (30)
  84. #ifndef E1_CS_PIN
  85. #define E1_CS_PIN -1
  86. #endif
  87. //
  88. // Software SPI pins for TMC2130 stepper drivers
  89. //
  90. #if ENABLED(TMC_USE_SW_SPI)
  91. #ifndef TMC_SW_MOSI
  92. #define TMC_SW_MOSI P1_00 // ETH
  93. #endif
  94. #ifndef TMC_SW_MISO
  95. #define TMC_SW_MISO P1_08 // ETH
  96. #endif
  97. #ifndef TMC_SW_SCK
  98. #define TMC_SW_SCK P1_09 // ETH
  99. #endif
  100. #endif
  101. #if HAS_TMC_UART
  102. /**
  103. * TMC2208/TMC2209 stepper drivers
  104. *
  105. * Hardware serial communication ports.
  106. * If undefined software serial is used according to the pins below
  107. */
  108. //
  109. // Software serial
  110. //
  111. // P2_08 E1-Step
  112. // P2_13 E1-Dir
  113. #ifndef X_SERIAL_TX_PIN
  114. #define X_SERIAL_TX_PIN P0_01
  115. #endif
  116. #ifndef X_SERIAL_RX_PIN
  117. #define X_SERIAL_RX_PIN P0_01
  118. #endif
  119. #ifndef Y_SERIAL_TX_PIN
  120. #define Y_SERIAL_TX_PIN P0_00
  121. #endif
  122. #ifndef Y_SERIAL_RX_PIN
  123. #define Y_SERIAL_RX_PIN P0_00
  124. #endif
  125. #ifndef Z_SERIAL_TX_PIN
  126. #define Z_SERIAL_TX_PIN P2_13
  127. #endif
  128. #ifndef Z_SERIAL_RX_PIN
  129. #define Z_SERIAL_RX_PIN P2_13
  130. #endif
  131. #ifndef E0_SERIAL_TX_PIN
  132. #define E0_SERIAL_TX_PIN P2_08
  133. #endif
  134. #ifndef E0_SERIAL_RX_PIN
  135. #define E0_SERIAL_RX_PIN P2_08
  136. #endif
  137. // Reduce baud rate to improve software serial reliability
  138. #define TMC_BAUD_RATE 19200
  139. #endif
  140. //
  141. // Temperature Sensors
  142. // 3.3V max when defined as an analog input
  143. //
  144. #define TEMP_0_PIN P0_23_A0 // A0 (T0) - (67) - TEMP_0_PIN
  145. #define TEMP_BED_PIN P0_24_A1 // A1 (T1) - (68) - TEMP_BED_PIN
  146. #define TEMP_1_PIN P0_25_A2 // A2 (T2) - (69) - TEMP_1_PIN
  147. #define TEMP_2_PIN P0_26_A3 // A3 - (63) - J5-3 & AUX-2
  148. #define TEMP_3_PIN P1_30_A4 // A4 - (37) - BUZZER_PIN
  149. //#define TEMP_4_PIN P1_31_A5 // A5 - (49) - SD_DETECT_PIN
  150. //#define ?? P0_03_A6 // A6 - ( 0) - RXD0 - J4-4 & AUX-1
  151. #define FILWIDTH_PIN P0_02_A7 // A7 - ( 1) - TXD0 - J4-5 & AUX-1
  152. //
  153. // Augmentation for auto-assigning RAMPS plugs
  154. //
  155. #if NONE(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
  156. #if HAS_MULTI_HOTEND
  157. #if TEMP_SENSOR_BED
  158. #define IS_RAMPS_EEB
  159. #else
  160. #define IS_RAMPS_EEF
  161. #endif
  162. #elif TEMP_SENSOR_BED
  163. #define IS_RAMPS_EFB
  164. #else
  165. #define IS_RAMPS_EFF
  166. #endif
  167. #endif
  168. //
  169. // Heaters / Fans
  170. //
  171. #ifndef MOSFET_D_PIN
  172. #define MOSFET_D_PIN -1
  173. #endif
  174. #ifndef RAMPS_D8_PIN
  175. #define RAMPS_D8_PIN P2_07 // (8)
  176. #endif
  177. #ifndef RAMPS_D9_PIN
  178. #define RAMPS_D9_PIN P2_04 // (9)
  179. #endif
  180. #ifndef RAMPS_D10_PIN
  181. #define RAMPS_D10_PIN P2_05 // (10)
  182. #endif
  183. #define HEATER_0_PIN RAMPS_D10_PIN
  184. #if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
  185. #define HEATER_BED_PIN RAMPS_D8_PIN
  186. #elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
  187. #define HEATER_1_PIN RAMPS_D9_PIN
  188. #elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
  189. #define HEATER_1_PIN RAMPS_D9_PIN
  190. #define HEATER_BED_PIN RAMPS_D8_PIN
  191. #elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
  192. #define FAN1_PIN RAMPS_D8_PIN
  193. #elif DISABLED(IS_RAMPS_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
  194. #define HEATER_BED_PIN RAMPS_D8_PIN
  195. #if HOTENDS == 1
  196. #define FAN1_PIN MOSFET_D_PIN
  197. #else
  198. #define HEATER_1_PIN MOSFET_D_PIN
  199. #endif
  200. #endif
  201. #ifndef FAN_PIN
  202. #if EITHER(IS_RAMPS_EFB, IS_RAMPS_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
  203. #define FAN_PIN RAMPS_D9_PIN
  204. #elif EITHER(IS_RAMPS_EEF, IS_RAMPS_SF) // Hotend, Hotend, Fan or Spindle, Fan
  205. #define FAN_PIN RAMPS_D8_PIN
  206. #elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
  207. #define FAN_PIN P1_18 // (4) IO pin. Buffer needed
  208. #else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
  209. #define FAN_PIN RAMPS_D9_PIN
  210. #endif
  211. #endif
  212. //
  213. // Misc. Functions
  214. //
  215. #define LED_PIN P4_28 // (13)
  216. // define digital pin 5 for the filament runout sensor. Use the RAMPS 1.4 digital input 5 on the servos connector
  217. #ifndef FIL_RUNOUT_PIN
  218. #define FIL_RUNOUT_PIN P1_19 // (5)
  219. #endif
  220. #define PS_ON_PIN P2_12 // (12)
  221. #if !defined(MAX6675_SS_PIN) && DISABLED(USE_ZMAX_PLUG)
  222. #define MAX6675_SS_PIN P1_28
  223. #endif
  224. #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) && !defined(SPINDLE_LASER_ENA_PIN)
  225. #if !defined(NUM_SERVOS) || NUM_SERVOS < 4 // Try to use servo connector
  226. #define CASE_LIGHT_PIN P1_18 // (4) MUST BE HARDWARE PWM
  227. #endif
  228. #endif
  229. //
  230. // M3/M4/M5 - Spindle/Laser Control
  231. // Use servo pins, if available
  232. //
  233. #if HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA)
  234. #if NUM_SERVOS > 1
  235. #if ENABLED(SPINDLE_FEATURE)
  236. #error "SPINDLE_FEATURE requires 3 free servo pins."
  237. #else
  238. #error "LASER_FEATURE requires 3 free servo pins."
  239. #endif
  240. #endif
  241. #define SPINDLE_LASER_ENA_PIN SERVO1_PIN // (6) Pin should have a pullup/pulldown!
  242. #define SPINDLE_LASER_PWM_PIN SERVO3_PIN // (4) MUST BE HARDWARE PWM
  243. #define SPINDLE_DIR_PIN SERVO2_PIN // (5)
  244. #endif
  245. //
  246. // Průša i3 MK2 Multiplexer Support
  247. //
  248. #if SERIAL_PORT != 0 && SERIAL_PORT_2 != 0
  249. #define E_MUX0_PIN P0_03 // ( 0) Z_CS_PIN
  250. #define E_MUX1_PIN P0_02 // ( 1) E0_CS_PIN
  251. #endif
  252. #define E_MUX2_PIN P0_26 // (63) E1_CS_PIN
  253. /**
  254. * LCD / Controller
  255. *
  256. * All controllers can use J3 and J5 on the Re-ARM board. Custom cabling will be required.
  257. *
  258. * - https://github.com/wolfmanjm/universal-panel-adapter
  259. * - https://panucattdevices.freshdesk.com/support/solutions/articles/1000243195-lcd-display-installation
  260. */
  261. /**
  262. * Smart LCD adapter
  263. *
  264. * The Smart LCD adapter can be used for the two 10 pin LCD controllers such as
  265. * REPRAP_DISCOUNT_SMART_CONTROLLER. It can't be used for controllers that use
  266. * DOGLCD_A0, DOGLCD_CS, LCD_PINS_D5, LCD_PINS_D6 or LCD_PINS_D7. A custom cable
  267. * is needed to pick up 5V for the EXP1 connection.
  268. *
  269. * SD card on the LCD uses the same SPI signals as the LCD. This results in garbage/lines
  270. * on the LCD display during accesses of the SD card. The menus/code has been arranged so
  271. * that the garbage/lines are erased immediately after the SD card accesses are completed.
  272. */
  273. #if ENABLED(CR10_STOCKDISPLAY)
  274. // Re-Arm can support Creality stock display without SD card reader and single cable on EXP3.
  275. // Re-Arm J3 pins 1 (p1.31) & 2 (P3.26) are not used. Stock cable will need to have one
  276. // 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
  277. // Requires REVERSE_ENCODER_DIRECTION in Configuration.h
  278. #define BEEPER_PIN P2_11 // J3-3 & AUX-4
  279. #define BTN_EN1 P0_16 // J3-7 & AUX-4
  280. #define BTN_EN2 P1_23 // J3-5 & AUX-4
  281. #define BTN_ENC P3_25 // J3-4 & AUX-4
  282. #define LCD_PINS_RS P0_15 // J3-9 & AUX-4 (CS)
  283. #define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
  284. #define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
  285. #elif ENABLED(ZONESTAR_LCD)
  286. #error "CAUTION! ZONESTAR_LCD on REARM requires wiring modifications. NB. ADCs are not 5V tolerant. Comment out this line to continue."
  287. #elif IS_TFTGLCD_PANEL
  288. #if ENABLED(TFTGLCD_PANEL_SPI)
  289. #define TFTGLCD_CS P3_26 // (31) J3-2 & AUX-4
  290. #endif
  291. #define SD_DETECT_PIN P1_31 // (49) J3-1 & AUX-3 (NOT 5V tolerant)
  292. #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
  293. #elif HAS_WIRED_LCD
  294. #if ENABLED(FYSETC_MINI_12864)
  295. #define BEEPER_PIN P1_01
  296. #define BTN_ENC P1_04
  297. #else
  298. #define BEEPER_PIN P1_30 // (37) not 5V tolerant
  299. #define BTN_ENC P2_11 // (35) J3-3 & AUX-4
  300. #endif
  301. #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
  302. #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
  303. #define SD_DETECT_PIN P1_31 // (49) J3-1 & AUX-3 (NOT 5V tolerant)
  304. #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
  305. #define LCD_PINS_RS P0_16 // (16) J3-7 & AUX-4
  306. #define LCD_SDSS P1_23 // (53) J3-5 & AUX-3
  307. #if IS_NEWPANEL
  308. #if IS_RRW_KEYPAD
  309. #define SHIFT_OUT_PIN P0_18 // (51) (MOSI) J3-10 & AUX-3
  310. #define SHIFT_CLK_PIN P0_15 // (52) (SCK) J3-9 & AUX-3
  311. #define SHIFT_LD_PIN P1_31 // (49) J3-1 & AUX-3 (NOT 5V tolerant)
  312. #endif
  313. #else
  314. //#define SHIFT_CLK_PIN P3_26 // (31) J3-2 & AUX-4
  315. //#define SHIFT_LD_PIN P3_25 // (33) J3-4 & AUX-4
  316. //#define SHIFT_OUT_PIN P2_11 // (35) J3-3 & AUX-4
  317. //#define SHIFT_EN_PIN P1_22 // (41) J5-4 & AUX-4
  318. #endif
  319. #if ANY(VIKI2, miniVIKI)
  320. //#define LCD_SCREEN_ROT_180
  321. #define DOGLCD_CS P0_16 // (16)
  322. #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
  323. #define DOGLCD_SCK SD_SCK_PIN
  324. #define DOGLCD_MOSI SD_MOSI_PIN
  325. #define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
  326. #define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
  327. #else
  328. #if ENABLED(FYSETC_MINI_12864)
  329. #define DOGLCD_SCK P0_15
  330. #define DOGLCD_MOSI P0_18
  331. // EXP1 on LCD adapter is not usable - using Ethernet connector instead
  332. #define DOGLCD_CS P1_09
  333. #define DOGLCD_A0 P1_14
  334. //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
  335. // results in LCD soft SPI mode 3, SD soft SPI mode 0
  336. #define LCD_RESET_PIN P0_16 // Must be high or open for LCD to operate normally.
  337. #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
  338. #ifndef RGB_LED_R_PIN
  339. #define RGB_LED_R_PIN P1_00
  340. #endif
  341. #ifndef RGB_LED_G_PIN
  342. #define RGB_LED_G_PIN P1_01
  343. #endif
  344. #ifndef RGB_LED_B_PIN
  345. #define RGB_LED_B_PIN P1_08
  346. #endif
  347. #elif ENABLED(FYSETC_MINI_12864_2_1)
  348. #define NEOPIXEL_PIN P1_00
  349. #endif
  350. #else
  351. #define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
  352. #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
  353. #endif
  354. #define LCD_BACKLIGHT_PIN P0_16 //(16) J3-7 & AUX-4 - only used on DOGLCD controllers
  355. #define LCD_PINS_ENABLE P0_18 // (51) (MOSI) J3-10 & AUX-3
  356. #define LCD_PINS_D4 P0_15 // (52) (SCK) J3-9 & AUX-3
  357. #if IS_ULTIPANEL
  358. #define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
  359. #define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER
  360. #define LCD_PINS_D7 P1_10 // (75) ENET_RXD1
  361. #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  362. #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
  363. #endif
  364. #endif
  365. #endif
  366. #if ENABLED(MINIPANEL)
  367. // GLCD features
  368. // Uncomment screen orientation
  369. //#define LCD_SCREEN_ROT_90
  370. //#define LCD_SCREEN_ROT_180
  371. //#define LCD_SCREEN_ROT_270
  372. #endif
  373. #endif // HAS_WIRED_LCD
  374. //
  375. // Ethernet pins
  376. //
  377. #if !IS_ULTIPANEL
  378. #define ENET_MDIO P1_17 // (71) J12-4
  379. #define ENET_RX_ER P1_14 // (73) J12-6
  380. #define ENET_RXD1 P1_10 // (75) J12-8
  381. #endif
  382. #define ENET_MOC P1_16 // (70) J12-3
  383. #define REF_CLK P1_15 // (72) J12-5
  384. #define ENET_RXD0 P1_09 // (74) J12-7
  385. #define ENET_CRS P1_08 // (76) J12-9
  386. #define ENET_TX_EN P1_04 // (77) J12-10
  387. #define ENET_TXD0 P1_00 // (78) J12-11
  388. #define ENET_TXD1 P1_01 // (79) J12-12
  389. //
  390. // SD Support
  391. //
  392. #ifndef SDCARD_CONNECTION
  393. #define SDCARD_CONNECTION ONBOARD
  394. #endif
  395. #define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
  396. #if SD_CONNECTION_IS(LCD)
  397. #define SD_SCK_PIN P0_15 // (52) system defined J3-9 & AUX-3
  398. #define SD_MISO_PIN P0_17 // (50) system defined J3-10 & AUX-3
  399. #define SD_MOSI_PIN P0_18 // (51) system defined J3-10 & AUX-3
  400. #define SD_SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
  401. #elif SD_CONNECTION_IS(ONBOARD)
  402. #undef SD_DETECT_PIN
  403. #define SD_SCK_PIN P0_07
  404. #define SD_MISO_PIN P0_08
  405. #define SD_MOSI_PIN P0_09
  406. #define SD_SS_PIN ONBOARD_SD_CS_PIN
  407. #elif SD_CONNECTION_IS(CUSTOM_CABLE)
  408. #error "No custom SD drive cable defined for this board."
  409. #endif
  410. /**
  411. * Fast PWMs
  412. *
  413. * The LPC1768's hardware PWM controller has 6 channels. Each channel
  414. * can be setup to either control a dedicated pin directly or to generate
  415. * an interrupt. The direct method's duty cycle is accurate to within a
  416. * a microsecond. The interrupt method's average duty cycle has the
  417. * the same accuracy but the individual cycles can vary because of higher
  418. * priority interrupts.
  419. *
  420. * All Fast PWMs have a 50Hz rate.
  421. *
  422. * The following pins/signals use the direct method. All other pins use the
  423. * the interrupt method. Note that SERVO2_PIN and RAMPS_D8_PIN use the
  424. * interrupt method.
  425. *
  426. * P1_20 (11) SERVO0_PIN
  427. * P1_21 ( 6) SERVO1_PIN J5-1
  428. * P0_18 ( 4) SERVO3_PIN 5V output
  429. * *P2_04 ( 9) RAMPS_D9_PIN
  430. * *P2_05 (10) RAMPS_D10_PIN
  431. *
  432. * * - If used as a heater driver then a Fast PWM is NOT assigned. If used as
  433. * a fan driver then enabling FAST_PWM_FAN assigns a Fast PWM to it.
  434. */
  435. /**
  436. * Special pins
  437. * P1_30 (37) (NOT 5V tolerant)
  438. * P1_31 (49) (NOT 5V tolerant)
  439. * P0_27 (57) (Open collector)
  440. * P0_28 (58) (Open collector)
  441. */
  442. /**
  443. * The following mega2560 pins are NOT available in a Re-ARM system:
  444. *
  445. * 7, 17, 22, 23, 25, 27, 29, 32, 39, 40, 42, 43, 44, 45, 47, 64, 65, 66
  446. */