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.

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