Advertisement
MQuinn

GT2560 pins.h with servo connected to MAX_Z pinouts

Sep 23rd, 2017
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 82.25 KB | None | 0 0
  1. #ifndef PINS_H
  2. #define PINS_H
  3.  
  4. #include "boards.h"
  5.  
  6. #if !MB(5DPRINT)
  7. #define X_MS1_PIN -1
  8. #define X_MS2_PIN -1
  9. #define Y_MS1_PIN -1
  10. #define Y_MS2_PIN -1
  11. #define Z_MS1_PIN -1
  12. #define Z_MS2_PIN -1
  13. #define E0_MS1_PIN -1
  14. #define E0_MS2_PIN -1
  15. #define E1_MS1_PIN -1
  16. #define E1_MS2_PIN -1
  17. #define DIGIPOTSS_PIN -1
  18. #endif
  19.  
  20. /****************************************************************************************
  21. * 5DPrint D8 Driver board
  22. * https://bitbucket.org/makible/5dprint-d8-controller-board
  23. ****************************************************************************************/
  24.  
  25. #if MB(5DPRINT)
  26.  
  27. #define KNOWN_BOARD 1
  28. #define AT90USB 1286 // Disable MarlinSerial etc.
  29.  
  30. #ifndef __AVR_AT90USB1286__
  31. #error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
  32. #endif
  33.  
  34. #define LARGE_FLASH true
  35.  
  36. #define X_STEP_PIN 0
  37. #define X_DIR_PIN 1
  38. #define X_ENABLE_PIN 23
  39. #define X_STOP_PIN 37
  40.  
  41. #define Y_STEP_PIN 2
  42. #define Y_DIR_PIN 3
  43. #define Y_ENABLE_PIN 19
  44. #define Y_STOP_PIN 36
  45.  
  46. #define Z_STEP_PIN 4
  47. #define Z_DIR_PIN 5
  48. #define Z_ENABLE_PIN 18
  49. #define Z_STOP_PIN 39
  50.  
  51. #define E0_STEP_PIN 6
  52. #define E0_DIR_PIN 7
  53. #define E0_ENABLE_PIN 17
  54.  
  55. #define HEATER_0_PIN 21 // Extruder
  56. #define HEATER_1_PIN -1
  57. #define HEATER_2_PIN -1
  58. #define HEATER_BED_PIN 20 // Bed
  59. // You may need to change FAN_PIN to 16 because Marlin isn't using fastio.h
  60. // for the fan and Teensyduino uses a different pin mapping.
  61. #define FAN_PIN 16 // Fan
  62.  
  63. #define TEMP_0_PIN 1 // Extruder / Analog pin numbering
  64. #define TEMP_BED_PIN 0 // Bed / Analog pin numbering
  65.  
  66. #define TEMP_1_PIN -1
  67. #define TEMP_2_PIN -1
  68.  
  69. #define SDPOWER -1
  70. #define LED_PIN -1
  71. #define PS_ON_PIN -1
  72. #define KILL_PIN -1
  73. #define ALARM_PIN -1
  74.  
  75. // The SDSS pin uses a different pin mapping from file Sd2PinMap.h
  76. #define SDSS 20
  77.  
  78. #ifndef SDSUPPORT
  79. // these pins are defined in the SD library if building with SD support
  80. #define SCK_PIN 9
  81. #define MISO_PIN 11
  82. #define MOSI_PIN 10
  83. #endif
  84.  
  85. // Microstepping pins
  86. // Note that the pin mapping is not from fastio.h
  87. // See Sd2PinMap.h for the pin configurations
  88. #define X_MS1_PIN 25
  89. #define X_MS2_PIN 26
  90. #define Y_MS1_PIN 9
  91. #define Y_MS2_PIN 8
  92. #define Z_MS1_PIN 7
  93. #define Z_MS2_PIN 6
  94. #define E0_MS1_PIN 5
  95. #define E0_MS2_PIN 4
  96.  
  97. #endif // 5DPRINT
  98.  
  99. /****************************************************************************************
  100. * Leapfrog Driver board
  101. *
  102. ****************************************************************************************/
  103. #if MB(LEAPFROG) // Leapfrog board
  104. #define KNOWN_BOARD 1
  105.  
  106. #ifndef __AVR_ATmega1280__
  107. #ifndef __AVR_ATmega2560__
  108. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  109. #endif
  110. #endif
  111.  
  112. #define X_STEP_PIN 28
  113. #define X_DIR_PIN 63
  114. #define X_ENABLE_PIN 29
  115. #define X_MIN_PIN 47
  116. #define X_MAX_PIN -1 //2 //Max endstops default to disabled "-1", set to commented value to enable.
  117.  
  118. #define Y_STEP_PIN 14 // A6
  119. #define Y_DIR_PIN 15 // A0
  120. #define Y_ENABLE_PIN 39
  121. #define Y_MIN_PIN 48
  122. #define Y_MAX_PIN -1 //15
  123.  
  124. #define Z_STEP_PIN 31 // A2
  125. #define Z_DIR_PIN 32 // A6
  126. // #define Z_ENABLE_PIN 30 // A1
  127. #define Z_ENABLE_PIN 35 // A1
  128. #define Z_MIN_PIN 49
  129. #define Z_MAX_PIN -1
  130.  
  131. #define E0_STEP_PIN 34 //34
  132. #define E0_DIR_PIN 35 //35
  133. #define E0_ENABLE_PIN 33 //33
  134.  
  135. #define E1_STEP_PIN 37 //37
  136. #define E1_DIR_PIN 40 //40
  137. #define E1_ENABLE_PIN 36 //36
  138.  
  139. #define Y2_STEP_PIN 37
  140. #define Y2_DIR_PIN 40
  141. #define Y2_ENABLE_PIN 36
  142.  
  143. #define Z2_STEP_PIN 37
  144. #define Z2_DIR_PIN 40
  145. #define Z2_ENABLE_PIN 36
  146.  
  147. #define SDPOWER -1
  148. #define SDSS 11
  149. #define SDCARDDETECT -1 // 10 optional also used as mode pin
  150. #define LED_PIN 13
  151. #define FAN_PIN 7
  152. #define PS_ON_PIN -1
  153. #define KILL_PIN -1
  154. #define SOL1_PIN 16
  155. #define SOL2_PIN 17
  156.  
  157. #define HEATER_0_PIN 9
  158. #define HEATER_1_PIN 8 // 12
  159. #define HEATER_2_PIN 11 //-1 // 13
  160. #define TEMP_0_PIN 13 //D27 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  161. #define TEMP_1_PIN 15 // 1
  162. #define TEMP_2_PIN -1 // 2
  163. #define HEATER_BED_PIN 10 // 14/15
  164. #define TEMP_BED_PIN 14 // 1,2 or I2C
  165. /* Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31) */
  166.  
  167.  
  168. #endif // LEAPFROG
  169.  
  170. /****************************************************************************************
  171. *
  172. *
  173. ****************************************************************************************/
  174.  
  175. #if MB(99)
  176. #define KNOWN_BOARD 1
  177.  
  178. #define X_STEP_PIN 2
  179. #define X_DIR_PIN 3
  180. #define X_ENABLE_PIN -1
  181. #define X_STOP_PIN 16
  182.  
  183. #define Y_STEP_PIN 5
  184. #define Y_DIR_PIN 6
  185. #define Y_ENABLE_PIN -1
  186. #define Y_STOP_PIN 67
  187.  
  188. #define Z_STEP_PIN 62
  189. #define Z_DIR_PIN 63
  190. #define Z_ENABLE_PIN -1
  191. #define Z_STOP_PIN 59
  192.  
  193. #define E0_STEP_PIN 65
  194. #define E0_DIR_PIN 66
  195. #define E0_ENABLE_PIN -1
  196.  
  197. #define SDPOWER -1
  198. #define SDSS 53
  199. #define LED_PIN -1
  200. #define FAN_PIN -1
  201. #define PS_ON_PIN 9
  202. #define KILL_PIN -1
  203.  
  204. #define HEATER_0_PIN 13
  205. #define HEATER_1_PIN -1
  206. #define HEATER_2_PIN -1
  207. #define TEMP_0_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  208. #define TEMP_1_PIN -1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  209. #define TEMP_2_PIN -1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  210. #define HEATER_BED_PIN 4
  211. #define TEMP_BED_PIN 10
  212.  
  213. #endif // 99
  214.  
  215. /****************************************************************************************
  216. * Sethi 3D_1 pin assignment - www.sethi3d.com.br
  217. *
  218. ****************************************************************************************/
  219.  
  220. #if MB(SETHI)
  221. #define KNOWN_BOARD
  222.  
  223. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
  224. #error Oops! Make sure you have 'Sethi 3D' selected from the 'Tools -> Boards' menu.
  225.  
  226. #endif
  227.  
  228. #ifndef GEN7_VERSION
  229. #define GEN7_VERSION 12 // v1.x
  230. #endif
  231.  
  232. //x axis pins
  233. #define X_STEP_PIN 19
  234. #define X_DIR_PIN 18
  235. #define X_ENABLE_PIN 24
  236. #define X_STOP_PIN 2
  237.  
  238. //y axis pins
  239. #define Y_STEP_PIN 23
  240. #define Y_DIR_PIN 22
  241. #define Y_ENABLE_PIN 24
  242. #define Y_STOP_PIN 0
  243.  
  244. //z axis pins
  245. #define Z_STEP_PIN 26
  246. #define Z_DIR_PIN 25
  247. #define Z_ENABLE_PIN 24
  248. #define Z_MIN_PIN 1
  249. #define Z_MAX_PIN 0
  250.  
  251. //extruder pins
  252. #define E0_STEP_PIN 28
  253. #define E0_DIR_PIN 27
  254. #define E0_ENABLE_PIN 24
  255.  
  256. #define TEMP_0_PIN 1
  257. #define TEMP_1_PIN -1
  258. #define TEMP_2_PIN -1
  259. #define TEMP_BED_PIN 2
  260.  
  261. #define HEATER_0_PIN 4
  262. #define HEATER_1_PIN -1
  263. #define HEATER_2_PIN -1
  264. #define HEATER_BED_PIN 3
  265.  
  266. #define KILL_PIN -1
  267.  
  268. #define SDPOWER -1
  269. #define SDSS -1 // SCL pin of I2C header
  270. #define LED_PIN -1
  271.  
  272. #if (GEN7_VERSION >= 13)
  273. // Gen7 v1.3 removed the fan pin
  274. #define FAN_PIN -1
  275. #else
  276. #define FAN_PIN 31
  277. #endif
  278. #define PS_ON_PIN 15
  279.  
  280. //All these generations of Gen7 supply thermistor power
  281. //via PS_ON, so ignore bad thermistor readings
  282. #define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
  283.  
  284. //our pin for debugging.
  285. #define DEBUG_PIN 0
  286.  
  287. //our RS485 pins
  288. #define TX_ENABLE_PIN 12
  289. #define RX_ENABLE_PIN 13
  290.  
  291. #endif // SETHI
  292.  
  293. /****************************************************************************************
  294. * Gen7 v1.1, v1.2, v1.3 pin assignment
  295. *
  296. ****************************************************************************************/
  297.  
  298.  
  299. #if MB(GEN7_13)
  300. #define MOTHERBOARD BOARD_GEN7_12
  301. #define GEN7_VERSION 13 // v1.3
  302. #endif
  303.  
  304. #if MB(GEN7_12)
  305. #define KNOWN_BOARD
  306.  
  307. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
  308. #error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
  309.  
  310. #endif
  311.  
  312. #ifndef GEN7_VERSION
  313. #define GEN7_VERSION 12 // v1.x
  314. #endif
  315.  
  316. //x axis pins
  317. #define X_STEP_PIN 19
  318. #define X_DIR_PIN 18
  319. #define X_ENABLE_PIN 24
  320. #define X_STOP_PIN 7
  321.  
  322. //y axis pins
  323. #define Y_STEP_PIN 23
  324. #define Y_DIR_PIN 22
  325. #define Y_ENABLE_PIN 24
  326. #define Y_STOP_PIN 5
  327.  
  328. //z axis pins
  329. #define Z_STEP_PIN 26
  330. #define Z_DIR_PIN 25
  331. #define Z_ENABLE_PIN 24
  332. #define Z_MIN_PIN 1
  333. #define Z_MAX_PIN 0
  334.  
  335. //extruder pins
  336. #define E0_STEP_PIN 28
  337. #define E0_DIR_PIN 27
  338. #define E0_ENABLE_PIN 24
  339.  
  340. #define TEMP_0_PIN 1
  341. #define TEMP_1_PIN -1
  342. #define TEMP_2_PIN -1
  343. #define TEMP_BED_PIN 2
  344.  
  345. #define HEATER_0_PIN 4
  346. #define HEATER_1_PIN -1
  347. #define HEATER_2_PIN -1
  348. #define HEATER_BED_PIN 3
  349.  
  350. #define KILL_PIN -1
  351.  
  352. #define SDPOWER -1
  353. #define SDSS -1 // SCL pin of I2C header
  354. #define LED_PIN -1
  355.  
  356. #if (GEN7_VERSION >= 13)
  357. // Gen7 v1.3 removed the fan pin
  358. #define FAN_PIN -1
  359. #else
  360. #define FAN_PIN 31
  361. #endif
  362. #define PS_ON_PIN 15
  363.  
  364. //All these generations of Gen7 supply thermistor power
  365. //via PS_ON, so ignore bad thermistor readings
  366. #define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
  367.  
  368. //our pin for debugging.
  369. #define DEBUG_PIN 0
  370.  
  371. //our RS485 pins
  372. #define TX_ENABLE_PIN 12
  373. #define RX_ENABLE_PIN 13
  374.  
  375. #endif
  376.  
  377. /****************************************************************************************
  378. * Gen7 v1.4 pin assignment
  379. *
  380. ****************************************************************************************/
  381.  
  382. #if MB(GEN7_14)
  383. #define GEN7_VERSION 14 // v1.4
  384. #endif
  385.  
  386. #if MB(GEN7_14)
  387. #define KNOWN_BOARD
  388.  
  389. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
  390. #error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
  391.  
  392. #endif
  393.  
  394. #ifndef GEN7_VERSION
  395. #define GEN7_VERSION 14 // v1.x
  396. #endif
  397.  
  398. //x axis pins
  399. #define X_STEP_PIN 29
  400. #define X_DIR_PIN 28
  401. #define X_ENABLE_PIN 25
  402. #define X_STOP_PIN 0
  403.  
  404. //y axis pins
  405. #define Y_STEP_PIN 27
  406. #define Y_DIR_PIN 26
  407. #define Y_ENABLE_PIN 25
  408. #define Y_STOP_PIN 1
  409.  
  410. //z axis pins
  411. #define Z_STEP_PIN 23
  412. #define Z_DIR_PIN 22
  413. #define Z_ENABLE_PIN 25
  414. #define Z_STOP_PIN 2
  415.  
  416. //extruder pins
  417. #define E0_STEP_PIN 19
  418. #define E0_DIR_PIN 18
  419. #define E0_ENABLE_PIN 25
  420.  
  421. #define TEMP_0_PIN 1
  422. #define TEMP_1_PIN -1
  423. #define TEMP_2_PIN -1
  424. #define TEMP_BED_PIN 0
  425.  
  426. #define HEATER_0_PIN 4
  427. #define HEATER_1_PIN -1
  428. #define HEATER_2_PIN -1
  429. #define HEATER_BED_PIN 3
  430.  
  431. #define KILL_PIN -1
  432.  
  433. #define SDPOWER -1
  434. #define SDSS -1 // SCL pin of I2C header
  435. #define LED_PIN -1
  436.  
  437. #define FAN_PIN -1
  438.  
  439. #define PS_ON_PIN 15
  440.  
  441. //our pin for debugging.
  442. #define DEBUG_PIN 0
  443.  
  444. //our RS485 pins
  445. #define TX_ENABLE_PIN 12
  446. #define RX_ENABLE_PIN 13
  447.  
  448. #endif // GEN7
  449.  
  450. /******************************************************************************
  451. * Gen7 Alfons3 pin assignment
  452. *
  453. ******************************************************************************/
  454. /* These Pins are assigned for the modified GEN7 Board from Alfons3 Please review the pins and adjust it for your needs*/
  455.  
  456. #if MB(GEN7_CUSTOM)
  457. #define KNOWN_BOARD
  458.  
  459. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
  460. #error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
  461. #endif
  462.  
  463. //x axis pins
  464. #define X_STEP_PIN 21 // different from standard GEN7
  465. #define X_DIR_PIN 20 // different from standard GEN7
  466. #define X_ENABLE_PIN 24
  467. #define X_STOP_PIN 0
  468.  
  469. //y axis pins
  470. #define Y_STEP_PIN 23
  471. #define Y_DIR_PIN 22
  472. #define Y_ENABLE_PIN 24
  473. #define Y_STOP_PIN 1
  474.  
  475. //z axis pins
  476. #define Z_STEP_PIN 26
  477. #define Z_DIR_PIN 25
  478. #define Z_ENABLE_PIN 24
  479. #define Z_STOP_PIN 2
  480.  
  481. //extruder pins
  482. #define E0_STEP_PIN 28
  483. #define E0_DIR_PIN 27
  484. #define E0_ENABLE_PIN 24
  485.  
  486. #define TEMP_0_PIN 2
  487. #define TEMP_1_PIN -1
  488. #define TEMP_2_PIN -1
  489. #define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
  490.  
  491. #define HEATER_0_PIN 4
  492. #define HEATER_1_PIN -1
  493. #define HEATER_2_PIN -1
  494. #define HEATER_BED_PIN 3 // (bed)
  495.  
  496. #define SDPOWER -1
  497. #define SDSS 31 // SCL pin of I2C header || CS Pin for SD Card support
  498. #define LED_PIN -1
  499.  
  500. #define FAN_PIN -1
  501. #define PS_ON_PIN 19
  502. //our pin for debugging.
  503.  
  504. #define DEBUG_PIN -1
  505.  
  506. //our RS485 pins
  507. //#define TX_ENABLE_PIN 12
  508. //#define RX_ENABLE_PIN 13
  509.  
  510. #define BEEPER -1
  511. #define SDCARDDETECT -1
  512. #define SUICIDE_PIN -1 //has to be defined; otherwise Power_off doesn't work
  513.  
  514. #define KILL_PIN -1
  515. //Pins for 4bit LCD Support
  516. #define LCD_PINS_RS 18
  517. #define LCD_PINS_ENABLE 17
  518. #define LCD_PINS_D4 16
  519. #define LCD_PINS_D5 15
  520. #define LCD_PINS_D6 13
  521. #define LCD_PINS_D7 14
  522.  
  523. //buttons are directly attached
  524. #define BTN_EN1 11
  525. #define BTN_EN2 10
  526. #define BTN_ENC 12 //the click
  527.  
  528. #endif // GEN7_CUSTOM
  529.  
  530. /****************************************************************************************
  531. * Arduino Mega pin assignment
  532. *
  533. ****************************************************************************************/
  534. #if IS_RAMPS || MB(3DRAG) || MB(AZTEEG_X3) || MB(AZTEEG_X3_PRO)
  535. #define KNOWN_BOARD 1
  536.  
  537. //////////////////FIX THIS//////////////
  538. #ifndef __AVR_ATmega1280__
  539. #ifndef __AVR_ATmega2560__
  540. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  541. #endif
  542. #endif
  543.  
  544.  
  545. // uncomment one of the following lines for RAMPS v1.3 or v1.0, comment both for v1.2 or 1.1
  546. // #define RAMPS_V_1_3
  547. // #define RAMPS_V_1_0
  548.  
  549.  
  550. #if (IS_RAMPS && !MB(RAMPS_OLD)) || MB(3DRAG) || MB(AZTEEG_X3) || MB(AZTEEG_X3_PRO)
  551.  
  552. #define LARGE_FLASH true
  553.  
  554. #if MB(3DRAG)
  555. #define X_STEP_PIN 54
  556. #define X_DIR_PIN 55
  557. #define X_ENABLE_PIN 38
  558. #define X_MIN_PIN 3
  559. #define X_MAX_PIN -1 //2 //Max endstops default to disabled "-1", set to commented value to enable.
  560.  
  561. #define Y_STEP_PIN 60
  562. #define Y_DIR_PIN 61
  563. #define Y_ENABLE_PIN 56
  564. #define Y_MIN_PIN 14
  565. #define Y_MAX_PIN -1 //15
  566.  
  567. #define Z_STEP_PIN 46
  568. #define Z_DIR_PIN 48
  569. #define Z_ENABLE_PIN 63
  570. #define Z_MIN_PIN 18
  571. #define Z_MAX_PIN -1
  572.  
  573. #define Y2_STEP_PIN 36
  574. #define Y2_DIR_PIN 34
  575. #define Y2_ENABLE_PIN 30
  576.  
  577. #define Z2_STEP_PIN 36
  578. #define Z2_DIR_PIN 34
  579. #define Z2_ENABLE_PIN 30
  580.  
  581. #define E0_STEP_PIN 26
  582. #define E0_DIR_PIN 28
  583. #define E0_ENABLE_PIN 24
  584.  
  585. #define E1_STEP_PIN 36
  586. #define E1_DIR_PIN 34
  587. #define E1_ENABLE_PIN 30
  588.  
  589. #define SDPOWER -1
  590. #define SDSS 25//53
  591. #define LED_PIN 13
  592.  
  593. #define BEEPER 33
  594.  
  595. #else
  596.  
  597. #define X_STEP_PIN 54
  598. #define X_DIR_PIN 55
  599. #define X_ENABLE_PIN 38
  600. #define X_MIN_PIN 3
  601. #define X_MAX_PIN 2
  602.  
  603. #define Y_STEP_PIN 60
  604. #define Y_DIR_PIN 61
  605. #define Y_ENABLE_PIN 56
  606. #define Y_MIN_PIN 14
  607. #define Y_MAX_PIN 15
  608.  
  609. #define Z_STEP_PIN 46
  610. #define Z_DIR_PIN 48
  611. #define Z_ENABLE_PIN 62
  612. #define Z_MIN_PIN 18
  613. #define Z_MAX_PIN 19
  614.  
  615. #define Y2_STEP_PIN 36
  616. #define Y2_DIR_PIN 34
  617. #define Y2_ENABLE_PIN 30
  618.  
  619. #define Z2_STEP_PIN 36
  620. #define Z2_DIR_PIN 34
  621. #define Z2_ENABLE_PIN 30
  622.  
  623. #define E0_STEP_PIN 26
  624. #define E0_DIR_PIN 28
  625. #define E0_ENABLE_PIN 24
  626.  
  627. #define E1_STEP_PIN 36
  628. #define E1_DIR_PIN 34
  629. #define E1_ENABLE_PIN 30
  630.  
  631. #if MB(RAMPS_13_EEB) //FMM added for Filament Extruder
  632. #ifdef FILAMENT_SENSOR
  633. //define analog pin for the filament width sensor input
  634. //Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
  635. #define FILWIDTH_PIN 5
  636. #endif
  637. #endif
  638.  
  639.  
  640. #if MB(AZTEEG_X3_PRO)
  641. #define E2_STEP_PIN 23
  642. #define E2_DIR_PIN 25
  643. #define E2_ENABLE_PIN 40
  644.  
  645. #define E3_STEP_PIN 27
  646. #define E3_DIR_PIN 29
  647. #define E3_ENABLE_PIN 41
  648.  
  649. #define E4_STEP_PIN 43
  650. #define E4_DIR_PIN 37
  651. #define E4_ENABLE_PIN 42
  652. #endif
  653.  
  654. #define SDPOWER -1
  655. #define SDSS 53
  656. #define LED_PIN 13
  657. #endif
  658.  
  659. #if MB(RAMPS_13_EFB) || MB(RAMPS_13_EFF) || MB(AZTEEG_X3)
  660. #define FAN_PIN 9 // (Sprinter config)
  661. #elif MB(AZTEEG_X3_PRO)
  662. #define FAN_PIN 11 // Last Heater Pin on board
  663. #else
  664. #define FAN_PIN 4 // IO pin. Buffer needed
  665. #endif
  666.  
  667. #if MB(3DRAG) || MB(RAMPS_13_EEF)
  668. #define FAN_PIN 8
  669. #endif
  670.  
  671. #if MB(RAMPS_13_EFF)
  672. #define CONTROLLERFAN_PIN -1 //Pin used for the fan to cool controller
  673. #endif
  674.  
  675. #define PS_ON_PIN 12
  676.  
  677. #if defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL)
  678. #define KILL_PIN 41
  679. #else
  680. #define KILL_PIN -1
  681. #endif
  682.  
  683. #if MB(RAMPS_13_EFF)
  684. #define HEATER_0_PIN 8
  685. #else
  686. #define HEATER_0_PIN 10 // EXTRUDER 1
  687. #endif
  688.  
  689. #if MB(RAMPS_13_EFB) || MB(AZTEEG_X3)
  690. #define HEATER_1_PIN -1
  691. #else
  692. #define HEATER_1_PIN 9 // EXTRUDER 2 (FAN On Sprinter)
  693. #endif
  694.  
  695.  
  696. #if MB(3DRAG)
  697. #define HEATER_0_PIN 10
  698. #define HEATER_1_PIN 12
  699. #define HEATER_2_PIN 6
  700. #elif MB(AZTEEG_X3_PRO)
  701. #define HEATER_2_PIN 16
  702. #define HEATER_3_PIN 17
  703. #define HEATER_4_PIN 4
  704. #define HEATER_5_PIN 5
  705. #define HEATER_6_PIN 6
  706. #define HEATER_7_PIN 11
  707. #else
  708. #define HEATER_2_PIN -1
  709. #endif
  710.  
  711. #define TEMP_0_PIN 13 // ANALOG NUMBERING
  712. #define TEMP_1_PIN 15 // ANALOG NUMBERING
  713. #if MB(AZTEEG_X3_PRO)
  714. #define TEMP_2_PIN 12 // ANALOG NUMBERING
  715. #define TEMP_3_PIN 11 // ANALOG NUMBERING
  716. #define TEMP_4_PIN 10 // ANALOG NUMBERING
  717. #define TC1 4 // ANALOG NUMBERING Thermo couple on Azteeg X3Pro
  718. #define TC2 5 // ANALOG NUMBERING Thermo couple on Azteeg X3Pro
  719. #else
  720. #define TEMP_2_PIN -1 // ANALOG NUMBERING
  721. #endif
  722.  
  723. #if MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF)
  724. #define HEATER_BED_PIN -1 // NO BED
  725. #else
  726. #if MB(3DRAG)
  727. #define HEATER_BED_PIN 9 // BED
  728. #else
  729. #define HEATER_BED_PIN 8 // BED
  730. #endif
  731. #endif
  732.  
  733. #define TEMP_BED_PIN 14 // ANALOG NUMBERING
  734.  
  735. #ifdef NUM_SERVOS
  736. // #define SERVO0_PIN 11
  737. #define SERVO0_PIN 32
  738.  
  739. #if NUM_SERVOS > 1
  740. #define SERVO1_PIN 6
  741. #endif
  742.  
  743. #if NUM_SERVOS > 2
  744. #define SERVO2_PIN 5
  745. #endif
  746.  
  747. #if NUM_SERVOS > 3
  748. #define SERVO3_PIN 4
  749. #endif
  750. #endif
  751.  
  752. #if MB(AZTEEG_X3_PRO)
  753. #define BEEPER 33
  754. #endif
  755.  
  756. #ifdef TEMP_STAT_LEDS
  757. #if MB(AZTEEG_X3)
  758. #define STAT_LED_RED 6
  759. #define STAT_LED_BLUE 11
  760. #endif
  761. #endif
  762.  
  763. #ifdef ULTRA_LCD
  764.  
  765. #ifdef NEWPANEL
  766. #define LCD_PINS_RS 16
  767. #define LCD_PINS_ENABLE 17
  768. #define LCD_PINS_D4 23
  769. #define LCD_PINS_D5 25
  770. #define LCD_PINS_D6 27
  771. #define LCD_PINS_D7 29
  772.  
  773. #ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
  774. #define BEEPER 37
  775.  
  776. #define BTN_EN1 31
  777. #define BTN_EN2 33
  778. #define BTN_ENC 35
  779.  
  780. #define SDCARDDETECT 49
  781. #elif defined(LCD_I2C_PANELOLU2)
  782. #define BTN_EN1 47 //reverse if the encoder turns the wrong way.
  783. #define BTN_EN2 43
  784. #define BTN_ENC 32
  785. #define LCD_SDSS 53
  786. #define SDCARDDETECT -1
  787. #define KILL_PIN 41
  788. #elif defined(LCD_I2C_VIKI)
  789. #define BTN_EN1 22 //reverse if the encoder turns the wrong way.
  790. #define BTN_EN2 7
  791. #define BTN_ENC -1
  792. #define LCD_SDSS 53
  793. #define SDCARDDETECT 49
  794. #else
  795. //arduino pin which triggers an piezzo beeper
  796. #define BEEPER 33 // Beeper on AUX-4
  797.  
  798. //buttons are directly attached using AUX-2
  799. #ifdef REPRAPWORLD_KEYPAD
  800. #define BTN_EN1 64 // encoder
  801. #define BTN_EN2 59 // encoder
  802. #define BTN_ENC 63 // enter button
  803. #define SHIFT_OUT 40 // shift register
  804. #define SHIFT_CLK 44 // shift register
  805. #define SHIFT_LD 42 // shift register
  806. #else
  807. #define BTN_EN1 37
  808. #define BTN_EN2 35
  809. #define BTN_ENC 31 //the click
  810. #endif
  811.  
  812. #ifdef G3D_PANEL
  813. #define SDCARDDETECT 49
  814. #else
  815. #define SDCARDDETECT -1 // Ramps does not use this port
  816. #endif
  817.  
  818. #endif
  819.  
  820. #if MB(3DRAG)
  821. #define BEEPER -1
  822.  
  823. #define LCD_PINS_RS 27
  824. #define LCD_PINS_ENABLE 29
  825. #define LCD_PINS_D4 37
  826. #define LCD_PINS_D5 35
  827. #define LCD_PINS_D6 33
  828. #define LCD_PINS_D7 31
  829.  
  830. //buttons
  831. #define BTN_EN1 16
  832. #define BTN_EN2 17
  833. #define BTN_ENC 23 //the click
  834.  
  835. #endif
  836. #else //old style panel with shift register
  837. //arduino pin witch triggers an piezzo beeper
  838. #define BEEPER 33 //No Beeper added
  839.  
  840. //buttons are attached to a shift register
  841. // Not wired this yet
  842. //#define SHIFT_CLK 38
  843. //#define SHIFT_LD 42
  844. //#define SHIFT_OUT 40
  845. //#define SHIFT_EN 17
  846.  
  847. #define LCD_PINS_RS 16
  848. #define LCD_PINS_ENABLE 17
  849. #define LCD_PINS_D4 23
  850. #define LCD_PINS_D5 25
  851. #define LCD_PINS_D6 27
  852. #define LCD_PINS_D7 29
  853. #endif
  854. #endif //ULTRA_LCD
  855.  
  856. #else // RAMPS_V_1_1 or RAMPS_V_1_2 as default (BOARD_RAMPS_OLD)
  857.  
  858. #define X_STEP_PIN 26
  859. #define X_DIR_PIN 28
  860. #define X_ENABLE_PIN 24
  861. #define X_MIN_PIN 3
  862. #define X_MAX_PIN -1 //2
  863.  
  864. #define Y_STEP_PIN 38
  865. #define Y_DIR_PIN 40
  866. #define Y_ENABLE_PIN 36
  867. #define Y_MIN_PIN 16
  868. #define Y_MAX_PIN -1 //17
  869.  
  870. #define Z_STEP_PIN 44
  871. #define Z_DIR_PIN 46
  872. #define Z_ENABLE_PIN 42
  873. #define Z_MIN_PIN 18
  874. #define Z_MAX_PIN -1 //19
  875.  
  876. #define E0_STEP_PIN 32
  877. #define E0_DIR_PIN 34
  878. #define E0_ENABLE_PIN 30
  879.  
  880. #define SDPOWER 48
  881. #define SDSS 53
  882. #define LED_PIN 13
  883. #define PS_ON_PIN -1
  884. #define KILL_PIN -1
  885.  
  886. #ifdef RAMPS_V_1_0 // RAMPS_V_1_0
  887. #define HEATER_0_PIN 12 // RAMPS 1.0
  888. #define HEATER_BED_PIN -1 // RAMPS 1.0
  889. #define FAN_PIN 11 // RAMPS 1.0
  890. #else // RAMPS_V_1_1 or RAMPS_V_1_2
  891. #define HEATER_0_PIN 10 // RAMPS 1.1
  892. #define HEATER_BED_PIN 8 // RAMPS 1.1
  893. #define FAN_PIN 9 // RAMPS 1.1
  894. #endif
  895. #define HEATER_1_PIN -1
  896. #define HEATER_2_PIN -1
  897. #define TEMP_0_PIN 2 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  898. #define TEMP_1_PIN -1
  899. #define TEMP_2_PIN -1
  900. #define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  901.  
  902. #endif // RAMPS_13_EFB || RAMPS_13_EEB || RAMPS_13_EFF || 3DRAG
  903.  
  904. // SPI for Max6675 Thermocouple
  905.  
  906. #ifndef SDSUPPORT
  907. // these pins are defined in the SD library if building with SD support
  908. #define SCK_PIN 52
  909. #define MISO_PIN 50
  910. #define MOSI_PIN 51
  911. #define MAX6675_SS 66// Do not use pin 53 if there is even the remote possibility of using Dsplay/SD card
  912. #else
  913. #define MAX6675_SS 66// Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
  914. #endif
  915.  
  916. #endif // RAMPS_OLD || RAMPS_13_EFB || RAMPS_13_EEB || RAMPS_13_EFF || 3DRAG
  917.  
  918. /****************************************************************************************
  919. * Duemilanove w/ ATMega328P pin assignment
  920. *
  921. ****************************************************************************************/
  922. #if MB(DUEMILANOVE_328P)
  923. #define KNOWN_BOARD 1
  924.  
  925. #ifndef __AVR_ATmega328P__
  926. #error Oops! Make sure you have 'Arduino Duemilanove w/ ATMega328' selected from the 'Tools -> Boards' menu.
  927. #endif
  928.  
  929. #define X_STEP_PIN 19
  930. #define X_DIR_PIN 18
  931. #define X_ENABLE_PIN -1
  932. #define X_STOP_PIN 17
  933.  
  934. #define Y_STEP_PIN 10
  935. #define Y_DIR_PIN 7
  936. #define Y_ENABLE_PIN -1
  937. #define Y_STOP_PIN 8
  938.  
  939. #define Z_STEP_PIN 13
  940. #define Z_DIR_PIN 3
  941. #define Z_ENABLE_PIN 2
  942. #define Z_STOP_PIN 4
  943.  
  944. #define E0_STEP_PIN 11
  945. #define E0_DIR_PIN 12
  946. #define E0_ENABLE_PIN -1
  947.  
  948. #define SDPOWER -1
  949. #define SDSS -1
  950. #define LED_PIN -1
  951. #define FAN_PIN 5
  952. #define PS_ON_PIN -1
  953. #define KILL_PIN -1
  954.  
  955. #define HEATER_0_PIN 6
  956. #define HEATER_1_PIN -1
  957. #define HEATER_2_PIN -1
  958. #define TEMP_0_PIN 0 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  959. #define TEMP_1_PIN -1
  960. #define TEMP_2_PIN -1
  961. #define HEATER_BED_PIN -1
  962. #define TEMP_BED_PIN -1
  963.  
  964. #endif // DUEMILANOVE_328P
  965.  
  966. /****************************************************************************************
  967. * Elefu RA Board Pin Assignments
  968. *
  969. ****************************************************************************************/
  970. #if MB(ELEFU_3)
  971. #define KNOWN_BOARD 1
  972.  
  973. #ifndef __AVR_ATmega2560__
  974. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  975. #endif
  976.  
  977.  
  978. #define X_STEP_PIN 49
  979. #define X_DIR_PIN 13
  980. #define X_ENABLE_PIN 48
  981. #define X_MIN_PIN 35
  982. #define X_MAX_PIN -1 //34
  983.  
  984. #define Y_STEP_PIN 11
  985. #define Y_DIR_PIN 9
  986. #define Y_ENABLE_PIN 12
  987. #define Y_MIN_PIN 33
  988. #define Y_MAX_PIN -1 //32
  989.  
  990. #define Z_STEP_PIN 7
  991. #define Z_DIR_PIN 6
  992. #define Z_ENABLE_PIN 8
  993. #define Z_MIN_PIN 31
  994. #define Z_MAX_PIN -1 //30
  995.  
  996. #define E2_STEP_PIN 43
  997. #define E2_DIR_PIN 47
  998. #define E2_ENABLE_PIN 42
  999.  
  1000. #define E1_STEP_PIN 18
  1001. #define E1_DIR_PIN 19
  1002. #define E1_ENABLE_PIN 38
  1003.  
  1004. #define E0_STEP_PIN 40
  1005. #define E0_DIR_PIN 41
  1006. #define E0_ENABLE_PIN 37
  1007.  
  1008. #define SDPOWER -1
  1009. #define LED_PIN -1 //Use +12V Aux port for LED Ring
  1010.  
  1011. #define FAN_PIN 16 //5V PWM
  1012.  
  1013. #define PS_ON_PIN 10 //Set to -1 if using a manual switch on the PWRSW Connector
  1014. #define SLEEP_WAKE_PIN 26 //This feature still needs work
  1015.  
  1016. #define HEATER_0_PIN 45 //12V PWM1
  1017. #define HEATER_1_PIN 46 //12V PWM2
  1018. #define HEATER_2_PIN 17 //12V PWM3
  1019. #define HEATER_BED_PIN 44 //DOUBLE 12V PWM
  1020. #define TEMP_0_PIN 3 //ANALOG NUMBERING
  1021. #define TEMP_1_PIN 2 //ANALOG NUMBERING
  1022. #define TEMP_2_PIN 1 //ANALOG NUMBERING
  1023. #define TEMP_BED_PIN 0 //ANALOG NUMBERING
  1024.  
  1025. #define BEEPER 36
  1026.  
  1027. #define KILL_PIN -1
  1028.  
  1029. // M240 Triggers a camera by emulating a Canon RC-1 Remote
  1030. // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
  1031. #define PHOTOGRAPH_PIN 29
  1032.  
  1033. #ifdef RA_CONTROL_PANEL
  1034.  
  1035. #define SDSS 53
  1036. #define SDCARDDETECT 28
  1037.  
  1038. #define BTN_EN1 14
  1039. #define BTN_EN2 39
  1040. #define BTN_ENC 15 //the click
  1041.  
  1042. #define BLEN_C 2
  1043. #define BLEN_B 1
  1044. #define BLEN_A 0
  1045.  
  1046. //encoder rotation values
  1047. #define encrot0 0
  1048. #define encrot1 2
  1049. #define encrot2 3
  1050. #define encrot3 1
  1051.  
  1052. #endif //RA_CONTROL_PANEL
  1053.  
  1054. #ifdef RA_DISCO
  1055. //variables for which pins the TLC5947 is using
  1056. #define TLC_CLOCK_PIN 25
  1057. #define TLC_BLANK_PIN 23
  1058. #define TLC_XLAT_PIN 22
  1059. #define TLC_DATA_PIN 24
  1060.  
  1061. //We also need to define pin to port number mapping for the 2560 to match the pins listed above. If you change the TLC pins, update this as well per the 2560 datasheet!
  1062. //This currently only works with the RA Board.
  1063. #define TLC_CLOCK_BIT 3 //bit 3 on port A
  1064. #define TLC_CLOCK_PORT &PORTA //bit 3 on port A
  1065.  
  1066. #define TLC_BLANK_BIT 1 //bit 1 on port A
  1067. #define TLC_BLANK_PORT &PORTA //bit 1 on port A
  1068.  
  1069. #define TLC_DATA_BIT 2 //bit 2 on port A
  1070. #define TLC_DATA_PORT &PORTA //bit 2 on port A
  1071.  
  1072. #define TLC_XLAT_BIT 0 //bit 0 on port A
  1073. #define TLC_XLAT_PORT &PORTA //bit 0 on port A
  1074.  
  1075. //change this to match your situation. Lots of TLCs takes up the arduino SRAM very quickly, so be careful
  1076. //Leave it at at least 1 if you have enabled RA_LIGHTING
  1077. //The number of TLC5947 boards chained together for use with the animation, additional ones will repeat the animation on them, but are not individually addressable and mimic those before them. You can leave the default at 2 even if you only have 1 TLC5947 module.
  1078. #define NUM_TLCS 2
  1079.  
  1080. //These TRANS_ARRAY values let you change the order the LEDs on the lighting modules will animate for chase functions.
  1081. //Modify them according to your specific situation.
  1082. //NOTE: the array should be 8 long for every TLC you have. These defaults assume (2) TLCs.
  1083. #define TRANS_ARRAY {0, 1, 2, 3, 4, 5, 6, 7, 15, 14, 13, 12, 11, 10, 9, 8} //forwards
  1084. //#define TRANS_ARRAY {7, 6, 5, 4, 3, 2, 1, 0, 8, 9, 10, 11, 12, 13, 14, 15} //backwards
  1085. #endif //RA_LIGHTING
  1086.  
  1087.  
  1088. #endif // ELEFU_3
  1089.  
  1090.  
  1091. /****************************************************************************************
  1092. * Gen6 pin assignment
  1093. *
  1094. ****************************************************************************************/
  1095. #if MB(GEN6) || MB(GEN6_DELUXE)
  1096. #define KNOWN_BOARD 1
  1097.  
  1098. #ifndef __AVR_ATmega644P__
  1099. #ifndef __AVR_ATmega1284P__
  1100. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
  1101. #endif
  1102. #endif
  1103.  
  1104. //x axis pins
  1105. #define X_STEP_PIN 15
  1106. #define X_DIR_PIN 18
  1107. #define X_ENABLE_PIN 19
  1108. #define X_STOP_PIN 20
  1109.  
  1110. //y axis pins
  1111. #define Y_STEP_PIN 23
  1112. #define Y_DIR_PIN 22
  1113. #define Y_ENABLE_PIN 24
  1114. #define Y_STOP_PIN 25
  1115.  
  1116. //z axis pins
  1117. #define Z_STEP_PIN 27
  1118. #define Z_DIR_PIN 28
  1119. #define Z_ENABLE_PIN 29
  1120. #define Z_STOP_PIN 30
  1121.  
  1122. //extruder pins
  1123. #define E0_STEP_PIN 4 //Edited @ EJE Electronics 20100715
  1124. #define E0_DIR_PIN 2 //Edited @ EJE Electronics 20100715
  1125. #define E0_ENABLE_PIN 3 //Added @ EJE Electronics 20100715
  1126. #define TEMP_0_PIN 5 //changed @ rkoeppl 20110410
  1127. #define TEMP_1_PIN -1 //changed @ rkoeppl 20110410
  1128.  
  1129.  
  1130. #define TEMP_2_PIN -1 //changed @ rkoeppl 20110410
  1131. #define HEATER_0_PIN 14 //changed @ rkoeppl 20110410
  1132. #define HEATER_1_PIN -1
  1133. #define HEATER_2_PIN -1
  1134. #if MB(GEN6)
  1135. #define HEATER_BED_PIN -1 //changed @ rkoeppl 20110410
  1136. #define TEMP_BED_PIN -1 //changed @ rkoeppl 20110410
  1137. #else
  1138. #define HEATER_BED_PIN 1 //changed @ rkoeppl 20110410
  1139. #define TEMP_BED_PIN 0 //changed @ rkoeppl 20110410
  1140. #endif
  1141. #define SDPOWER -1
  1142. #define SDSS 17
  1143. #define LED_PIN -1 //changed @ rkoeppl 20110410
  1144. #define FAN_PIN -1 //changed @ rkoeppl 20110410
  1145. #define PS_ON_PIN -1 //changed @ rkoeppl 20110410
  1146. #define KILL_PIN -1 //changed @ drakelive 20120830
  1147. //our pin for debugging.
  1148.  
  1149. #define DEBUG_PIN 0
  1150.  
  1151. //our RS485 pins
  1152. #define TX_ENABLE_PIN 12
  1153. #define RX_ENABLE_PIN 13
  1154.  
  1155. #endif // GEN6 || GEN6_DELUXE
  1156.  
  1157. /****************************************************************************************
  1158. * Sanguinololu pin assignment
  1159. *
  1160. ****************************************************************************************/
  1161. #if MB(STB_11)
  1162. #define STB
  1163. #endif
  1164. #if MB(MELZI) || MB(MELZI_1284)
  1165. #define MELZI
  1166. #endif
  1167. #if MB(AZTEEG_X1)
  1168. #define AZTEEG_X1
  1169. #endif
  1170. #if MB(SANGUINOLOLU_12) || MB(MELZI) || MB(STB_11) || MB(AZTEEG_X1) || MB(MELZI_1284)
  1171. #undef MOTHERBOARD
  1172. #define MOTHERBOARD BOARD_SANGUINOLOLU_11
  1173. #define SANGUINOLOLU_V_1_2
  1174.  
  1175. #if defined(__AVR_ATmega1284P__)
  1176. #define LARGE_FLASH true
  1177. #endif
  1178. #endif
  1179.  
  1180. #if MB(SANGUINOLOLU_11)
  1181. #define KNOWN_BOARD 1
  1182. #ifndef __AVR_ATmega644P__
  1183. #ifndef __AVR_ATmega1284P__
  1184. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
  1185. #endif
  1186. #endif
  1187.  
  1188. #define X_STEP_PIN 15
  1189. #define X_DIR_PIN 21
  1190. #define X_STOP_PIN 18
  1191.  
  1192. #define Y_STEP_PIN 22
  1193. #define Y_DIR_PIN 23
  1194. #define Y_STOP_PIN 19
  1195.  
  1196. #define Z_STEP_PIN 3
  1197. #define Z_DIR_PIN 2
  1198. #define Z_STOP_PIN 20
  1199.  
  1200. #define E0_STEP_PIN 1
  1201. #define E0_DIR_PIN 0
  1202.  
  1203. #define LED_PIN -1
  1204.  
  1205. #define FAN_PIN -1
  1206. #if FAN_PIN == 12 || FAN_PIN ==13
  1207. #define FAN_SOFT_PWM
  1208. #endif
  1209.  
  1210. #ifdef MELZI
  1211. #define LED_PIN 27 /* On some broken versions of the Sanguino libraries the pin definitions are wrong, which then needs LED_PIN as pin 28. But you better upgrade your Sanguino libraries! See #368. */
  1212. #define FAN_PIN 4 // Works for Panelolu2 too
  1213. #endif
  1214.  
  1215. #ifdef STB
  1216. #define FAN_PIN 4
  1217. // Uncomment this if you have the first generation (V1.10) of STBs board
  1218. #define LCD_PIN_BL 17 // LCD backlight LED
  1219. #endif
  1220.  
  1221. #ifdef AZTEEG_X1
  1222. #define FAN_PIN 4
  1223. #endif
  1224.  
  1225. #ifdef NUM_SERVOS
  1226. #define SERVO0_PIN -1
  1227.  
  1228. #if NUM_SERVOS > 1
  1229. #define SERVO1_PIN -1
  1230. #endif
  1231.  
  1232. #if NUM_SERVOS > 2
  1233. #define SERVO2_PIN -1
  1234. #endif
  1235.  
  1236. #if NUM_SERVOS > 3
  1237. #define SERVO3_PIN -1
  1238. #endif
  1239. #endif
  1240.  
  1241. #define PS_ON_PIN -1
  1242. #define KILL_PIN -1
  1243.  
  1244. #define HEATER_0_PIN 13 // (extruder)
  1245. #define HEATER_1_PIN -1
  1246. #define HEATER_2_PIN -1
  1247.  
  1248. #ifdef SANGUINOLOLU_V_1_2
  1249.  
  1250. #define HEATER_BED_PIN 12 // (bed)
  1251. #define X_ENABLE_PIN 14
  1252. #define Y_ENABLE_PIN 14
  1253. #define Z_ENABLE_PIN 26
  1254. #define E0_ENABLE_PIN 14
  1255.  
  1256. #ifdef LCD_I2C_PANELOLU2
  1257. #define FAN_PIN 4 // Uses Transistor1 (PWM) on Panelolu2's Sanguino Adapter Board to drive the fan
  1258. #endif
  1259.  
  1260. #else
  1261.  
  1262. #define HEATER_BED_PIN 14 // (bed)
  1263. #define X_ENABLE_PIN -1
  1264. #define Y_ENABLE_PIN -1
  1265. #define Z_ENABLE_PIN -1
  1266. #define E0_ENABLE_PIN -1
  1267.  
  1268. #endif
  1269.  
  1270. #define TEMP_0_PIN 7 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
  1271. #define TEMP_1_PIN -1
  1272. #define TEMP_2_PIN -1
  1273. #define TEMP_BED_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
  1274. #define SDPOWER -1
  1275. #define SDSS 31
  1276.  
  1277. /* On some broken versions of the Sanguino libraries the pin definitions are wrong, which then needs SDSS as pin 24. But you better upgrade your Sanguino libraries! See #368. */
  1278. //#define SDSS 24
  1279.  
  1280. #ifdef ULTRA_LCD
  1281. #ifdef NEWPANEL
  1282. //we have no buzzer installed
  1283. #define BEEPER -1
  1284. //LCD Pins
  1285. #ifdef DOGLCD
  1286. // Pins for DOGM SPI LCD Support
  1287. #define DOGLCD_A0 30
  1288. #define DOGLCD_CS 29
  1289. // GLCD features
  1290. #define LCD_CONTRAST 1
  1291. // Uncomment screen orientation
  1292. // #define LCD_SCREEN_ROT_0
  1293. // #define LCD_SCREEN_ROT_90
  1294. #define LCD_SCREEN_ROT_180
  1295. // #define LCD_SCREEN_ROT_270
  1296. #else // standard Hitachi LCD controller
  1297. #define LCD_PINS_RS 4
  1298. #define LCD_PINS_ENABLE 17
  1299. #define LCD_PINS_D4 30
  1300. #define LCD_PINS_D5 29
  1301. #define LCD_PINS_D6 28
  1302. #define LCD_PINS_D7 27
  1303. #endif
  1304. //The encoder and click button
  1305. #define BTN_EN1 11
  1306. #define BTN_EN2 10
  1307. #ifdef LCD_I2C_PANELOLU2
  1308. #ifdef MELZI
  1309. #define BTN_ENC 29 //the click switch
  1310. #define LCD_SDSS 30 //to use the SD card reader on the Panelolu2 rather than the melzi board
  1311. #else
  1312. #define BTN_ENC 30 //the click switch
  1313. #endif
  1314. #else
  1315. #define BTN_ENC 16 //the click switch
  1316. #endif //Panelolu2
  1317. //not connected to a pin
  1318. #define SDCARDDETECT -1
  1319.  
  1320. #endif //Newpanel
  1321. #endif //Ultipanel
  1322.  
  1323. #ifdef MAKRPANEL
  1324. #define BEEPER 29
  1325. // Pins for DOGM SPI LCD Support
  1326. #define DOGLCD_A0 30
  1327. #define DOGLCD_CS 17
  1328. #define LCD_PIN_BL 28 // backlight LED on PA3
  1329. // GLCD features
  1330. #define LCD_CONTRAST 1
  1331. // Uncomment screen orientation
  1332. #define LCD_SCREEN_ROT_0
  1333. // #define LCD_SCREEN_ROT_90
  1334. // #define LCD_SCREEN_ROT_180
  1335. // #define LCD_SCREEN_ROT_270
  1336. //The encoder and click button
  1337. #define BTN_EN1 11
  1338. #define BTN_EN2 10
  1339. #define BTN_ENC 16 //the click switch
  1340. //not connected to a pin
  1341. #define SDCARDDETECT -1
  1342. #endif //Makrpanel
  1343.  
  1344. #endif // SANGUINOLOLU_11
  1345.  
  1346.  
  1347. /*****************************************************************
  1348. * Ultimaker pin assignment
  1349. ******************************************************************/
  1350.  
  1351. #if MB(ULTIMAKER)
  1352. #define KNOWN_BOARD
  1353.  
  1354. #ifndef __AVR_ATmega1280__
  1355. #ifndef __AVR_ATmega2560__
  1356. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  1357. #endif
  1358. #endif
  1359.  
  1360. #define LARGE_FLASH true
  1361.  
  1362. #define X_STEP_PIN 25
  1363. #define X_DIR_PIN 23
  1364. #define X_MIN_PIN 22
  1365. #define X_MAX_PIN 24
  1366. #define X_ENABLE_PIN 27
  1367.  
  1368. #define Y_STEP_PIN 31
  1369. #define Y_DIR_PIN 33
  1370. #define Y_MIN_PIN 26
  1371. #define Y_MAX_PIN 28
  1372. #define Y_ENABLE_PIN 29
  1373.  
  1374. #define Z_STEP_PIN 37
  1375. #define Z_DIR_PIN 39
  1376. #define Z_MIN_PIN 30
  1377. #define Z_MAX_PIN -1 // 32
  1378. #define Z_ENABLE_PIN 35
  1379.  
  1380. #define HEATER_BED_PIN 4
  1381. #define TEMP_BED_PIN 10
  1382.  
  1383. #define HEATER_0_PIN 2
  1384. #define TEMP_0_PIN 8
  1385.  
  1386. #define HEATER_1_PIN 3
  1387. #define TEMP_1_PIN 9
  1388.  
  1389. #define HEATER_2_PIN -1
  1390. #define TEMP_2_PIN -1
  1391.  
  1392. #define E0_STEP_PIN 43
  1393. #define E0_DIR_PIN 45
  1394. #define E0_ENABLE_PIN 41
  1395.  
  1396. #define E1_STEP_PIN 49
  1397. #define E1_DIR_PIN 47
  1398. #define E1_ENABLE_PIN 48
  1399.  
  1400. #define SDPOWER -1
  1401. #define SDSS 53
  1402. #define LED_PIN 13
  1403. #define FAN_PIN 7
  1404. #define PS_ON_PIN 12
  1405. #define KILL_PIN -1
  1406. #define SUICIDE_PIN 54 //PIN that has to be turned on right after start, to keep power flowing.
  1407. #define SERVO0_PIN 32 // 13 // untested
  1408.  
  1409. #ifdef ULTRA_LCD
  1410.  
  1411. #ifdef NEWPANEL
  1412. //arduino pin witch triggers an piezzo beeper
  1413. #define BEEPER 18
  1414.  
  1415. #define LCD_PINS_RS 20
  1416. #define LCD_PINS_ENABLE 17
  1417. #define LCD_PINS_D4 16
  1418. #define LCD_PINS_D5 21
  1419. #define LCD_PINS_D6 5
  1420. #define LCD_PINS_D7 6
  1421.  
  1422. //buttons are directly attached
  1423. #define BTN_EN1 40
  1424. #define BTN_EN2 42
  1425. #define BTN_ENC 19 //the click
  1426.  
  1427. #define SDCARDDETECT 38
  1428.  
  1429. #else //old style panel with shift register
  1430. //arduino pin witch triggers an piezzo beeper
  1431. #define BEEPER 18
  1432.  
  1433. //buttons are attached to a shift register
  1434. #define SHIFT_CLK 38
  1435. #define SHIFT_LD 42
  1436. #define SHIFT_OUT 40
  1437. #define SHIFT_EN 17
  1438.  
  1439. #define LCD_PINS_RS 16
  1440. #define LCD_PINS_ENABLE 5
  1441. #define LCD_PINS_D4 6
  1442. #define LCD_PINS_D5 21
  1443. #define LCD_PINS_D6 20
  1444. #define LCD_PINS_D7 19
  1445.  
  1446. #define SDCARDDETECT -1
  1447. #endif
  1448. #endif //ULTRA_LCD
  1449.  
  1450. #endif // ULTIMAKER
  1451.  
  1452. #if MB(ULTIMAKER_OLD)
  1453. #define KNOWN_BOARD
  1454. /*****************************************************************
  1455. * Ultimaker pin assignment (Old electronics)
  1456. ******************************************************************/
  1457.  
  1458. #ifndef __AVR_ATmega1280__
  1459. #ifndef __AVR_ATmega2560__
  1460. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  1461. #endif
  1462. #endif
  1463.  
  1464. #define LARGE_FLASH true
  1465.  
  1466. #define X_STEP_PIN 25
  1467. #define X_DIR_PIN 23
  1468. #define X_MIN_PIN 15
  1469. #define X_MAX_PIN 14
  1470. #define X_ENABLE_PIN 27
  1471.  
  1472. #define Y_STEP_PIN 31
  1473. #define Y_DIR_PIN 33
  1474. #define Y_MIN_PIN 17
  1475. #define Y_MAX_PIN 16
  1476. #define Y_ENABLE_PIN 29
  1477.  
  1478. #define Z_STEP_PIN 37
  1479. #define Z_DIR_PIN 39
  1480. #define Z_MIN_PIN 19
  1481. #define Z_MAX_PIN 18
  1482. #define Z_ENABLE_PIN 35
  1483.  
  1484. #define HEATER_BED_PIN -1
  1485. #define TEMP_BED_PIN -1
  1486.  
  1487. #define HEATER_0_PIN 2
  1488. #define TEMP_0_PIN 8
  1489.  
  1490. #define HEATER_1_PIN 1
  1491. #define TEMP_1_PIN 1
  1492.  
  1493. #define HEATER_2_PIN -1
  1494. #define TEMP_2_PIN -1
  1495.  
  1496. #define E0_STEP_PIN 43
  1497. #define E0_DIR_PIN 45
  1498. #define E0_ENABLE_PIN 41
  1499.  
  1500. #define E1_STEP_PIN -1
  1501. #define E1_DIR_PIN -1
  1502. #define E1_ENABLE_PIN -1
  1503.  
  1504. #define SDPOWER -1
  1505. #define SDSS -1
  1506. #define LED_PIN -1
  1507. #define FAN_PIN -1
  1508. #define PS_ON_PIN -1
  1509. #define KILL_PIN -1
  1510. #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing.
  1511.  
  1512. #define LCD_PINS_RS 24
  1513. #define LCD_PINS_ENABLE 22
  1514. #define LCD_PINS_D4 36
  1515. #define LCD_PINS_D5 34
  1516. #define LCD_PINS_D6 32
  1517. #define LCD_PINS_D7 30
  1518.  
  1519. #endif // ULTIMAKER_OLD
  1520.  
  1521. #if MB(ULTIMAIN_2)
  1522. #define KNOWN_BOARD
  1523. /*****************************************************************
  1524. * Ultiboard v2.0 pin assignment
  1525. ******************************************************************/
  1526.  
  1527. #ifndef __AVR_ATmega2560__
  1528. #error Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu.
  1529. #endif
  1530.  
  1531. #define X_STEP_PIN 25
  1532. #define X_DIR_PIN 23
  1533. #define X_STOP_PIN 22
  1534. #define X_ENABLE_PIN 27
  1535.  
  1536. #define Y_STEP_PIN 32
  1537. #define Y_DIR_PIN 33
  1538. #define Y_STOP_PIN 26
  1539. #define Y_ENABLE_PIN 31
  1540.  
  1541. #define Z_STEP_PIN 35
  1542. #define Z_DIR_PIN 36
  1543. #define Z_STOP_PIN 29
  1544. #define Z_ENABLE_PIN 34
  1545.  
  1546. #define HEATER_BED_PIN 4
  1547. #define TEMP_BED_PIN 10
  1548.  
  1549. #define HEATER_0_PIN 2
  1550. #define TEMP_0_PIN 8
  1551.  
  1552. #define HEATER_1_PIN 3
  1553. #define TEMP_1_PIN 9
  1554.  
  1555. #define HEATER_2_PIN -1
  1556. #define TEMP_2_PIN -1
  1557.  
  1558. #define E0_STEP_PIN 42
  1559. #define E0_DIR_PIN 43
  1560. #define E0_ENABLE_PIN 37
  1561.  
  1562. #define E1_STEP_PIN 49
  1563. #define E1_DIR_PIN 47
  1564. #define E1_ENABLE_PIN 48
  1565.  
  1566. #define SDPOWER -1
  1567. #define SDSS 53
  1568. #define LED_PIN 8
  1569. #define FAN_PIN 7
  1570. #define PS_ON_PIN -1
  1571. #define KILL_PIN -1
  1572. #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing.
  1573. #define SAFETY_TRIGGERED_PIN 28 //PIN to detect the safety circuit has triggered
  1574. #define MAIN_VOLTAGE_MEASURE_PIN 14 //Analogue PIN to measure the main voltage, with a 100k - 4k7 resitor divider.
  1575.  
  1576. #define MOTOR_CURRENT_PWM_XY_PIN 44
  1577. #define MOTOR_CURRENT_PWM_Z_PIN 45
  1578. #define MOTOR_CURRENT_PWM_E_PIN 46
  1579. //Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
  1580. #define MOTOR_CURRENT_PWM_RANGE 2000
  1581. #define DEFAULT_PWM_MOTOR_CURRENT {1300, 1300, 1250}
  1582.  
  1583. //arduino pin witch triggers an piezzo beeper
  1584. #define BEEPER 18
  1585.  
  1586. #define LCD_PINS_RS 20
  1587. #define LCD_PINS_ENABLE 15
  1588. #define LCD_PINS_D4 14
  1589. #define LCD_PINS_D5 21
  1590. #define LCD_PINS_D6 5
  1591. #define LCD_PINS_D7 6
  1592.  
  1593. //buttons are directly attached
  1594. #define BTN_EN1 40
  1595. #define BTN_EN2 41
  1596. #define BTN_ENC 19 //the click
  1597.  
  1598. #define BLEN_C 2
  1599. #define BLEN_B 1
  1600. #define BLEN_A 0
  1601.  
  1602. #define SDCARDDETECT 39
  1603.  
  1604. #endif // ULTIMAIN_2
  1605.  
  1606. /****************************************************************************************
  1607. * RUMBA pin assignment
  1608. *
  1609. ****************************************************************************************/
  1610. #if MB(RUMBA)
  1611. #define KNOWN_BOARD 1
  1612.  
  1613. #ifndef __AVR_ATmega2560__
  1614. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  1615. #endif
  1616.  
  1617. #define X_STEP_PIN 17
  1618. #define X_DIR_PIN 16
  1619. #define X_ENABLE_PIN 48
  1620. #define X_MIN_PIN 37
  1621. #define X_MAX_PIN 36
  1622.  
  1623. #define Y_STEP_PIN 54
  1624. #define Y_DIR_PIN 47
  1625. #define Y_ENABLE_PIN 55
  1626. #define Y_MIN_PIN 35
  1627. #define Y_MAX_PIN 34
  1628.  
  1629. #define Z_STEP_PIN 57
  1630. #define Z_DIR_PIN 56
  1631. #define Z_ENABLE_PIN 62
  1632. #define Z_MIN_PIN 33
  1633. #define Z_MAX_PIN -1 // 32
  1634.  
  1635. #define E0_STEP_PIN 23
  1636. #define E0_DIR_PIN 22
  1637. #define E0_ENABLE_PIN 24
  1638.  
  1639. #define E1_STEP_PIN 26
  1640. #define E1_DIR_PIN 25
  1641. #define E1_ENABLE_PIN 27
  1642.  
  1643. #define E2_STEP_PIN 29
  1644. #define E2_DIR_PIN 28
  1645. #define E2_ENABLE_PIN 39
  1646.  
  1647. #define LED_PIN 13
  1648.  
  1649. #define FAN_PIN 7
  1650. //additional FAN1 PIN (e.g. useful for electronics fan or light on/off) on PIN 8
  1651.  
  1652. #define PS_ON_PIN 45
  1653. #define KILL_PIN 46
  1654.  
  1655. #if (TEMP_SENSOR_0==0)
  1656. #define TEMP_0_PIN -1
  1657. #define HEATER_0_PIN -1
  1658. #else
  1659. #define HEATER_0_PIN 2 // EXTRUDER 1
  1660. #if (TEMP_SENSOR_0==-1)
  1661. #define TEMP_0_PIN 6 // ANALOG NUMBERING - connector *K1* on RUMBA thermocouple ADD ON is used
  1662. #else
  1663. #define TEMP_0_PIN 15 // ANALOG NUMBERING - default connector for thermistor *T0* on rumba board is used
  1664. #endif
  1665. #endif
  1666.  
  1667. #if (TEMP_SENSOR_1==0)
  1668. #define TEMP_1_PIN -1
  1669. #define HEATER_1_PIN -1
  1670. #else
  1671. #define HEATER_1_PIN 3 // EXTRUDER 2
  1672. #if (TEMP_SENSOR_1==-1)
  1673. #define TEMP_1_PIN 5 // ANALOG NUMBERING - connector *K2* on RUMBA thermocouple ADD ON is used
  1674. #else
  1675. #define TEMP_1_PIN 14 // ANALOG NUMBERING - default connector for thermistor *T1* on rumba board is used
  1676. #endif
  1677. #endif
  1678.  
  1679. #if (TEMP_SENSOR_2==0)
  1680. #define TEMP_2_PIN -1
  1681. #define HEATER_2_PIN -1
  1682. #else
  1683. #define HEATER_2_PIN 6 // EXTRUDER 3
  1684. #if (TEMP_SENSOR_2==-1)
  1685. #define TEMP_2_PIN 7 // ANALOG NUMBERING - connector *K3* on RUMBA thermocouple ADD ON is used <-- this can not be used when TEMP_SENSOR_BED is defined as thermocouple
  1686. #else
  1687. #define TEMP_2_PIN 13 // ANALOG NUMBERING - default connector for thermistor *T2* on rumba board is used
  1688. #endif
  1689. #endif
  1690.  
  1691. //optional for extruder 4 or chamber: #define TEMP_X_PIN 12 // ANALOG NUMBERING - default connector for thermistor *T3* on rumba board is used
  1692. //optional FAN1 can be used as 4th heater output: #define HEATER_3_PIN 8 // EXTRUDER 4
  1693.  
  1694. #if (TEMP_SENSOR_BED==0)
  1695. #define TEMP_BED_PIN -1
  1696. #define HEATER_BED_PIN -1
  1697. #else
  1698. #define HEATER_BED_PIN 9 // BED
  1699. #if (TEMP_SENSOR_BED==-1)
  1700. #define TEMP_BED_PIN 7 // ANALOG NUMBERING - connector *K3* on RUMBA thermocouple ADD ON is used <-- this can not be used when TEMP_SENSOR_2 is defined as thermocouple
  1701. #else
  1702. #define TEMP_BED_PIN 11 // ANALOG NUMBERING - default connector for thermistor *THB* on rumba board is used
  1703. #endif
  1704. #endif
  1705.  
  1706. #define SDPOWER -1
  1707. #define SDSS 53
  1708. #define SDCARDDETECT 49
  1709. #define BEEPER 44
  1710. #define LCD_PINS_RS 19
  1711. #define LCD_PINS_ENABLE 42
  1712. #define LCD_PINS_D4 18
  1713. #define LCD_PINS_D5 38
  1714. #define LCD_PINS_D6 41
  1715. #define LCD_PINS_D7 40
  1716. #define BTN_EN1 11
  1717. #define BTN_EN2 12
  1718. #define BTN_ENC 43
  1719.  
  1720. #endif // RUMBA
  1721.  
  1722.  
  1723. /****************************************************************************************
  1724. * Teensylu 0.7 / Printrboard pin assignments (AT90USB1286)
  1725. * Requires the Teensyduino software with Teensy++ 2.0 selected in Arduino IDE!
  1726. http://www.pjrc.com/teensy/teensyduino.html
  1727. * See http://reprap.org/wiki/Printrboard for more info
  1728. ****************************************************************************************/
  1729. #if MB(TEENSYLU) || MB(PRINTRBOARD)
  1730. #define KNOWN_BOARD 1
  1731. #define AT90USB 1286 // Disable MarlinSerial etc.
  1732.  
  1733. #ifndef __AVR_AT90USB1286__
  1734. #error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
  1735. #endif
  1736.  
  1737. #ifdef AT90USBxx_TEENSYPP_ASSIGNMENTS // use Teensyduino Teensy++2.0 pin assignments instead of Marlin traditional.
  1738. #error These Teensylu/Printrboard assignments depend on traditional Marlin assignments, not AT90USBxx_TEENSYPP_ASSIGNMENTS in fastio.h
  1739. #endif
  1740.  
  1741. #define LARGE_FLASH true
  1742.  
  1743. #define X_STEP_PIN 0
  1744. #define X_DIR_PIN 1
  1745. #define X_ENABLE_PIN 39
  1746.  
  1747. #define Y_STEP_PIN 2
  1748. #define Y_DIR_PIN 3
  1749. #define Y_ENABLE_PIN 38
  1750.  
  1751. #define Z_STEP_PIN 4
  1752. #define Z_DIR_PIN 5
  1753. #define Z_ENABLE_PIN 23
  1754.  
  1755. #define E0_STEP_PIN 6
  1756. #define E0_DIR_PIN 7
  1757. #define E0_ENABLE_PIN 19
  1758.  
  1759. #define HEATER_0_PIN 21 // Extruder
  1760. #define HEATER_1_PIN -1
  1761. #define HEATER_2_PIN -1
  1762. #define HEATER_BED_PIN 20 // Bed
  1763. #define FAN_PIN 22 // Fan
  1764. // You may need to change FAN_PIN to 16 because Marlin isn't using fastio.h
  1765. // for the fan and Teensyduino uses a different pin mapping.
  1766.  
  1767. #if MB(TEENSYLU) // Teensylu
  1768. #define X_STOP_PIN 13
  1769. #define Y_STOP_PIN 14
  1770. #define Z_STOP_PIN 15
  1771. #define TEMP_0_PIN 7 // Extruder / Analog pin numbering
  1772. #define TEMP_BED_PIN 6 // Bed / Analog pin numbering
  1773. #else // Printrboard
  1774. #define X_STOP_PIN 35
  1775. #define Y_STOP_PIN 8
  1776. #define Z_STOP_PIN 36
  1777. #define TEMP_0_PIN 1 // Extruder / Analog pin numbering
  1778. #define TEMP_BED_PIN 0 // Bed / Analog pin numbering
  1779. #ifdef FILAMENT_SENSOR
  1780. #define FILWIDTH_PIN 2
  1781. #endif //FILAMENT_SENSOR
  1782. #endif
  1783.  
  1784. #define TEMP_1_PIN -1
  1785. #define TEMP_2_PIN -1
  1786.  
  1787. #define SDPOWER -1
  1788. #define SDSS 8
  1789. #define LED_PIN -1
  1790. #define PS_ON_PIN -1
  1791. #define KILL_PIN -1
  1792. #define ALARM_PIN -1
  1793.  
  1794. #ifndef SDSUPPORT
  1795. // these pins are defined in the SD library if building with SD support
  1796. #define SCK_PIN 9
  1797. #define MISO_PIN 11
  1798. #define MOSI_PIN 10
  1799. #endif
  1800.  
  1801. #endif // TEENSYLU || PRINTRBOARD
  1802.  
  1803. /****************************************************************************************
  1804. * Brainwave 1.0 pin assignments (AT90USB646)
  1805. * Requires hardware bundle for Arduino:
  1806. https://github.com/unrepentantgeek/brainwave-arduino
  1807. ****************************************************************************************/
  1808. #if MB(BRAINWAVE)
  1809. #define KNOWN_BOARD 1
  1810. #define AT90USB 646 // Disable MarlinSerial etc.
  1811.  
  1812. #ifndef __AVR_AT90USB646__
  1813. #error Oops! Make sure you have 'Brainwave' selected from the 'Tools -> Boards' menu.
  1814. #endif
  1815.  
  1816. #define X_STEP_PIN 27
  1817. #define X_DIR_PIN 29
  1818. #define X_ENABLE_PIN 28
  1819. #define X_STOP_PIN 7
  1820. #define X_ATT_PIN 26
  1821.  
  1822. #define Y_STEP_PIN 31
  1823. #define Y_DIR_PIN 33
  1824. #define Y_ENABLE_PIN 32
  1825. #define Y_STOP_PIN 6
  1826. #define Y_ATT_PIN 30
  1827.  
  1828. #define Z_STEP_PIN 17
  1829. #define Z_DIR_PIN 19
  1830. #define Z_ENABLE_PIN 18
  1831. #define Z_STOP_PIN 5
  1832. #define Z_ATT_PIN 16
  1833.  
  1834. #define E0_STEP_PIN 21
  1835. #define E0_DIR_PIN 23
  1836. #define E0_ENABLE_PIN 22
  1837. #define E0_ATT_PIN 20
  1838.  
  1839. #define HEATER_0_PIN 4 // Extruder
  1840. #define HEATER_1_PIN -1
  1841. #define HEATER_2_PIN -1
  1842. #define HEATER_BED_PIN 38 // Bed
  1843. #define FAN_PIN 3 // Fan
  1844.  
  1845. #define TEMP_0_PIN 7 // Extruder / Analog pin numbering
  1846. #define TEMP_1_PIN -1
  1847. #define TEMP_2_PIN -1
  1848. #define TEMP_BED_PIN 6 // Bed / Analog pin numbering
  1849.  
  1850. #define SDPOWER -1
  1851. #define SDSS -1
  1852. #define LED_PIN 39
  1853. #define PS_ON_PIN -1
  1854. #define KILL_PIN -1
  1855. #define ALARM_PIN -1
  1856.  
  1857. #ifndef SDSUPPORT
  1858. // these pins are defined in the SD library if building with SD support
  1859. #define SCK_PIN 9
  1860. #define MISO_PIN 11
  1861. #define MOSI_PIN 10
  1862. #endif
  1863.  
  1864. #endif // BRAINWAVE
  1865.  
  1866. //
  1867. // SAV Mk-I
  1868. // -----------------------------------------------------------------------------------
  1869. /****************************************************************************************
  1870. * SAV MkI pin assignments (AT90USB1286)
  1871. * Requires the Teensyduino software with Teensy++ 2.0 selected in Arduino IDE!
  1872. http://www.pjrc.com/teensy/teensyduino.html
  1873. RepRap Clone Wars project board.
  1874. ****************************************************************************************/
  1875. #if MB(SAV_MKI) // SAV Mk-I
  1876. #define KNOWN_BOARD 1
  1877. #define AT90USB 1286 // Disable MarlinSerial etc.
  1878.  
  1879. #ifndef __AVR_AT90USB1286__
  1880. #error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
  1881. #endif
  1882.  
  1883. #define LARGE_FLASH true
  1884.  
  1885.  
  1886. #define X_STEP_PIN 0
  1887. #define X_DIR_PIN 1
  1888. #define X_ENABLE_PIN 39
  1889.  
  1890. #define Y_STEP_PIN 2
  1891. #define Y_DIR_PIN 3
  1892. #define Y_ENABLE_PIN 38
  1893.  
  1894. #define Z_STEP_PIN 4
  1895. #define Z_DIR_PIN 5
  1896. #define Z_ENABLE_PIN 23
  1897.  
  1898. #define E0_STEP_PIN 6
  1899. #define E0_DIR_PIN 7
  1900. #define E0_ENABLE_PIN 19
  1901.  
  1902. #define HEATER_0_PIN 21 // Extruder
  1903. #define HEATER_1_PIN -1
  1904. #define HEATER_2_PIN -1
  1905. #define HEATER_BED_PIN 20 // Bed
  1906. #define FAN_PIN 16 // Fan -- from Teensyduino environment.
  1907. // For the fan and Teensyduino uses a different pin mapping.
  1908.  
  1909. #define X_STOP_PIN 13
  1910. #define Y_STOP_PIN 14
  1911. #define Z_STOP_PIN 15
  1912. // #define Z_STOP_PIN 36 // For inductive sensor.
  1913.  
  1914. #define TEMP_0_PIN 7 // Extruder / Analog pin numbering
  1915. #define TEMP_BED_PIN 6 // Bed / Analog pin numbering
  1916.  
  1917. #define TEMP_1_PIN -1
  1918. #define TEMP_2_PIN -1
  1919.  
  1920. #define SDPOWER -1
  1921. #define SDSS 20 // PB0 - 8 in marlin env.
  1922. #define LED_PIN -1
  1923. #define PS_ON_PIN -1
  1924. #define ALARM_PIN -1
  1925. #define SDCARDDETECT -1
  1926.  
  1927.  
  1928. #ifndef SDSUPPORT
  1929. // these pins are defined in the SD library if building with SD support
  1930. #define SCK_PIN 9
  1931. #define MISO_PIN 11
  1932. #define MOSI_PIN 10
  1933. #endif
  1934.  
  1935. #define BEEPER -1
  1936. #define LCD_PINS_RS -1
  1937. #define LCD_PINS_ENABLE -1
  1938. #define LCD_PINS_D4 -1
  1939. #define LCD_PINS_D5 -1
  1940. #define LCD_PINS_D6 -1
  1941. #define LCD_PINS_D7 -1
  1942.  
  1943. #ifdef SAV_3DLCD
  1944. // For LCD SHIFT register LCD
  1945. #define SR_DATA_PIN 1
  1946. #define SR_CLK_PIN 0
  1947.  
  1948. #define BTN_EN1 41
  1949. #define BTN_EN2 40
  1950. #define BTN_ENC 12
  1951.  
  1952. #define KILL_PIN 42 // A2 = 42 - teensy = 40
  1953. #define HOME_PIN -1 // A4 = marlin 44 - teensy = 42
  1954.  
  1955. #ifdef NUM_SERVOS
  1956. #define SERVO0_PIN 41 // In teensy's pin definition for pinMode (in Servo.cpp)
  1957. #endif
  1958.  
  1959. #endif
  1960.  
  1961. #endif // SAV_MKI
  1962.  
  1963. /****************************************************************************************
  1964. * Teensy++ 2.0 Breadboard pin assignments (AT90USB1286)
  1965. * Requires the Teensyduino software with Teensy++ 2.0 selected in Arduino IDE!
  1966. http://www.pjrc.com/teensy/teensyduino.html
  1967. * See http://reprap.org/wiki/Printrboard for more info
  1968. * CLI build: DEFINES=AT90USBxx_TEENSYPP_ASSIGNMENTS HARDWARE_MOTHERBOARD=84 make
  1969. *
  1970. ****************************************************************************************/
  1971. #if MB(TEENSY2)
  1972. #define KNOWN_BOARD 1
  1973. #define AT90USB 1286 // Disable MarlinSerial etc.
  1974.  
  1975. #ifndef __AVR_AT90USB1286__
  1976. #error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
  1977. #endif
  1978.  
  1979. #define LARGE_FLASH true
  1980.  
  1981. /*
  1982. DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a TeensyBreadboard:
  1983.  
  1984. USB
  1985. GND GND |-----#####-----| +5V ATX +5SB
  1986. ATX PS_ON PWM 27 |b7 ##### b6| 26 PWM* Stepper Enable
  1987. PWM 0 |d0 b5| 25 PWM*
  1988. PWM 1 |d1 b4| 24 PWM
  1989. X_MIN 2 |d2 b3| 23 MISO_PIN
  1990. Y_MIN 3 |d3 b2| 22 MOSI_PIN
  1991. Z_MIN 4 |d4 * * b1| 21 SCK_PIN
  1992. 5 |d5 e e b0| 20 SDSS
  1993. LED 6 |d6 5 4 e7| 19
  1994. 7 |d7 e6| 18
  1995. LCD RS 8 |e0 | GND
  1996. LCD EN 9 |e1 a4 a0 R| AREF
  1997. LCD D4 10 |c0 a5 a1 f0| 38 A0 ENC_1
  1998. LCD D5 11 |c1 a6 a2 f1| 39 A1 ENC_2
  1999. LCD D6 12 |c2 a7 a3 f2| 40 A2 ENC_CLK
  2000. LCD D6 13 |c3 f3| 41 A3
  2001. Bed Heat PWM 14 |c4 V G R f4| 42 A4
  2002. Extruder Heat PWM 15 |c5 c n S f5| 43 A5
  2003. Fan PWM 16 |c6 c d T f6| 44 A6 Bed TC
  2004. 17 |c7 * * * f7| 45 A7 Extruder TC * 4.7k * +5
  2005. -----------------
  2006.  
  2007. Interior E4: 36, INT4
  2008. Interior E5: 37, INT5
  2009. Interior PA0-7: 28-35 -- Printrboard and Teensylu use these pins for step & direction:
  2010. T++ PA Signal Marlin
  2011.  
  2012. Z STEP 32 a4 a0 28 X STEP
  2013. Z DIR 33 a5 a1 29 X DIR
  2014. E STEP 34 a6 a2 30 Y STEP
  2015. E DIR 35 a7 a3 31 Y DIR
  2016.  
  2017. */
  2018.  
  2019. #ifndef AT90USBxx_TEENSYPP_ASSIGNMENTS // use Teensyduino Teensy++2.0 pin assignments instead of Marlin alphabetical.
  2020. #error Uncomment #define AT90USBxx_TEENSYPP_ASSIGNMENTS in fastio.h for this config
  2021. // or build from command line with: DEFINES=AT90USBxx_TEENSYPP_ASSIGNMENTS HARDWARE_MOTHERBOARD=84 make
  2022. #endif
  2023.  
  2024. #define X_STEP_PIN 28 // 0 Marlin
  2025. #define X_DIR_PIN 29 // 1 Marlin
  2026. #define X_ENABLE_PIN 26
  2027.  
  2028. #define Y_STEP_PIN 30 // 2 Marlin
  2029. #define Y_DIR_PIN 31 // 3
  2030. #define Y_ENABLE_PIN 26 // Shared w/x
  2031.  
  2032. #define Z_STEP_PIN 32 // 4
  2033. #define Z_DIR_PIN 33 // 5
  2034. #define Z_ENABLE_PIN 26 // Shared w/x
  2035.  
  2036. #define E0_STEP_PIN 34 // 6
  2037. #define E0_DIR_PIN 35 // 7
  2038. #define E0_ENABLE_PIN 26 // Shared w/x
  2039.  
  2040. #define HEATER_0_PIN 15 // 21 // Extruder
  2041. #define HEATER_1_PIN -1
  2042. #define HEATER_2_PIN -1
  2043. #define HEATER_BED_PIN 14 // 20 // Bed
  2044. #define FAN_PIN 16 // 22 // Fan
  2045.  
  2046. #define X_STOP_PIN 2
  2047. #define Y_STOP_PIN 3
  2048. #define Z_STOP_PIN 4
  2049.  
  2050. #define TEMP_0_PIN 7 // Extruder / Analog pin numbering
  2051. #define TEMP_BED_PIN 6 // Bed / Analog pin numbering
  2052. #define TEMP_1_PIN -1
  2053. #define TEMP_2_PIN -1
  2054.  
  2055. #define SDPOWER -1
  2056. #define SDCARDDETECT -1
  2057. #define SDSS 20 // 8
  2058. #define LED_PIN 6
  2059. #define PS_ON_PIN 27
  2060. #define KILL_PIN -1
  2061. #define ALARM_PIN -1
  2062.  
  2063. #ifndef SDSUPPORT
  2064. // these pins are defined in the SD library if building with SD support
  2065. #define SCK_PIN 21 // 9
  2066. #define MISO_PIN 23 // 11
  2067. #define MOSI_PIN 22 // 10
  2068. #endif
  2069.  
  2070. #ifdef ULTIPANEL
  2071. #define LCD_PINS_RS 8
  2072. #define LCD_PINS_ENABLE 9
  2073. #define LCD_PINS_D4 10
  2074. #define LCD_PINS_D5 11
  2075. #define LCD_PINS_D6 12
  2076. #define LCD_PINS_D7 13
  2077. #define BTN_EN1 38
  2078. #define BTN_EN2 39
  2079. #define BTN_ENC 40
  2080. #endif
  2081.  
  2082. #endif // TEENSY2
  2083.  
  2084.  
  2085. /****************************************************************************************
  2086. * Gen3+ pin assignment
  2087. *
  2088. ****************************************************************************************/
  2089. #if MB(GEN3_PLUS)
  2090. #define MOTHERBOARD BOARD_SANGUINOLOLU_11 /*TODO: Figure out, Why is this done?*/
  2091. #define KNOWN_BOARD 1
  2092. #ifndef __AVR_ATmega644P__
  2093. #ifndef __AVR_ATmega1284P__
  2094. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
  2095. #endif
  2096. #endif
  2097.  
  2098. #define X_STEP_PIN 15
  2099. #define X_DIR_PIN 18
  2100. #define X_STOP_PIN 20
  2101.  
  2102. #define Y_STEP_PIN 23
  2103. #define Y_DIR_PIN 22
  2104. #define Y_STOP_PIN 25
  2105.  
  2106. #define Z_STEP_PIN 27
  2107. #define Z_DIR_PIN 28
  2108. #define Z_STOP_PIN 30
  2109.  
  2110. #define E0_STEP_PIN 17
  2111. #define E0_DIR_PIN 21
  2112.  
  2113. #define LED_PIN -1
  2114.  
  2115. #define FAN_PIN -1
  2116.  
  2117. #define PS_ON_PIN 14
  2118. #define KILL_PIN -1
  2119.  
  2120. #define HEATER_0_PIN 12 // (extruder)
  2121.  
  2122. #define HEATER_BED_PIN 16 // (bed)
  2123. #define X_ENABLE_PIN 19
  2124. #define Y_ENABLE_PIN 24
  2125. #define Z_ENABLE_PIN 29
  2126. #define E0_ENABLE_PIN 13
  2127.  
  2128. #define TEMP_0_PIN 0 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
  2129. #define TEMP_1_PIN -1
  2130. #define TEMP_2_PIN -1
  2131. #define TEMP_BED_PIN 5 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
  2132. #define SDPOWER -1
  2133. #define SDSS 4
  2134. #define HEATER_2_PIN -1
  2135.  
  2136. #endif // GEN3_PLUS
  2137.  
  2138. /****************************************************************************************
  2139. * Gen3 Monolithic Electronics
  2140. *
  2141. ****************************************************************************************/
  2142. #if MB(GEN3_MONOLITHIC)
  2143. #define KNOWN_BOARD 1
  2144.  
  2145. #ifndef __AVR_ATmega644P__
  2146. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
  2147. #endif
  2148.  
  2149. #define DEBUG_PIN 0
  2150.  
  2151. // x axis
  2152. #define X_STEP_PIN 15
  2153. #define X_DIR_PIN 18
  2154. #define X_MIN_PIN 20
  2155. //Alex Checar #define X_STOP_PIN 20
  2156. #define X_ENABLE_PIN 24 //actually uses Y_enable_pin
  2157. #define X_MAX_PIN -1
  2158.  
  2159. // y axes
  2160. #define Y_STEP_PIN 23
  2161. #define Y_DIR_PIN 22
  2162. #define Y_MIN_PIN 25
  2163. //Alex Checar #define Y_STOP_PIN 25
  2164. #define Y_ENABLE_PIN 24 //shared with X_enable_pin
  2165. #define Y_MAX_PIN -1
  2166.  
  2167. // z axes
  2168. #define Z_STEP_PIN 27
  2169. #define Z_DIR_PIN 28
  2170. #define Z_MIN_PIN 30
  2171. //Alex Checar #define Z_STOP_PIN 30
  2172. #define Z_ENABLE_PIN 29
  2173. #define Z_MAX_PIN -1
  2174.  
  2175. //extruder pins
  2176. #define E0_STEP_PIN 12
  2177. #define E0_DIR_PIN 17
  2178. #define E0_ENABLE_PIN 3
  2179.  
  2180. #define HEATER_0_PIN 16
  2181. #define TEMP_0_PIN 0
  2182.  
  2183. #define FAN_PIN -1
  2184.  
  2185. //bed pins
  2186. #define HEATER_BED_PIN -1
  2187. #define TEMP_BED_PIN -1
  2188.  
  2189.  
  2190. #define SDSS -1
  2191. #define SDPOWER -1
  2192. #define LED_PIN -1
  2193.  
  2194. //pin for controlling the PSU.
  2195. #define PS_ON_PIN 14 //Alex, Do this work on the card?
  2196.  
  2197. //Alex extras from Gen3+
  2198. #define KILL_PIN -1
  2199. #define TEMP_1_PIN -1
  2200. #define TEMP_2_PIN -1
  2201. #define HEATER_2_PIN -1
  2202.  
  2203. #endif // GEN3_MONOLITHIC
  2204.  
  2205. /****************************************************************************************
  2206. * Open Motion controller with enable based extruders
  2207. *
  2208. * ATMega644
  2209. *
  2210. * +---\/---+
  2211. * (D 0) PB0 1| |40 PA0 (AI 0 / D31)
  2212. * (D 1) PB1 2| |39 PA1 (AI 1 / D30)
  2213. * INT2 (D 2) PB2 3| |38 PA2 (AI 2 / D29)
  2214. * PWM (D 3) PB3 4| |37 PA3 (AI 3 / D28)
  2215. * PWM (D 4) PB4 5| |36 PA4 (AI 4 / D27)
  2216. * MOSI (D 5) PB5 6| |35 PA5 (AI 5 / D26)
  2217. * MISO (D 6) PB6 7| |34 PA6 (AI 6 / D25)
  2218. * SCK (D 7) PB7 8| |33 PA7 (AI 7 / D24)
  2219. * RST 9| |32 AREF
  2220. * VCC 10| |31 GND
  2221. * GND 11| |30 AVCC
  2222. * XTAL2 12| |29 PC7 (D 23)
  2223. * XTAL1 13| |28 PC6 (D 22)
  2224. * RX0 (D 8) PD0 14| |27 PC5 (D 21) TDI
  2225. * TX0 (D 9) PD1 15| |26 PC4 (D 20) TDO
  2226. * INT0 RX1 (D 10) PD2 16| |25 PC3 (D 19) TMS
  2227. * INT1 TX1 (D 11) PD3 17| |24 PC2 (D 18) TCK
  2228. * PWM (D 12) PD4 18| |23 PC1 (D 17) SDA
  2229. * PWM (D 13) PD5 19| |22 PC0 (D 16) SCL
  2230. * PWM (D 14) PD6 20| |21 PD7 (D 15) PWM
  2231. * +--------+
  2232. *
  2233. ****************************************************************************************/
  2234. #if MB(OMCA_A) //Alpha OMCA board
  2235. #define KNOWN_BOARD 1
  2236.  
  2237. #ifndef __AVR_ATmega644__
  2238. #error Oops! Make sure you have 'SanguinoA' selected from the 'Tools -> Boards' menu.
  2239. #endif
  2240.  
  2241. #define X_STEP_PIN 21
  2242. #define X_DIR_PIN 20
  2243. #define X_ENABLE_PIN 24
  2244. #define X_STOP_PIN 0
  2245.  
  2246. #define Y_STEP_PIN 23
  2247. #define Y_DIR_PIN 22
  2248. #define Y_ENABLE_PIN 24
  2249. #define Y_STOP_PIN 1
  2250.  
  2251. #define Z_STEP_PIN 26
  2252. #define Z_DIR_PIN 25
  2253. #define Z_ENABLE_PIN 24
  2254. #define Z_STOP_PIN 2
  2255.  
  2256. #define E0_STEP_PIN 28
  2257. #define E0_DIR_PIN 27
  2258. #define E0_ENABLE_PIN 24
  2259.  
  2260. #define E1_STEP_PIN -1 // 19
  2261. #define E1_DIR_PIN -1 // 18
  2262. #define E1_ENABLE_PIN 24
  2263.  
  2264. #define E2_STEP_PIN -1 // 17
  2265. #define E2_DIR_PIN -1 // 16
  2266. #define E2_ENABLE_PIN 24
  2267.  
  2268. #define SDPOWER -1
  2269. #define SDSS 11
  2270. #define SDCARDDETECT -1 // 10 optional also used as mode pin
  2271. #define LED_PIN -1
  2272. #define FAN_PIN 3
  2273. #define PS_ON_PIN -1
  2274. #define KILL_PIN -1
  2275.  
  2276. #define HEATER_0_PIN 4
  2277. #define HEATER_1_PIN -1 // 12
  2278. #define HEATER_2_PIN -1 // 13
  2279. #define TEMP_0_PIN 0 //D27 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  2280. #define TEMP_1_PIN -1 // 1
  2281. #define TEMP_2_PIN -1 // 2
  2282. #define HEATER_BED_PIN -1 // 14/15
  2283. #define TEMP_BED_PIN -1 // 1,2 or I2C
  2284. /* Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31) */
  2285.  
  2286. #endif // OMCA_A
  2287.  
  2288. #if MB(OMCA) // Final OMCA board -- REF http://sanguino.cc/hardware
  2289. #define KNOWN_BOARD 1
  2290.  
  2291. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__)
  2292. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu. (Final OMCA board)
  2293. #endif
  2294.  
  2295. #define X_STEP_PIN 26
  2296. #define X_DIR_PIN 25
  2297. #define X_ENABLE_PIN 10
  2298. #define X_STOP_PIN 0
  2299.  
  2300. #define Y_STEP_PIN 28
  2301. #define Y_DIR_PIN 27
  2302. #define Y_ENABLE_PIN 10
  2303. #define Y_STOP_PIN 1
  2304.  
  2305. #define Z_STEP_PIN 23
  2306. #define Z_DIR_PIN 22
  2307. #define Z_ENABLE_PIN 10
  2308. #define Z_STOP_PIN 2
  2309.  
  2310. #define E0_STEP_PIN 24
  2311. #define E0_DIR_PIN 21
  2312. #define E0_ENABLE_PIN 10
  2313.  
  2314. /* future proofing */
  2315. #define __FS 20
  2316. #define __FD 19
  2317. #define __GS 18
  2318. #define __GD 13
  2319.  
  2320. #define UNUSED_PWM 14 /* PWM on LEFT connector */
  2321.  
  2322. #define E1_STEP_PIN -1 // 21
  2323. #define E1_DIR_PIN -1 // 20
  2324. #define E1_ENABLE_PIN -1 // 19
  2325.  
  2326. #define E2_STEP_PIN -1 // 21
  2327. #define E2_DIR_PIN -1 // 20
  2328. #define E2_ENABLE_PIN -1 // 18
  2329.  
  2330. #define SDPOWER -1
  2331. #define SDSS 11
  2332. #define SDCARDDETECT -1 // 10 optional also used as mode pin
  2333. #define LED_PIN -1
  2334. #define FAN_PIN 14 /* PWM on MIDDLE connector */
  2335. #define PS_ON_PIN -1
  2336. #define KILL_PIN -1
  2337.  
  2338. #define HEATER_0_PIN 3 /*DONE PWM on RIGHT connector */
  2339. #define HEATER_1_PIN -1
  2340. #define HEATER_2_PIN -1
  2341. #define HEATER_1_PIN -1
  2342. #define HEATER_2_PIN -1
  2343. #define TEMP_0_PIN 0 // ANALOG INPUT NUMBERING
  2344. #define TEMP_1_PIN 1 // ANALOG
  2345. #define TEMP_2_PIN -1 // 2
  2346. #define HEATER_BED_PIN 4
  2347. #define TEMP_BED_PIN 2 // 1,2 or I2C
  2348.  
  2349. #define I2C_SCL 16
  2350. #define I2C_SDA 17
  2351.  
  2352. #endif // OMCA
  2353.  
  2354. /*****************************************************************
  2355. * Rambo Pin Assignments
  2356. ******************************************************************/
  2357. #if MB(RAMBO)
  2358. #define KNOWN_BOARD
  2359. #ifndef __AVR_ATmega2560__
  2360. #error Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu.
  2361. #endif
  2362.  
  2363. #define LARGE_FLASH true
  2364.  
  2365. #define X_STEP_PIN 37
  2366. #define X_DIR_PIN 48
  2367. #define X_MIN_PIN 12
  2368. #define X_MAX_PIN 24
  2369. #define X_ENABLE_PIN 29
  2370. #define X_MS1_PIN 40
  2371. #define X_MS2_PIN 41
  2372.  
  2373. #define Y_STEP_PIN 36
  2374. #define Y_DIR_PIN 49
  2375. #define Y_MIN_PIN 11
  2376. #define Y_MAX_PIN 23
  2377. #define Y_ENABLE_PIN 28
  2378. #define Y_MS1_PIN 69
  2379. #define Y_MS2_PIN 39
  2380.  
  2381. #define Z_STEP_PIN 35
  2382. #define Z_DIR_PIN 47
  2383. #define Z_MIN_PIN 10
  2384. #define Z_MAX_PIN 30
  2385. #define Z_ENABLE_PIN 27
  2386. #define Z_MS1_PIN 68
  2387. #define Z_MS2_PIN 67
  2388.  
  2389. #define HEATER_BED_PIN 3
  2390. #define TEMP_BED_PIN 2
  2391.  
  2392. #define HEATER_0_PIN 9
  2393. #define TEMP_0_PIN 0
  2394.  
  2395. #define HEATER_1_PIN 7
  2396. #define TEMP_1_PIN 1
  2397.  
  2398. #ifdef BARICUDA
  2399. #define HEATER_2_PIN 6
  2400. #else
  2401. #define HEATER_2_PIN -1
  2402. #endif
  2403. #define TEMP_2_PIN -1
  2404.  
  2405. #define E0_STEP_PIN 34
  2406. #define E0_DIR_PIN 43
  2407. #define E0_ENABLE_PIN 26
  2408. #define E0_MS1_PIN 65
  2409. #define E0_MS2_PIN 66
  2410.  
  2411. #define E1_STEP_PIN 33
  2412. #define E1_DIR_PIN 42
  2413. #define E1_ENABLE_PIN 25
  2414. #define E1_MS1_PIN 63
  2415. #define E1_MS2_PIN 64
  2416.  
  2417. #define DIGIPOTSS_PIN 38
  2418. #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
  2419.  
  2420. #define SDPOWER -1
  2421. #define SDSS 53
  2422. #define LED_PIN 13
  2423. #define FAN_PIN 8
  2424. #define PS_ON_PIN 4
  2425. #define KILL_PIN -1 //80 with Smart Controller LCD
  2426. #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing.
  2427.  
  2428. #ifdef ULTRA_LCD
  2429. #define KILL_PIN 80
  2430. #ifdef NEWPANEL
  2431. //arduino pin which triggers an piezzo beeper
  2432. #define BEEPER 79 // Beeper on AUX-4
  2433. #define LCD_PINS_RS 70
  2434. #define LCD_PINS_ENABLE 71
  2435. #define LCD_PINS_D4 72
  2436. #define LCD_PINS_D5 73
  2437. #define LCD_PINS_D6 74
  2438. #define LCD_PINS_D7 75
  2439.  
  2440. //buttons are directly attached using AUX-2
  2441. #define BTN_EN1 76
  2442. #define BTN_EN2 77
  2443. #define BTN_ENC 78 //the click
  2444.  
  2445. #define BLEN_C 2
  2446. #define BLEN_B 1
  2447. #define BLEN_A 0
  2448.  
  2449. #define SDCARDDETECT 81 // Ramps does not use this port
  2450.  
  2451. //encoder rotation values
  2452. #define encrot0 0
  2453. #define encrot1 2
  2454. #define encrot2 3
  2455. #define encrot3 1
  2456. #else //old style panel with shift register
  2457. //arduino pin witch triggers an piezzo beeper
  2458. #define BEEPER 33 No Beeper added
  2459. //buttons are attached to a shift register
  2460. // Not wired this yet
  2461. // #define SHIFT_CLK 38
  2462. // #define SHIFT_LD 42
  2463. // #define SHIFT_OUT 40
  2464. // #define SHIFT_EN 17
  2465.  
  2466. #define LCD_PINS_RS 75
  2467. #define LCD_PINS_ENABLE 17
  2468. #define LCD_PINS_D4 23
  2469. #define LCD_PINS_D5 25
  2470. #define LCD_PINS_D6 27
  2471. #define LCD_PINS_D7 29
  2472.  
  2473. //encoder rotation values
  2474. #define encrot0 0
  2475. #define encrot1 2
  2476. #define encrot2 3
  2477. #define encrot3 1
  2478.  
  2479. //bits in the shift register that carry the buttons for:
  2480. // left up center down right red
  2481. #define BL_LE 7
  2482. #define BL_UP 6
  2483. #define BL_MI 5
  2484. #define BL_DW 4
  2485. #define BL_RI 3
  2486. #define BL_ST 2
  2487. #define BLEN_B 1
  2488. #define BLEN_A 0
  2489. #endif
  2490. #endif //ULTRA_LCD
  2491.  
  2492. #ifdef FILAMENT_SENSOR
  2493. //Filip added pin for Filament sensor analog input
  2494. #define FILWIDTH_PIN 3
  2495. #endif //FILAMENT_SENSOR
  2496.  
  2497. #endif // RAMBO
  2498.  
  2499. /****************************************************************************************
  2500. * MegaTronics
  2501. *
  2502. ****************************************************************************************/
  2503. #if MB(MEGATRONICS)
  2504. #define KNOWN_BOARD 1
  2505.  
  2506.  
  2507. #ifndef __AVR_ATmega2560__
  2508. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  2509. #endif
  2510.  
  2511.  
  2512. #define LARGE_FLASH true
  2513.  
  2514. #define X_STEP_PIN 26
  2515. #define X_DIR_PIN 28
  2516. #define X_ENABLE_PIN 24
  2517. #define X_MIN_PIN 41
  2518. #define X_MAX_PIN 37
  2519.  
  2520. #define Y_STEP_PIN 60 // A6
  2521. #define Y_DIR_PIN 61 // A7
  2522. #define Y_ENABLE_PIN 22
  2523. #define Y_MIN_PIN 14
  2524. #define Y_MAX_PIN 15
  2525.  
  2526. #define Z_STEP_PIN 54 // A0
  2527. #define Z_DIR_PIN 55 // A1
  2528. #define Z_ENABLE_PIN 56 // A2
  2529. #define Z_MIN_PIN 18
  2530. #define Z_MAX_PIN 19
  2531.  
  2532. #define E0_STEP_PIN 31
  2533. #define E0_DIR_PIN 32
  2534. #define E0_ENABLE_PIN 38
  2535.  
  2536. #define E1_STEP_PIN 34
  2537. #define E1_DIR_PIN 36
  2538. #define E1_ENABLE_PIN 30
  2539.  
  2540. #define SDPOWER -1
  2541. #define SDSS 53
  2542. #define LED_PIN 13
  2543.  
  2544.  
  2545. #define FAN_PIN 7 // IO pin. Buffer needed
  2546. #define PS_ON_PIN 12
  2547. #define KILL_PIN -1
  2548.  
  2549. #define HEATER_0_PIN 9 // EXTRUDER 1
  2550. #define HEATER_1_PIN 8 // EXTRUDER 2 (FAN On Sprinter)
  2551. #define HEATER_2_PIN -1
  2552.  
  2553. #if TEMP_SENSOR_0 == -1
  2554. #define TEMP_0_PIN 8 // ANALOG NUMBERING
  2555. #else
  2556. #define TEMP_0_PIN 13 // ANALOG NUMBERING
  2557.  
  2558. #endif
  2559.  
  2560. #define TEMP_1_PIN 15 // ANALOG NUMBERING
  2561. #define TEMP_2_PIN -1 // ANALOG NUMBERING
  2562. #define HEATER_BED_PIN 10 // BED
  2563. #define TEMP_BED_PIN 14 // ANALOG NUMBERING
  2564.  
  2565. #define BEEPER 33 // Beeper on AUX-4
  2566.  
  2567.  
  2568. #ifdef ULTRA_LCD
  2569.  
  2570. #ifdef NEWPANEL
  2571. //arduino pin which triggers an piezzo beeper
  2572.  
  2573. #define LCD_PINS_RS 16
  2574. #define LCD_PINS_ENABLE 17
  2575. #define LCD_PINS_D4 23
  2576. #define LCD_PINS_D5 25
  2577. #define LCD_PINS_D6 27
  2578. #define LCD_PINS_D7 29
  2579.  
  2580. //buttons are directly attached using AUX-2
  2581. #define BTN_EN1 59
  2582. #define BTN_EN2 64
  2583. #define BTN_ENC 43 //the click
  2584.  
  2585. #define BLEN_C 2
  2586. #define BLEN_B 1
  2587. #define BLEN_A 0
  2588.  
  2589. #define SDCARDDETECT -1 // Ramps does not use this port
  2590.  
  2591. //encoder rotation values
  2592. #define encrot0 0
  2593. #define encrot1 2
  2594. #define encrot2 3
  2595. #define encrot3 1
  2596. #endif
  2597. #endif //ULTRA_LCD
  2598.  
  2599. #endif // MEGATRONICS
  2600.  
  2601. /****************************************************************************************
  2602. * MegaTronics v2.0
  2603. *
  2604. ****************************************************************************************/
  2605. #if MB(MEGATRONICS_2)
  2606. #define KNOWN_BOARD 1
  2607.  
  2608.  
  2609. #ifndef __AVR_ATmega2560__
  2610. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  2611. #endif
  2612.  
  2613. #define LARGE_FLASH true
  2614.  
  2615. #define X_STEP_PIN 26
  2616. #define X_DIR_PIN 27
  2617. #define X_ENABLE_PIN 25
  2618. #define X_MIN_PIN 37
  2619. #define X_MAX_PIN 40 //2 //Max endstops default to disabled "-1", set to commented value to enable.
  2620.  
  2621. #define Y_STEP_PIN 4 // A6
  2622. #define Y_DIR_PIN 54 // A0
  2623. #define Y_ENABLE_PIN 5
  2624. #define Y_MIN_PIN 41
  2625. #define Y_MAX_PIN 38 //15
  2626.  
  2627. #define Z_STEP_PIN 56 // A2
  2628. #define Z_DIR_PIN 60 // A6
  2629. #define Z_ENABLE_PIN 55 // A1
  2630. #define Z_MIN_PIN 18
  2631. #define Z_MAX_PIN 19
  2632.  
  2633. #define E0_STEP_PIN 35
  2634. #define E0_DIR_PIN 36
  2635. #define E0_ENABLE_PIN 34
  2636.  
  2637. #define E1_STEP_PIN 29
  2638. #define E1_DIR_PIN 39
  2639. #define E1_ENABLE_PIN 28
  2640.  
  2641. #define E2_STEP_PIN 23
  2642. #define E2_DIR_PIN 24
  2643. #define E2_ENABLE_PIN 22
  2644.  
  2645. #define SDPOWER -1
  2646. #define SDSS 53
  2647. #define LED_PIN 13
  2648.  
  2649. #define FAN_PIN 7
  2650. #define FAN2_PIN 6
  2651. #define PS_ON_PIN 12
  2652. #define KILL_PIN -1
  2653.  
  2654. #define HEATER_0_PIN 9 // EXTRUDER 1
  2655. #define HEATER_1_PIN 8 // EXTRUDER 2
  2656. #define HEATER_2_PIN -1
  2657.  
  2658. #if TEMP_SENSOR_0 == -1
  2659. #define TEMP_0_PIN 4 // ANALOG NUMBERING
  2660. #else
  2661. #define TEMP_0_PIN 13 // ANALOG NUMBERING
  2662. #endif
  2663.  
  2664.  
  2665. #if TEMP_SENSOR_1 == -1
  2666. #define TEMP_1_PIN 8 // ANALOG NUMBERING
  2667. #else
  2668. #define TEMP_1_PIN 15 // ANALOG NUMBERING
  2669. #endif
  2670.  
  2671. #define TEMP_2_PIN -1 // ANALOG NUMBERING
  2672.  
  2673. #define HEATER_BED_PIN 10 // BED
  2674.  
  2675. #if TEMP_SENSOR_BED == -1
  2676. #define TEMP_BED_PIN 8 // ANALOG NUMBERING
  2677. #else
  2678. #define TEMP_BED_PIN 14 // ANALOG NUMBERING
  2679. #endif
  2680.  
  2681. #define BEEPER 64
  2682.  
  2683.  
  2684. #define LCD_PINS_RS 14
  2685. #define LCD_PINS_ENABLE 15
  2686. #define LCD_PINS_D4 30
  2687. #define LCD_PINS_D5 31
  2688. #define LCD_PINS_D6 32
  2689. #define LCD_PINS_D7 33
  2690.  
  2691.  
  2692. //buttons are directly attached using keypad
  2693. #define BTN_EN1 61
  2694. #define BTN_EN2 59
  2695. #define BTN_ENC 43 //the click
  2696.  
  2697. #define BLEN_C 2
  2698. #define BLEN_B 1
  2699. #define BLEN_A 0
  2700.  
  2701. #define SDCARDDETECT -1 // Megatronics does not use this port
  2702.  
  2703. //encoder rotation values
  2704. #define encrot0 0
  2705. #define encrot1 2
  2706. #define encrot2 3
  2707. #define encrot3 1
  2708.  
  2709. #endif // MEGATRONICS_2
  2710.  
  2711.  
  2712. /****************************************************************************************
  2713. * Minitronics v1.0
  2714. *
  2715. ****************************************************************************************/
  2716. #if MB(MEGATRONICS_1)
  2717. #define KNOWN_BOARD 1
  2718.  
  2719.  
  2720. #ifndef __AVR_ATmega1281__
  2721. #error Oops! Make sure you have 'Minitronics ' selected from the 'Tools -> Boards' menu.
  2722. #endif
  2723.  
  2724. #define LARGE_FLASH true
  2725.  
  2726. #define X_STEP_PIN 48
  2727. #define X_DIR_PIN 47
  2728. #define X_ENABLE_PIN 49
  2729. #define X_MIN_PIN 5
  2730. #define X_MAX_PIN -1 //2 //Max endstops default to disabled "-1", set to commented value to enable.
  2731.  
  2732. #define Y_STEP_PIN 39 // A6
  2733. #define Y_DIR_PIN 40 // A0
  2734. #define Y_ENABLE_PIN 38
  2735. #define Y_MIN_PIN 2
  2736. #define Y_MAX_PIN -1 //15
  2737.  
  2738. #define Z_STEP_PIN 42 // A2
  2739. #define Z_DIR_PIN 43 // A6
  2740. #define Z_ENABLE_PIN 41 // A1
  2741. #define Z_MIN_PIN 6
  2742. #define Z_MAX_PIN -1
  2743.  
  2744. #define E0_STEP_PIN 45
  2745. #define E0_DIR_PIN 44
  2746. #define E0_ENABLE_PIN 27
  2747.  
  2748. #define E1_STEP_PIN 36
  2749. #define E1_DIR_PIN 35
  2750. #define E1_ENABLE_PIN 37
  2751.  
  2752. #define E2_STEP_PIN -1
  2753. #define E2_DIR_PIN -1
  2754. #define E2_ENABLE_PIN -1
  2755.  
  2756. #define SDPOWER -1
  2757. #define SDSS 16
  2758. #define LED_PIN 46
  2759.  
  2760. #define FAN_PIN 9
  2761. #define FAN2_PIN -1
  2762. #define PS_ON_PIN -1
  2763. #define KILL_PIN -1
  2764.  
  2765. #define HEATER_0_PIN 7 // EXTRUDER 1
  2766. #define HEATER_1_PIN 8 // EXTRUDER 2
  2767. #define HEATER_2_PIN -1
  2768.  
  2769.  
  2770. #define TEMP_0_PIN 7 // ANALOG NUMBERING
  2771. #define TEMP_1_PIN 6 // ANALOG NUMBERING
  2772. #define TEMP_2_PIN -1 // ANALOG NUMBERING
  2773.  
  2774. #define HEATER_BED_PIN 3 // BED
  2775. #define TEMP_BED_PIN 6 // ANALOG NUMBERING
  2776.  
  2777. #define BEEPER -1
  2778.  
  2779.  
  2780. #define LCD_PINS_RS -1
  2781. #define LCD_PINS_ENABLE -1
  2782. #define LCD_PINS_D4 -1
  2783. #define LCD_PINS_D5 -1
  2784. #define LCD_PINS_D6 -1
  2785. #define LCD_PINS_D7 -1
  2786.  
  2787.  
  2788. //buttons are directly attached using keypad
  2789. #define BTN_EN1 -1
  2790. #define BTN_EN2 -1
  2791. #define BTN_ENC -1 //the click
  2792.  
  2793. #define BLEN_C 2
  2794. #define BLEN_B 1
  2795. #define BLEN_A 0
  2796.  
  2797. #define SDCARDDETECT -1 // Megatronics does not use this port
  2798.  
  2799. //encoder rotation values
  2800. #define encrot0 0
  2801. #define encrot1 2
  2802. #define encrot2 3
  2803. #define encrot3 1
  2804.  
  2805. #endif // MEGATRONICS_1
  2806.  
  2807. /****************************************************************************************
  2808. * Cheaptronic v1.0
  2809. *
  2810. ****************************************************************************************/
  2811. #if MB(CHEAPTRONIC)
  2812. #define KNOWN_BOARD 1
  2813.  
  2814. #ifndef __AVR_ATmega2560__
  2815. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  2816. #endif
  2817.  
  2818. #define LARGE_FLASH true
  2819.  
  2820. //X motor stepper
  2821. #define X_STEP_PIN 14
  2822. #define X_DIR_PIN 15
  2823. #define X_ENABLE_PIN 24
  2824.  
  2825. //X endstop
  2826. #define X_MIN_PIN 3
  2827. #define X_MAX_PIN -1
  2828.  
  2829. //Y motor stepper
  2830. #define Y_STEP_PIN 35
  2831. #define Y_DIR_PIN 36
  2832. #define Y_ENABLE_PIN 31
  2833.  
  2834. //Y endstop
  2835. #define Y_MIN_PIN 2
  2836. #define Y_MAX_PIN -1
  2837.  
  2838. //Z motor stepper
  2839. #define Z_STEP_PIN 40
  2840. #define Z_DIR_PIN 41
  2841. #define Z_ENABLE_PIN 37
  2842.  
  2843. //Z endstop
  2844. #define Z_MIN_PIN 5
  2845. #define Z_MAX_PIN -1
  2846.  
  2847. //Extruder 0 stepper
  2848. #define E0_STEP_PIN 26
  2849. #define E0_DIR_PIN 28
  2850. #define E0_ENABLE_PIN 25
  2851.  
  2852. //Extruder 1 stepper
  2853. #define E1_STEP_PIN 33
  2854. #define E1_DIR_PIN 34
  2855. #define E1_ENABLE_PIN 30
  2856.  
  2857. #define SDPOWER -1
  2858. #define SDSS -1
  2859. #define LED_PIN -1
  2860.  
  2861. //FAN
  2862. #define FAN_PIN -1
  2863.  
  2864. #define PS_ON_PIN -1
  2865. #define KILL_PIN -1
  2866.  
  2867. #define HEATER_0_PIN 19 // EXTRUDER 1
  2868. #define HEATER_1_PIN 23 // EXTRUDER 2
  2869. //HeatedBad
  2870. #define HEATER_BED_PIN 22
  2871. //Cheaptronic v1.0 hasent EXTRUDER 3
  2872. #define HEATER_2_PIN -1
  2873.  
  2874. //Temperature sensors
  2875. #define TEMP_0_PIN 15
  2876. #define TEMP_1_PIN 14
  2877. #define TEMP_2_PIN -1
  2878. #define TEMP_BED_PIN 13
  2879.  
  2880. //Cheaptronic v1.0 dont support LCD
  2881. #define LCD_PINS_RS -1
  2882. #define LCD_PINS_ENABLE -1
  2883. #define LCD_PINS_D4 -1
  2884. #define LCD_PINS_D5 -1
  2885. #define LCD_PINS_D6 -1
  2886. #define LCD_PINS_D7 -1
  2887.  
  2888. //Cheaptronic v1.0 dont support keypad
  2889. #define BTN_EN1 -1
  2890. #define BTN_EN2 -1
  2891. #define BTN_ENC -1
  2892.  
  2893. #define BLEN_C 2
  2894. #define BLEN_B 1
  2895. #define BLEN_A 0
  2896.  
  2897. //Cheaptronic v1.0 does not use this port
  2898. #define SDCARDDETECT -1
  2899.  
  2900. //encoder rotation values
  2901. #define encrot0 0
  2902. #define encrot1 2
  2903. #define encrot2 3
  2904. #define encrot3 1
  2905.  
  2906. #endif // CHEAPTRONIC
  2907.  
  2908.  
  2909.  
  2910. #ifndef KNOWN_BOARD
  2911. #error Unknown MOTHERBOARD value in configuration.h
  2912. #endif
  2913.  
  2914. //List of pins which to ignore when asked to change by gcode, 0 and 1 are RX and TX, do not mess with those!
  2915. #define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, HEATER_0_PIN,
  2916. #if EXTRUDERS > 1
  2917. #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, HEATER_1_PIN,
  2918. #else
  2919. #define _E1_PINS
  2920. #endif
  2921. #if EXTRUDERS > 2
  2922. #define _E2_PINS E2_STEP_PIN, E2_DIR_PIN, E2_ENABLE_PIN, HEATER_2_PIN,
  2923. #else
  2924. #define _E2_PINS
  2925. #endif
  2926.  
  2927. #ifdef X_STOP_PIN
  2928. #if X_HOME_DIR < 0
  2929. #define X_MIN_PIN X_STOP_PIN
  2930. #define X_MAX_PIN -1
  2931. #else
  2932. #define X_MIN_PIN -1
  2933. #define X_MAX_PIN X_STOP_PIN
  2934. #endif
  2935. #endif
  2936.  
  2937. #ifdef Y_STOP_PIN
  2938. #if Y_HOME_DIR < 0
  2939. #define Y_MIN_PIN Y_STOP_PIN
  2940. #define Y_MAX_PIN -1
  2941. #else
  2942. #define Y_MIN_PIN -1
  2943. #define Y_MAX_PIN Y_STOP_PIN
  2944. #endif
  2945. #endif
  2946.  
  2947. #ifdef Z_STOP_PIN
  2948. #if Z_HOME_DIR < 0
  2949. #define Z_MIN_PIN Z_STOP_PIN
  2950. #define Z_MAX_PIN -1
  2951. #else
  2952. #define Z_MIN_PIN -1
  2953. #define Z_MAX_PIN Z_STOP_PIN
  2954. #endif
  2955. #endif
  2956.  
  2957. #ifdef DISABLE_MAX_ENDSTOPS
  2958. #define X_MAX_PIN -1
  2959. #define Y_MAX_PIN -1
  2960. #define Z_MAX_PIN -1
  2961. #endif
  2962.  
  2963. #ifdef DISABLE_MIN_ENDSTOPS
  2964. #define X_MIN_PIN -1
  2965. #define Y_MIN_PIN -1
  2966. #define Z_MIN_PIN -1
  2967. #endif
  2968.  
  2969. #define SENSITIVE_PINS {0, 1, X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, PS_ON_PIN, \
  2970. HEATER_BED_PIN, FAN_PIN, \
  2971. _E0_PINS _E1_PINS _E2_PINS \
  2972. analogInputToDigitalPin(TEMP_0_PIN), analogInputToDigitalPin(TEMP_1_PIN), analogInputToDigitalPin(TEMP_2_PIN), analogInputToDigitalPin(TEMP_BED_PIN) }
  2973.  
  2974. #endif //__PINS_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement