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

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