My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pins.h 35KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351
  1. #ifndef PINS_H
  2. #define PINS_H
  3. #if MOTHERBOARD == 99
  4. #define KNOWN_BOARD 1
  5. #define X_STEP_PIN 2
  6. #define X_DIR_PIN 3
  7. #define X_ENABLE_PIN -1
  8. #define X_MIN_PIN -1
  9. #define X_MAX_PIN 16
  10. #define Y_STEP_PIN 5
  11. #define Y_DIR_PIN 6
  12. #define Y_ENABLE_PIN -1
  13. #define Y_MIN_PIN 67
  14. #define Y_MAX_PIN -1
  15. #define Z_STEP_PIN 62
  16. #define Z_DIR_PIN 63
  17. #define Z_ENABLE_PIN -1
  18. #define Z_MIN_PIN 59
  19. #define Z_MAX_PIN -1
  20. #define E0_STEP_PIN 65
  21. #define E0_DIR_PIN 66
  22. #define E0_ENABLE_PIN -1
  23. #define SDPOWER -1
  24. #define SDSS 53
  25. #define LED_PIN -1
  26. #define FAN_PIN -1
  27. #define PS_ON_PIN 9
  28. #define KILL_PIN -1
  29. #define HEATER_0_PIN 13
  30. #define HEATER_1_PIN -1
  31. #define HEATER_2_PIN -1
  32. #define TEMP_0_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  33. #define TEMP_1_PIN -1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  34. #define TEMP_2_PIN -1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  35. #define HEATER_BED_PIN 4
  36. #define TEMP_BED_PIN 10
  37. #endif /* 99 */
  38. /****************************************************************************************
  39. * Gen7 v1.1, v1.2, v1.3 pin assignment
  40. *
  41. ****************************************************************************************/
  42. #if MOTHERBOARD == 12
  43. #define MOTHERBOARD 11
  44. #define GEN7_VERSION 13 // v1.3
  45. #endif
  46. #if MOTHERBOARD == 11
  47. #define KNOWN_BOARD
  48. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
  49. #error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
  50. #endif
  51. #ifndef GEN7_VERSION
  52. #define GEN7_VERSION 12 // v1.x
  53. #endif
  54. //x axis pins
  55. #define X_STEP_PIN 19
  56. #define X_DIR_PIN 18
  57. #define X_ENABLE_PIN 24
  58. #define X_MIN_PIN 7
  59. #define X_MAX_PIN -1
  60. //y axis pins
  61. #define Y_STEP_PIN 23
  62. #define Y_DIR_PIN 22
  63. #define Y_ENABLE_PIN 24
  64. #define Y_MIN_PIN 5
  65. #define Y_MAX_PIN -1
  66. //z axis pins
  67. #define Z_STEP_PIN 26
  68. #define Z_DIR_PIN 25
  69. #define Z_ENABLE_PIN 24
  70. #define Z_MIN_PIN 1
  71. #define Z_MAX_PIN 0
  72. //extruder pins
  73. #define E0_STEP_PIN 28
  74. #define E0_DIR_PIN 27
  75. #define E0_ENABLE_PIN 24
  76. #define TEMP_0_PIN 1
  77. #define TEMP_1_PIN -1
  78. #define TEMP_2_PIN -1
  79. #define TEMP_BED_PIN 2
  80. #define HEATER_0_PIN 4
  81. #define HEATER_1_PIN -1
  82. #define HEATER_2_PIN -1
  83. #define HEATER_BED_PIN 3
  84. #define KILL_PIN -1
  85. #define SDPOWER -1
  86. #define SDSS -1 // SCL pin of I2C header
  87. #define LED_PIN -1
  88. #if (GEN7_VERSION >= 13)
  89. // Gen7 v1.3 removed the fan pin
  90. #define FAN_PIN -1
  91. #else
  92. #define FAN_PIN 31
  93. #endif
  94. #define PS_ON_PIN 15
  95. //All these generations of Gen7 supply thermistor power
  96. //via PS_ON, so ignore bad thermistor readings
  97. #define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
  98. //our pin for debugging.
  99. #define DEBUG_PIN 0
  100. //our RS485 pins
  101. #define TX_ENABLE_PIN 12
  102. #define RX_ENABLE_PIN 13
  103. #endif
  104. /****************************************************************************************
  105. * Gen7 v1.4 pin assignment
  106. *
  107. ****************************************************************************************/
  108. #if MOTHERBOARD == 13
  109. #define GEN7_VERSION 14 // v1.4
  110. #endif
  111. #if MOTHERBOARD == 13
  112. #define KNOWN_BOARD
  113. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
  114. #error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
  115. #endif
  116. #ifndef GEN7_VERSION
  117. #define GEN7_VERSION 14 // v1.x
  118. #endif
  119. //x axis pins
  120. #define X_STEP_PIN 29
  121. #define X_DIR_PIN 28
  122. #define X_ENABLE_PIN 25
  123. #define X_MIN_PIN 0
  124. #define X_MAX_PIN -1
  125. //y axis pins
  126. #define Y_STEP_PIN 27
  127. #define Y_DIR_PIN 26
  128. #define Y_ENABLE_PIN 25
  129. #define Y_MIN_PIN 1
  130. #define Y_MAX_PIN -1
  131. //z axis pins
  132. #define Z_STEP_PIN 23
  133. #define Z_DIR_PIN 22
  134. #define Z_ENABLE_PIN 25
  135. #define Z_MIN_PIN 2
  136. #define Z_MAX_PIN -1
  137. //extruder pins
  138. #define E0_STEP_PIN 19
  139. #define E0_DIR_PIN 18
  140. #define E0_ENABLE_PIN 25
  141. #define TEMP_0_PIN 0
  142. #define TEMP_1_PIN -1
  143. #define TEMP_2_PIN -1
  144. #define TEMP_BED_PIN 1
  145. #define HEATER_0_PIN 4
  146. #define HEATER_1_PIN -1
  147. #define HEATER_2_PIN -1
  148. #define HEATER_BED_PIN 3
  149. #define KILL_PIN -1
  150. #define SDPOWER -1
  151. #define SDSS -1 // SCL pin of I2C header
  152. #define LED_PIN -1
  153. #define FAN_PIN -1
  154. #define PS_ON_PIN 15
  155. //our pin for debugging.
  156. #define DEBUG_PIN 0
  157. //our RS485 pins
  158. #define TX_ENABLE_PIN 12
  159. #define RX_ENABLE_PIN 13
  160. #endif
  161. /*******************************************************************************
  162. *********
  163. * Gen7 Alfons3 pin assignment
  164. *
  165. ********************************************************************************
  166. ********/
  167. /* These Pins are assigned for the modified GEN7 Board from Alfons3 Please review the pins and adjust it for your needs*/
  168. #if MOTHERBOARD == 10
  169. #define KNOWN_BOARD
  170. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
  171. #error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
  172. #endif
  173. //x axis pins
  174. #define X_STEP_PIN 21 //different from stanard GEN7
  175. #define X_DIR_PIN 20 //different from stanard GEN7
  176. #define X_ENABLE_PIN 24
  177. #define X_MIN_PIN 0
  178. #define X_MAX_PIN -1
  179. //y axis pins
  180. #define Y_STEP_PIN 23
  181. #define Y_DIR_PIN 22
  182. #define Y_ENABLE_PIN 24
  183. #define Y_MIN_PIN 1
  184. #define Y_MAX_PIN -1
  185. //z axis pins
  186. #define Z_STEP_PIN 26
  187. #define Z_DIR_PIN 25
  188. #define Z_ENABLE_PIN 24
  189. #define Z_MIN_PIN 2
  190. #define Z_MAX_PIN -1
  191. //extruder pins
  192. #define E0_STEP_PIN 28
  193. #define E0_DIR_PIN 27
  194. #define E0_ENABLE_PIN 24
  195. #define TEMP_0_PIN 2
  196. #define TEMP_1_PIN -1
  197. #define TEMP_2_PIN -1
  198. #define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
  199. #define HEATER_0_PIN 4
  200. #define HEATER_1_PIN -1
  201. #define HEATER_2_PIN -1
  202. #define HEATER_BED_PIN 3 // (bed)
  203. #define SDPOWER -1
  204. #define SDSS 31 // SCL pin of I2C header || CS Pin for SD Card support
  205. #define LED_PIN -1
  206. #define FAN_PIN -1
  207. #define PS_ON_PIN 19
  208. //our pin for debugging.
  209. #define DEBUG_PIN -1
  210. //our RS485 pins
  211. //#define TX_ENABLE_PIN 12
  212. //#define RX_ENABLE_PIN 13
  213. #define BEEPER -1
  214. #define SDCARDDETECT -1
  215. #define SUICIDE_PIN -1 //has to be defined; otherwise Power_off doesn't work
  216. #define KILL_PIN -1
  217. //Pins for 4bit LCD Support
  218. #define LCD_PINS_RS 18
  219. #define LCD_PINS_ENABLE 17
  220. #define LCD_PINS_D4 16
  221. #define LCD_PINS_D5 15
  222. #define LCD_PINS_D6 13
  223. #define LCD_PINS_D7 14
  224. //buttons are directly attached
  225. #define BTN_EN1 11
  226. #define BTN_EN2 10
  227. #define BTN_ENC 12 //the click
  228. #define BLEN_C 2
  229. #define BLEN_B 1
  230. #define BLEN_A 0
  231. #define encrot0 0
  232. #define encrot1 2
  233. #define encrot2 3
  234. #define encrot3 1
  235. #endif
  236. /****************************************************************************************
  237. * Arduino Mega pin assignment
  238. *
  239. ****************************************************************************************/
  240. #if MOTHERBOARD == 3 || MOTHERBOARD == 33 || MOTHERBOARD == 34
  241. #define KNOWN_BOARD 1
  242. //////////////////FIX THIS//////////////
  243. #ifndef __AVR_ATmega1280__
  244. #ifndef __AVR_ATmega2560__
  245. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  246. #endif
  247. #endif
  248. // uncomment one of the following lines for RAMPS v1.3 or v1.0, comment both for v1.2 or 1.1
  249. // #define RAMPS_V_1_3
  250. // #define RAMPS_V_1_0
  251. #if MOTHERBOARD == 33 || MOTHERBOARD == 34
  252. #define X_STEP_PIN 54
  253. #define X_DIR_PIN 55
  254. #define X_ENABLE_PIN 38
  255. #define X_MIN_PIN 3
  256. #define X_MAX_PIN 2 //2 //Max endstops default to disabled "-1", set to commented value to enable.
  257. #define Y_STEP_PIN 60
  258. #define Y_DIR_PIN 61
  259. #define Y_ENABLE_PIN 56
  260. #define Y_MIN_PIN 14
  261. #define Y_MAX_PIN 15 //15
  262. #define Z_STEP_PIN 46
  263. #define Z_DIR_PIN 48
  264. #define Z_ENABLE_PIN 62
  265. #define Z_MIN_PIN 18
  266. #define Z_MAX_PIN 19
  267. #define Z2_STEP_PIN 36
  268. #define Z2_DIR_PIN 34
  269. #define Z2_ENABLE_PIN 30
  270. #define E0_STEP_PIN 26
  271. #define E0_DIR_PIN 28
  272. #define E0_ENABLE_PIN 24
  273. #define E1_STEP_PIN 36
  274. #define E1_DIR_PIN 34
  275. #define E1_ENABLE_PIN 30
  276. #define SDPOWER -1
  277. #define SDSS 53
  278. #define LED_PIN 13
  279. #if MOTHERBOARD == 33
  280. #define FAN_PIN 9 // (Sprinter config)
  281. #else
  282. #define FAN_PIN 4 // IO pin. Buffer needed
  283. #endif
  284. #define PS_ON_PIN 12
  285. #define KILL_PIN -1
  286. #define HEATER_0_PIN 10 // EXTRUDER 1
  287. #if MOTHERBOARD == 33
  288. #define HEATER_1_PIN -1
  289. #else
  290. #define HEATER_1_PIN 9 // EXTRUDER 2 (FAN On Sprinter)
  291. #endif
  292. #define HEATER_2_PIN -1
  293. #define TEMP_0_PIN 13 // ANALOG NUMBERING
  294. #define TEMP_1_PIN 15 // ANALOG NUMBERING
  295. #define TEMP_2_PIN -1 // ANALOG NUMBERING
  296. #define HEATER_BED_PIN 8 // BED
  297. #define TEMP_BED_PIN 14 // ANALOG NUMBERING
  298. #ifdef ULTRA_LCD
  299. #ifdef NEWPANEL
  300. //arduino pin which triggers an piezzo beeper
  301. #define BEEPER 33 // Beeper on AUX-4
  302. #define LCD_PINS_RS 16
  303. #define LCD_PINS_ENABLE 17
  304. #define LCD_PINS_D4 23
  305. #define LCD_PINS_D5 25
  306. #define LCD_PINS_D6 27
  307. #define LCD_PINS_D7 29
  308. //buttons are directly attached using AUX-2
  309. #define BTN_EN1 37
  310. #define BTN_EN2 35
  311. #define BTN_ENC 31 //the click
  312. #define BLEN_C 2
  313. #define BLEN_B 1
  314. #define BLEN_A 0
  315. #define SDCARDDETECT -1 // Ramps does not use this port
  316. //encoder rotation values
  317. #define encrot0 0
  318. #define encrot1 2
  319. #define encrot2 3
  320. #define encrot3 1
  321. #ifdef REPRAPDISCOUNTSC
  322. // Override partially the above definitions
  323. #define KILL_PIN 41
  324. #define LCD_PINS_RS 16
  325. #define LCD_PINS_ENABLE 17
  326. #define LCD_PINS_D4 23
  327. #define LCD_PINS_D5 25
  328. #define LCD_PINS_D6 27
  329. #define LCD_PINS_D7 29
  330. #define BTN_EN1 31
  331. #define BTN_EN2 33
  332. #define BTN_ENC 35
  333. #define BEEPER 37
  334. #define SDCARDDETECT 49
  335. #endif
  336. #else //old style panel with shift register
  337. //arduino pin witch triggers an piezzo beeper
  338. #define BEEPER 33 No Beeper added
  339. //buttons are attached to a shift register
  340. // Not wired this yet
  341. //#define SHIFT_CLK 38
  342. //#define SHIFT_LD 42
  343. //#define SHIFT_OUT 40
  344. //#define SHIFT_EN 17
  345. #define LCD_PINS_RS 16
  346. #define LCD_PINS_ENABLE 17
  347. #define LCD_PINS_D4 23
  348. #define LCD_PINS_D5 25
  349. #define LCD_PINS_D6 27
  350. #define LCD_PINS_D7 29
  351. //encoder rotation values
  352. #define encrot0 0
  353. #define encrot1 2
  354. #define encrot2 3
  355. #define encrot3 1
  356. //bits in the shift register that carry the buttons for:
  357. // left up center down right red
  358. #define BL_LE 7
  359. #define BL_UP 6
  360. #define BL_MI 5
  361. #define BL_DW 4
  362. #define BL_RI 3
  363. #define BL_ST 2
  364. #define BLEN_B 1
  365. #define BLEN_A 0
  366. #endif
  367. #endif //ULTRA_LCD
  368. #else // RAMPS_V_1_1 or RAMPS_V_1_2 as default
  369. #define X_STEP_PIN 26
  370. #define X_DIR_PIN 28
  371. #define X_ENABLE_PIN 24
  372. #define X_MIN_PIN 3
  373. #define X_MAX_PIN -1 //2
  374. #define Y_STEP_PIN 38
  375. #define Y_DIR_PIN 40
  376. #define Y_ENABLE_PIN 36
  377. #define Y_MIN_PIN 16
  378. #define Y_MAX_PIN -1 //17
  379. #define Z_STEP_PIN 44
  380. #define Z_DIR_PIN 46
  381. #define Z_ENABLE_PIN 42
  382. #define Z_MIN_PIN 18
  383. #define Z_MAX_PIN -1 //19
  384. #define E0_STEP_PIN 32
  385. #define E0_DIR_PIN 34
  386. #define E0_ENABLE_PIN 30
  387. #define SDPOWER 48
  388. #define SDSS 53
  389. #define LED_PIN 13
  390. #define PS_ON_PIN -1
  391. #define KILL_PIN -1
  392. #ifdef RAMPS_V_1_0 // RAMPS_V_1_0
  393. #define HEATER_0_PIN 12 // RAMPS 1.0
  394. #define HEATER_BED_PIN -1 // RAMPS 1.0
  395. #define FAN_PIN 11 // RAMPS 1.0
  396. #else // RAMPS_V_1_1 or RAMPS_V_1_2
  397. #define HEATER_0_PIN 10 // RAMPS 1.1
  398. #define HEATER_BED_PIN 8 // RAMPS 1.1
  399. #define FAN_PIN 9 // RAMPS 1.1
  400. #endif
  401. #define HEATER_1_PIN -1
  402. #define HEATER_2_PIN -1
  403. #define TEMP_0_PIN 2 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  404. #define TEMP_1_PIN -1
  405. #define TEMP_2_PIN -1
  406. #define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  407. #endif
  408. // SPI for Max6675 Thermocouple
  409. #ifndef SDSUPPORT
  410. // these pins are defined in the SD library if building with SD support
  411. #define MAX_SCK_PIN 52
  412. #define MAX_MISO_PIN 50
  413. #define MAX_MOSI_PIN 51
  414. #define MAX6675_SS 53
  415. #else
  416. #define MAX6675_SS 49
  417. #endif
  418. #endif
  419. /****************************************************************************************
  420. * Duemilanove w/ ATMega328P pin assignment
  421. *
  422. ****************************************************************************************/
  423. #if MOTHERBOARD == 4
  424. #define KNOWN_BOARD 1
  425. #ifndef __AVR_ATmega328P__
  426. #error Oops! Make sure you have 'Arduino Duemilanove w/ ATMega328' selected from the 'Tools -> Boards' menu.
  427. #endif
  428. #define X_STEP_PIN 19
  429. #define X_DIR_PIN 18
  430. #define X_ENABLE_PIN -1
  431. #define X_MIN_PIN 17
  432. #define X_MAX_PIN -1
  433. #define Y_STEP_PIN 10
  434. #define Y_DIR_PIN 7
  435. #define Y_ENABLE_PIN -1
  436. #define Y_MIN_PIN 8
  437. #define Y_MAX_PIN -1
  438. #define Z_STEP_PIN 13
  439. #define Z_DIR_PIN 3
  440. #define Z_ENABLE_PIN 2
  441. #define Z_MIN_PIN 4
  442. #define Z_MAX_PIN -1
  443. #define E0_STEP_PIN 11
  444. #define E0_DIR_PIN 12
  445. #define E0_ENABLE_PIN -1
  446. #define SDPOWER -1
  447. #define SDSS -1
  448. #define LED_PIN -1
  449. #define FAN_PIN 5
  450. #define PS_ON_PIN -1
  451. #define KILL_PIN -1
  452. #define HEATER_0_PIN 6
  453. #define HEATER_1_PIN -1
  454. #define HEATER_2_PIN -1
  455. #define TEMP_0_PIN 0 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  456. #define TEMP_1_PIN -1
  457. #define TEMP_2_PIN -1
  458. #define HEATER_BED_PIN -1
  459. #define TEMP_BED_PIN -1
  460. #endif
  461. /****************************************************************************************
  462. * Gen6 pin assignment
  463. *
  464. ****************************************************************************************/
  465. #if MOTHERBOARD == 5 || MOTHERBOARD == 51
  466. #define KNOWN_BOARD 1
  467. #ifndef __AVR_ATmega644P__
  468. #ifndef __AVR_ATmega1284P__
  469. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
  470. #endif
  471. #endif
  472. //x axis pins
  473. #define X_STEP_PIN 15
  474. #define X_DIR_PIN 18
  475. #define X_ENABLE_PIN 19
  476. #define X_MIN_PIN 20
  477. #define X_MAX_PIN -1
  478. //y axis pins
  479. #define Y_STEP_PIN 23
  480. #define Y_DIR_PIN 22
  481. #define Y_ENABLE_PIN 24
  482. #define Y_MIN_PIN 25
  483. #define Y_MAX_PIN -1
  484. //z axis pins
  485. #define Z_STEP_PIN 27
  486. #define Z_DIR_PIN 28
  487. #define Z_ENABLE_PIN 29
  488. #define Z_MIN_PIN 30
  489. #define Z_MAX_PIN -1
  490. //extruder pins
  491. #define E0_STEP_PIN 4 //Edited @ EJE Electronics 20100715
  492. #define E0_DIR_PIN 2 //Edited @ EJE Electronics 20100715
  493. #define E0_ENABLE_PIN 3 //Added @ EJE Electronics 20100715
  494. #define TEMP_0_PIN 5 //changed @ rkoeppl 20110410
  495. #define TEMP_1_PIN -1 //changed @ rkoeppl 20110410
  496. #define TEMP_2_PIN -1 //changed @ rkoeppl 20110410
  497. #define HEATER_0_PIN 14 //changed @ rkoeppl 20110410
  498. #define HEATER_1_PIN -1
  499. #define HEATER_2_PIN -1
  500. #if MOTHERBOARD == 5
  501. #define HEATER_BED_PIN -1 //changed @ rkoeppl 20110410
  502. #define TEMP_BED_PIN -1 //changed @ rkoeppl 20110410
  503. #else
  504. #define HEATER_BED_PIN 1 //changed @ rkoeppl 20110410
  505. #define TEMP_BED_PIN 0 //changed @ rkoeppl 20110410
  506. #endif
  507. #define SDPOWER -1
  508. #define SDSS 17
  509. #define LED_PIN -1 //changed @ rkoeppl 20110410
  510. #define FAN_PIN -1 //changed @ rkoeppl 20110410
  511. #define PS_ON_PIN -1 //changed @ rkoeppl 20110410
  512. #define KILL_PIN -1 //changed @ drakelive 20120830
  513. //our pin for debugging.
  514. #define DEBUG_PIN 0
  515. //our RS485 pins
  516. #define TX_ENABLE_PIN 12
  517. #define RX_ENABLE_PIN 13
  518. #endif
  519. /****************************************************************************************
  520. * Sanguinololu pin assignment
  521. *
  522. ****************************************************************************************/
  523. #if MOTHERBOARD == 63
  524. #define MELZI
  525. #endif
  526. #if MOTHERBOARD == 62 || MOTHERBOARD == 63
  527. #undef MOTHERBOARD
  528. #define MOTHERBOARD 6
  529. #define SANGUINOLOLU_V_1_2
  530. #endif
  531. #if MOTHERBOARD == 6
  532. #define KNOWN_BOARD 1
  533. #ifndef __AVR_ATmega644P__
  534. #ifndef __AVR_ATmega1284P__
  535. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
  536. #endif
  537. #endif
  538. #define X_STEP_PIN 15
  539. #define X_DIR_PIN 21
  540. #if X_HOME_DIR < 0
  541. # define X_MIN_PIN 18
  542. # define X_MAX_PIN -1
  543. #else
  544. # define X_MIN_PIN -1
  545. # define X_MAX_PIN 18
  546. #endif
  547. #define Y_STEP_PIN 22
  548. #define Y_DIR_PIN 23
  549. #if Y_HOME_DIR < 0
  550. # define Y_MIN_PIN 19
  551. # define Y_MAX_PIN -1
  552. #else
  553. # define Y_MIN_PIN -1
  554. # define Y_MAX_PIN 19
  555. #endif
  556. #define Z_STEP_PIN 3
  557. #define Z_DIR_PIN 2
  558. #if Z_HOME_DIR < 0
  559. # define Z_MIN_PIN 20
  560. # define Z_MAX_PIN -1
  561. #else
  562. # define Z_MIN_PIN -1
  563. # define Z_MAX_PIN 20
  564. #endif
  565. #define E0_STEP_PIN 1
  566. #define E0_DIR_PIN 0
  567. #define LED_PIN -1
  568. #define FAN_PIN -1
  569. #ifdef MELZI
  570. #define LED_PIN 28
  571. #define FAN_PIN 4
  572. #endif
  573. #define PS_ON_PIN -1
  574. #define KILL_PIN -1
  575. #define HEATER_0_PIN 13 // (extruder)
  576. #define HEATER_1_PIN -1
  577. #define HEATER_2_PIN -1
  578. #ifdef SANGUINOLOLU_V_1_2
  579. #define HEATER_BED_PIN 12 // (bed)
  580. #define X_ENABLE_PIN 14
  581. #define Y_ENABLE_PIN 14
  582. #define Z_ENABLE_PIN 26
  583. #define E0_ENABLE_PIN 14
  584. #else
  585. #define HEATER_BED_PIN 14 // (bed)
  586. #define X_ENABLE_PIN -1
  587. #define Y_ENABLE_PIN -1
  588. #define Z_ENABLE_PIN -1
  589. #define E0_ENABLE_PIN -1
  590. #endif
  591. #define TEMP_0_PIN 7 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
  592. #define TEMP_1_PIN -1
  593. #define TEMP_2_PIN -1
  594. #define TEMP_BED_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
  595. #define SDPOWER -1
  596. #define SDSS 31
  597. #ifdef MELZI
  598. #define SDSS 24
  599. #endif
  600. #endif
  601. #if MOTHERBOARD == 7
  602. #define KNOWN_BOARD
  603. /*****************************************************************
  604. * Ultimaker pin assignment
  605. ******************************************************************/
  606. #ifndef __AVR_ATmega1280__
  607. #ifndef __AVR_ATmega2560__
  608. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  609. #endif
  610. #endif
  611. #define X_STEP_PIN 25
  612. #define X_DIR_PIN 23
  613. #define X_MIN_PIN 22
  614. #define X_MAX_PIN 24
  615. #define X_ENABLE_PIN 27
  616. #define Y_STEP_PIN 31
  617. #define Y_DIR_PIN 33
  618. #define Y_MIN_PIN 26
  619. #define Y_MAX_PIN 28
  620. #define Y_ENABLE_PIN 29
  621. #define Z_STEP_PIN 37
  622. #define Z_DIR_PIN 39
  623. #define Z_MIN_PIN 30
  624. #define Z_MAX_PIN 32
  625. #define Z_ENABLE_PIN 35
  626. #define HEATER_BED_PIN 4
  627. #define TEMP_BED_PIN 10
  628. #define HEATER_0_PIN 2
  629. #define TEMP_0_PIN 8
  630. #define HEATER_1_PIN 3
  631. #define TEMP_1_PIN 9
  632. #define HEATER_2_PIN -1
  633. #define TEMP_2_PIN -1
  634. #define E0_STEP_PIN 43
  635. #define E0_DIR_PIN 45
  636. #define E0_ENABLE_PIN 41
  637. #define E1_STEP_PIN 49
  638. #define E1_DIR_PIN 47
  639. #define E1_ENABLE_PIN 48
  640. #define SDPOWER -1
  641. #define SDSS 53
  642. #define LED_PIN 13
  643. #define FAN_PIN 7
  644. #define PS_ON_PIN 12
  645. #define KILL_PIN -1
  646. #define SUICIDE_PIN 54 //PIN that has to be turned on right after start, to keep power flowing.
  647. #ifdef ULTRA_LCD
  648. #ifdef NEWPANEL
  649. //arduino pin witch triggers an piezzo beeper
  650. #define BEEPER 18
  651. #define LCD_PINS_RS 20
  652. #define LCD_PINS_ENABLE 17
  653. #define LCD_PINS_D4 16
  654. #define LCD_PINS_D5 21
  655. #define LCD_PINS_D6 5
  656. #define LCD_PINS_D7 6
  657. //buttons are directly attached
  658. #define BTN_EN1 40
  659. #define BTN_EN2 42
  660. #define BTN_ENC 19 //the click
  661. #define BLEN_C 2
  662. #define BLEN_B 1
  663. #define BLEN_A 0
  664. #define SDCARDDETECT 38
  665. //encoder rotation values
  666. #define encrot0 0
  667. #define encrot1 2
  668. #define encrot2 3
  669. #define encrot3 1
  670. #else //old style panel with shift register
  671. //arduino pin witch triggers an piezzo beeper
  672. #define BEEPER 18
  673. //buttons are attached to a shift register
  674. #define SHIFT_CLK 38
  675. #define SHIFT_LD 42
  676. #define SHIFT_OUT 40
  677. #define SHIFT_EN 17
  678. #define LCD_PINS_RS 16
  679. #define LCD_PINS_ENABLE 5
  680. #define LCD_PINS_D4 6
  681. #define LCD_PINS_D5 21
  682. #define LCD_PINS_D6 20
  683. #define LCD_PINS_D7 19
  684. //encoder rotation values
  685. #ifndef ULTIMAKERCONTROLLER
  686. #define encrot0 0
  687. #define encrot1 2
  688. #define encrot2 3
  689. #define encrot3 1
  690. #else
  691. #define encrot0 0
  692. #define encrot1 1
  693. #define encrot2 3
  694. #define encrot3 2
  695. #endif
  696. #define SDCARDDETECT -1
  697. //bits in the shift register that carry the buttons for:
  698. // left up center down right red
  699. #define BL_LE 7
  700. #define BL_UP 6
  701. #define BL_MI 5
  702. #define BL_DW 4
  703. #define BL_RI 3
  704. #define BL_ST 2
  705. #define BLEN_B 1
  706. #define BLEN_A 0
  707. #endif
  708. #endif //ULTRA_LCD
  709. #endif
  710. #if MOTHERBOARD == 71
  711. #define KNOWN_BOARD
  712. /*****************************************************************
  713. * Ultimaker pin assignment (Old electronics)
  714. ******************************************************************/
  715. #ifndef __AVR_ATmega1280__
  716. #ifndef __AVR_ATmega2560__
  717. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  718. #endif
  719. #endif
  720. #define X_STEP_PIN 25
  721. #define X_DIR_PIN 23
  722. #define X_MIN_PIN 15
  723. #define X_MAX_PIN 14
  724. #define X_ENABLE_PIN 27
  725. #define Y_STEP_PIN 31
  726. #define Y_DIR_PIN 33
  727. #define Y_MIN_PIN 17
  728. #define Y_MAX_PIN 16
  729. #define Y_ENABLE_PIN 29
  730. #define Z_STEP_PIN 37
  731. #define Z_DIR_PIN 39
  732. #define Z_MIN_PIN 19
  733. #define Z_MAX_PIN 18
  734. #define Z_ENABLE_PIN 35
  735. #define HEATER_BED_PIN -1
  736. #define TEMP_BED_PIN -1
  737. #define HEATER_0_PIN 2
  738. #define TEMP_0_PIN 8
  739. #define HEATER_1_PIN 1
  740. #define TEMP_1_PIN 1
  741. #define HEATER_2_PIN -1
  742. #define TEMP_2_PIN -1
  743. #define E0_STEP_PIN 43
  744. #define E0_DIR_PIN 45
  745. #define E0_ENABLE_PIN 41
  746. #define E1_STEP_PIN -1
  747. #define E1_DIR_PIN -1
  748. #define E1_ENABLE_PIN -1
  749. #define SDPOWER -1
  750. #define SDSS -1
  751. #define LED_PIN -1
  752. #define FAN_PIN -1
  753. #define PS_ON_PIN -1
  754. #define KILL_PIN -1
  755. #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing.
  756. #define LCD_PINS_RS 24
  757. #define LCD_PINS_ENABLE 22
  758. #define LCD_PINS_D4 36
  759. #define LCD_PINS_D5 34
  760. #define LCD_PINS_D6 32
  761. #define LCD_PINS_D7 30
  762. #endif
  763. /****************************************************************************************
  764. * Teensylu 0.7 pin assingments (ATMEGA90USB)
  765. * Requires the Teensyduino software with Teensy2.0++ selected in arduino IDE!
  766. ****************************************************************************************/
  767. #if MOTHERBOARD == 8
  768. #define MOTHERBOARD 8
  769. #define KNOWN_BOARD 1
  770. #define X_STEP_PIN 0
  771. #define X_DIR_PIN 1
  772. #define X_ENABLE_PIN 39
  773. #define X_MIN_PIN 13
  774. #define X_MAX_PIN -1
  775. #define Y_STEP_PIN 2
  776. #define Y_DIR_PIN 3
  777. #define Y_ENABLE_PIN 38
  778. #define Y_MIN_PIN 14
  779. #define Y_MAX_PIN -1
  780. #define Z_STEP_PIN 4
  781. #define Z_DIR_PIN 5
  782. #define Z_ENABLE_PIN 23
  783. #define Z_MIN_PIN 15
  784. #define Z_MAX_PIN -1
  785. #define E0_STEP_PIN 6
  786. #define E0_DIR_PIN 7
  787. #define E0_ENABLE_PIN 19
  788. #define HEATER_0_PIN 21 // Extruder
  789. #define HEATER_1_PIN -1
  790. #define HEATER_2_PIN -1
  791. #define HEATER_BED_PIN 20 // Bed
  792. #define FAN_PIN 22 // Fan
  793. #define TEMP_0_PIN 7 // Extruder
  794. #define TEMP_1_PIN -1
  795. #define TEMP_2_PIN -1
  796. #define TEMP_BED_PIN 6 // Bed
  797. #define SDPOWER -1
  798. #define SDSS 8
  799. #define LED_PIN -1
  800. #define PS_ON_PIN -1
  801. #define KILL_PIN -1
  802. #define ALARM_PIN -1
  803. #ifndef SDSUPPORT
  804. // these pins are defined in the SD library if building with SD support
  805. #define SCK_PIN 9
  806. #define MISO_PIN 11
  807. #define MOSI_PIN 10
  808. #endif
  809. #endif
  810. /****************************************************************************************
  811. * Gen3+ pin assignment
  812. *
  813. ****************************************************************************************/
  814. #if MOTHERBOARD == 9
  815. #define MOTHERBOARD 6
  816. #define KNOWN_BOARD 1
  817. #ifndef __AVR_ATmega644P__
  818. #ifndef __AVR_ATmega1284P__
  819. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
  820. #endif
  821. #endif
  822. #define X_STEP_PIN 15
  823. #define X_DIR_PIN 18
  824. #define X_MIN_PIN 20
  825. #define X_MAX_PIN -1
  826. #define Y_STEP_PIN 23
  827. #define Y_DIR_PIN 22
  828. #define Y_MIN_PIN 25
  829. #define Y_MAX_PIN -1
  830. #define Z_STEP_PIN 27
  831. #define Z_DIR_PIN 28
  832. #define Z_MIN_PIN 30
  833. #define Z_MAX_PIN -1
  834. #define E_STEP_PIN 17
  835. #define E_DIR_PIN 21
  836. #define LED_PIN -1
  837. #define FAN_PIN -1
  838. #define PS_ON_PIN 14
  839. #define KILL_PIN -1
  840. #define HEATER_0_PIN 12 // (extruder)
  841. #define HEATER_1_PIN 16 // (bed)
  842. #define X_ENABLE_PIN 19
  843. #define Y_ENABLE_PIN 24
  844. #define Z_ENABLE_PIN 29
  845. #define E_ENABLE_PIN 13
  846. #define TEMP_0_PIN 0 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
  847. #define TEMP_1_PIN 5 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
  848. #define TEMP_2_PIN -1
  849. #define SDPOWER -1
  850. #define SDSS 4
  851. #define HEATER_2_PIN -1
  852. #endif
  853. /****************************************************************************************
  854. * Open Motion controller with enable based extruders
  855. *
  856. * ATMega644
  857. *
  858. * +---\/---+
  859. * (D 0) PB0 1| |40 PA0 (AI 0 / D31)
  860. * (D 1) PB1 2| |39 PA1 (AI 1 / D30)
  861. * INT2 (D 2) PB2 3| |38 PA2 (AI 2 / D29)
  862. * PWM (D 3) PB3 4| |37 PA3 (AI 3 / D28)
  863. * PWM (D 4) PB4 5| |36 PA4 (AI 4 / D27)
  864. * MOSI (D 5) PB5 6| |35 PA5 (AI 5 / D26)
  865. * MISO (D 6) PB6 7| |34 PA6 (AI 6 / D25)
  866. * SCK (D 7) PB7 8| |33 PA7 (AI 7 / D24)
  867. * RST 9| |32 AREF
  868. * VCC 10| |31 GND
  869. * GND 11| |30 AVCC
  870. * XTAL2 12| |29 PC7 (D 23)
  871. * XTAL1 13| |28 PC6 (D 22)
  872. * RX0 (D 8) PD0 14| |27 PC5 (D 21) TDI
  873. * TX0 (D 9) PD1 15| |26 PC4 (D 20) TDO
  874. * INT0 RX1 (D 10) PD2 16| |25 PC3 (D 19) TMS
  875. * INT1 TX1 (D 11) PD3 17| |24 PC2 (D 18) TCK
  876. * PWM (D 12) PD4 18| |23 PC1 (D 17) SDA
  877. * PWM (D 13) PD5 19| |22 PC0 (D 16) SCL
  878. * PWM (D 14) PD6 20| |21 PD7 (D 15) PWM
  879. * +--------+
  880. *
  881. ****************************************************************************************/
  882. #if MOTHERBOARD == 90 //Alpha OMCA board
  883. #define KNOWN_BOARD 1
  884. #ifndef __AVR_ATmega644__
  885. #error Oops! Make sure you have 'SanguinoA' selected from the 'Tools -> Boards' menu.
  886. #endif
  887. #define X_STEP_PIN 21
  888. #define X_DIR_PIN 20
  889. #define X_ENABLE_PIN 24
  890. #define X_MIN_PIN 0
  891. #define X_MAX_PIN -1
  892. #define Y_STEP_PIN 23
  893. #define Y_DIR_PIN 22
  894. #define Y_ENABLE_PIN 24
  895. #define Y_MIN_PIN 1
  896. #define Y_MAX_PIN -1
  897. #define Z_STEP_PIN 26
  898. #define Z_DIR_PIN 25
  899. #define Z_ENABLE_PIN 24
  900. #define Z_MIN_PIN 2
  901. #define Z_MAX_PIN -1
  902. #define E0_STEP_PIN 28
  903. #define E0_DIR_PIN 27
  904. #define E0_ENABLE_PIN 24
  905. #define E1_STEP_PIN -1 // 19
  906. #define E1_DIR_PIN -1 // 18
  907. #define E1_ENABLE_PIN 24
  908. #define E2_STEP_PIN -1 // 17
  909. #define E2_DIR_PIN -1 // 16
  910. #define E2_ENABLE_PIN 24
  911. #define SDPOWER -1
  912. #define SDSS 11
  913. #define SDCARDDETECT -1 // 10 optional also used as mode pin
  914. #define LED_PIN -1
  915. #define FAN_PIN 3
  916. #define PS_ON_PIN -1
  917. #define KILL_PIN -1
  918. #define HEATER_0_PIN 4
  919. #define HEATER_1_PIN -1 // 12
  920. #define HEATER_2_PIN -1 // 13
  921. #define TEMP_0_PIN 0 //D27 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  922. #define TEMP_1_PIN -1 // 1
  923. #define TEMP_2_PIN -1 // 2
  924. #define HEATER_BED_PIN -1 // 14/15
  925. #define TEMP_BED_PIN -1 // 1,2 or I2C
  926. /* 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) */
  927. #endif
  928. #if MOTHERBOARD == 91 // Final OMCA board -- REF http://sanguino.cc/hardware
  929. #define KNOWN_BOARD 1
  930. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__)
  931. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu. (Final OMCA board)
  932. #endif
  933. #define X_STEP_PIN 26
  934. #define X_DIR_PIN 25
  935. #define X_ENABLE_PIN 10
  936. #define X_MIN_PIN 0
  937. #define X_MAX_PIN -1
  938. #define Y_STEP_PIN 28
  939. #define Y_DIR_PIN 27
  940. #define Y_ENABLE_PIN 10
  941. #define Y_MIN_PIN 1
  942. #define Y_MAX_PIN -1
  943. #define Z_STEP_PIN 23
  944. #define Z_DIR_PIN 22
  945. #define Z_ENABLE_PIN 10
  946. #define Z_MIN_PIN 2
  947. #define Z_MAX_PIN -1
  948. #define E0_STEP_PIN 24
  949. #define E0_DIR_PIN 21
  950. #define E0_ENABLE_PIN 10
  951. /* future proofing */
  952. #define __FS 20
  953. #define __FD 19
  954. #define __GS 18
  955. #define __GD 13
  956. #define UNUSED_PWM 14 /* PWM on LEFT connector */
  957. #define E1_STEP_PIN -1 // 21
  958. #define E1_DIR_PIN -1 // 20
  959. #define E1_ENABLE_PIN -1 // 19
  960. #define E2_STEP_PIN -1 // 21
  961. #define E2_DIR_PIN -1 // 20
  962. #define E2_ENABLE_PIN -1 // 18
  963. #define SDPOWER -1
  964. #define SDSS 11
  965. #define SDCARDDETECT -1 // 10 optional also used as mode pin
  966. #define LED_PIN -1
  967. #define FAN_PIN 14 /* PWM on MIDDLE connector */
  968. #define PS_ON_PIN -1
  969. #define KILL_PIN -1
  970. #define HEATER_0_PIN 3 /*DONE PWM on RIGHT connector */
  971. #define HEATER_1_PIN -1
  972. #define HEATER_2_PIN -1
  973. #define HEATER_1_PIN -1
  974. #define HEATER_2_PIN -1
  975. #define TEMP_0_PIN 0 // ANALOG INPUT NUMBERING
  976. #define TEMP_1_PIN 1 // ANALOG
  977. #define TEMP_2_PIN -1 // 2
  978. #define HEATER_BED_PIN 4
  979. #define TEMP_BED_PIN 2 // 1,2 or I2C
  980. #define I2C_SCL 16
  981. #define I2C_SDA 17
  982. #endif
  983. /****************************************************************************************
  984. * MegaTronics
  985. *
  986. ****************************************************************************************/
  987. #if MOTHERBOARD == 70
  988. #define KNOWN_BOARD 1
  989. //////////////////FIX THIS//////////////
  990. #ifndef __AVR_ATmega2560__
  991. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  992. #endif
  993. #define X_STEP_PIN 26
  994. #define X_DIR_PIN 28
  995. #define X_ENABLE_PIN 24
  996. #define X_MIN_PIN 41
  997. #define X_MAX_PIN 37 //2 //Max endstops default to disabled "-1", set to commented value to enable.
  998. #define Y_STEP_PIN 60 // A6
  999. #define Y_DIR_PIN 61 // A7
  1000. #define Y_ENABLE_PIN 22
  1001. #define Y_MIN_PIN 14
  1002. #define Y_MAX_PIN 15 //15
  1003. #define Z_STEP_PIN 54 // A0
  1004. #define Z_DIR_PIN 55 // A1
  1005. #define Z_ENABLE_PIN 56 // A2
  1006. #define Z_MIN_PIN 18
  1007. #define Z_MAX_PIN 19
  1008. #define E0_STEP_PIN 31
  1009. #define E0_DIR_PIN 32
  1010. #define E0_ENABLE_PIN 38
  1011. #define E1_STEP_PIN 34
  1012. #define E1_DIR_PIN 36
  1013. #define E1_ENABLE_PIN 30
  1014. #define SDPOWER -1
  1015. #define SDSS 53
  1016. #define LED_PIN 13
  1017. #define FAN_PIN 7 // IO pin. Buffer needed
  1018. #define PS_ON_PIN 12
  1019. #define KILL_PIN -1
  1020. #define HEATER_0_PIN 9 // EXTRUDER 1
  1021. #define HEATER_1_PIN 8 // EXTRUDER 2 (FAN On Sprinter)
  1022. #define HEATER_2_PIN -1
  1023. #if TEMP_SENSOR_0 == -1
  1024. #define TEMP_0_PIN 8 // ANALOG NUMBERING
  1025. #else
  1026. #define TEMP_0_PIN 13 // ANALOG NUMBERING
  1027. #endif
  1028. #define TEMP_1_PIN 15 // ANALOG NUMBERING
  1029. #define TEMP_2_PIN -1 // ANALOG NUMBERING
  1030. #define HEATER_BED_PIN 10 // BED
  1031. #define TEMP_BED_PIN 14 // ANALOG NUMBERING
  1032. #define BEEPER 33 // Beeper on AUX-4
  1033. #ifdef ULTRA_LCD
  1034. #ifdef NEWPANEL
  1035. //arduino pin which triggers an piezzo beeper
  1036. #define LCD_PINS_RS 16
  1037. #define LCD_PINS_ENABLE 17
  1038. #define LCD_PINS_D4 23
  1039. #define LCD_PINS_D5 25
  1040. #define LCD_PINS_D6 27
  1041. #define LCD_PINS_D7 29
  1042. //buttons are directly attached using AUX-2
  1043. #define BTN_EN1 37
  1044. #define BTN_EN2 35
  1045. #define BTN_ENC 43 //the click
  1046. #define BLEN_C 2
  1047. #define BLEN_B 1
  1048. #define BLEN_A 0
  1049. #define SDCARDDETECT -1 // Ramps does not use this port
  1050. //encoder rotation values
  1051. #define encrot0 0
  1052. #define encrot1 2
  1053. #define encrot2 3
  1054. #define encrot3 1
  1055. #endif
  1056. #endif //ULTRA_LCD
  1057. #endif
  1058. #ifndef KNOWN_BOARD
  1059. #error Unknown MOTHERBOARD value in configuration.h
  1060. #endif
  1061. //List of pins which to ignore when asked to change by gcode, 0 and 1 are RX and TX, do not mess with those!
  1062. #define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, HEATER_0_PIN,
  1063. #if EXTRUDERS > 1
  1064. #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, HEATER_1_PIN,
  1065. #else
  1066. #define _E1_PINS
  1067. #endif
  1068. #if EXTRUDERS > 2
  1069. #define _E2_PINS E2_STEP_PIN, E2_DIR_PIN, E2_ENABLE_PIN, HEATER_2_PIN,
  1070. #else
  1071. #define _E2_PINS
  1072. #endif
  1073. #ifdef DISABLE_MAX_ENDSTOPS
  1074. #define X_MAX_PIN -1
  1075. #define Y_MAX_PIN -1
  1076. #define Z_MAX_PIN -1
  1077. #endif
  1078. #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, LED_PIN, PS_ON_PIN, \
  1079. HEATER_BED_PIN, FAN_PIN, \
  1080. _E0_PINS _E1_PINS _E2_PINS \
  1081. TEMP_0_PIN, TEMP_1_PIN, TEMP_2_PIN, TEMP_BED_PIN }
  1082. #endif