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

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