My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850
  1. #ifndef PINS_H
  2. #define PINS_H
  3. #define X_MS1_PIN -1
  4. #define X_MS2_PIN -1
  5. #define Y_MS1_PIN -1
  6. #define Y_MS2_PIN -1
  7. #define Z_MS1_PIN -1
  8. #define Z_MS2_PIN -1
  9. #define E0_MS1_PIN -1
  10. #define E0_MS2_PIN -1
  11. #define E1_MS1_PIN -1
  12. #define E1_MS2_PIN -1
  13. #define DIGIPOTSS_PIN -1
  14. #if MOTHERBOARD == 99
  15. #define KNOWN_BOARD 1
  16. #define X_STEP_PIN 2
  17. #define X_DIR_PIN 3
  18. #define X_ENABLE_PIN -1
  19. #define X_STOP_PIN 16
  20. #define Y_STEP_PIN 5
  21. #define Y_DIR_PIN 6
  22. #define Y_ENABLE_PIN -1
  23. #define Y_STOP_PIN 67
  24. #define Z_STEP_PIN 62
  25. #define Z_DIR_PIN 63
  26. #define Z_ENABLE_PIN -1
  27. #define Z_STOP_PIN 59
  28. #define E0_STEP_PIN 65
  29. #define E0_DIR_PIN 66
  30. #define E0_ENABLE_PIN -1
  31. #define SDPOWER -1
  32. #define SDSS 53
  33. #define LED_PIN -1
  34. #define FAN_PIN -1
  35. #define PS_ON_PIN 9
  36. #define KILL_PIN -1
  37. #define HEATER_0_PIN 13
  38. #define HEATER_1_PIN -1
  39. #define HEATER_2_PIN -1
  40. #define TEMP_0_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  41. #define TEMP_1_PIN -1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  42. #define TEMP_2_PIN -1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  43. #define HEATER_BED_PIN 4
  44. #define TEMP_BED_PIN 10
  45. #endif /* 99 */
  46. /****************************************************************************************
  47. * Gen7 v1.1, v1.2, v1.3 pin assignment
  48. *
  49. ****************************************************************************************/
  50. #if MOTHERBOARD == 12
  51. #define MOTHERBOARD 11
  52. #define GEN7_VERSION 13 // v1.3
  53. #endif
  54. #if MOTHERBOARD == 11
  55. #define KNOWN_BOARD
  56. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
  57. #error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
  58. #endif
  59. #ifndef GEN7_VERSION
  60. #define GEN7_VERSION 12 // v1.x
  61. #endif
  62. //x axis pins
  63. #define X_STEP_PIN 19
  64. #define X_DIR_PIN 18
  65. #define X_ENABLE_PIN 24
  66. #define X_STOP_PIN 7
  67. //y axis pins
  68. #define Y_STEP_PIN 23
  69. #define Y_DIR_PIN 22
  70. #define Y_ENABLE_PIN 24
  71. #define Y_STOP_PIN 5
  72. //z axis pins
  73. #define Z_STEP_PIN 26
  74. #define Z_DIR_PIN 25
  75. #define Z_ENABLE_PIN 24
  76. #define Z_MIN_PIN 1
  77. #define Z_MAX_PIN 0
  78. //extruder pins
  79. #define E0_STEP_PIN 28
  80. #define E0_DIR_PIN 27
  81. #define E0_ENABLE_PIN 24
  82. #define TEMP_0_PIN 1
  83. #define TEMP_1_PIN -1
  84. #define TEMP_2_PIN -1
  85. #define TEMP_BED_PIN 2
  86. #define HEATER_0_PIN 4
  87. #define HEATER_1_PIN -1
  88. #define HEATER_2_PIN -1
  89. #define HEATER_BED_PIN 3
  90. #define KILL_PIN -1
  91. #define SDPOWER -1
  92. #define SDSS -1 // SCL pin of I2C header
  93. #define LED_PIN -1
  94. #if (GEN7_VERSION >= 13)
  95. // Gen7 v1.3 removed the fan pin
  96. #define FAN_PIN -1
  97. #else
  98. #define FAN_PIN 31
  99. #endif
  100. #define PS_ON_PIN 15
  101. //All these generations of Gen7 supply thermistor power
  102. //via PS_ON, so ignore bad thermistor readings
  103. #define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
  104. //our pin for debugging.
  105. #define DEBUG_PIN 0
  106. //our RS485 pins
  107. #define TX_ENABLE_PIN 12
  108. #define RX_ENABLE_PIN 13
  109. #endif
  110. /****************************************************************************************
  111. * Gen7 v1.4 pin assignment
  112. *
  113. ****************************************************************************************/
  114. #if MOTHERBOARD == 13
  115. #define GEN7_VERSION 14 // v1.4
  116. #endif
  117. #if MOTHERBOARD == 13
  118. #define KNOWN_BOARD
  119. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
  120. #error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
  121. #endif
  122. #ifndef GEN7_VERSION
  123. #define GEN7_VERSION 14 // v1.x
  124. #endif
  125. //x axis pins
  126. #define X_STEP_PIN 29
  127. #define X_DIR_PIN 28
  128. #define X_ENABLE_PIN 25
  129. #define X_STOP_PIN 0
  130. //y axis pins
  131. #define Y_STEP_PIN 27
  132. #define Y_DIR_PIN 26
  133. #define Y_ENABLE_PIN 25
  134. #define Y_STOP_PIN 1
  135. //z axis pins
  136. #define Z_STEP_PIN 23
  137. #define Z_DIR_PIN 22
  138. #define Z_ENABLE_PIN 25
  139. #define Z_STOP_PIN 2
  140. //extruder pins
  141. #define E0_STEP_PIN 19
  142. #define E0_DIR_PIN 18
  143. #define E0_ENABLE_PIN 25
  144. #define TEMP_0_PIN 1
  145. #define TEMP_1_PIN -1
  146. #define TEMP_2_PIN -1
  147. #define TEMP_BED_PIN 0
  148. #define HEATER_0_PIN 4
  149. #define HEATER_1_PIN -1
  150. #define HEATER_2_PIN -1
  151. #define HEATER_BED_PIN 3
  152. #define KILL_PIN -1
  153. #define SDPOWER -1
  154. #define SDSS -1 // SCL pin of I2C header
  155. #define LED_PIN -1
  156. #define FAN_PIN -1
  157. #define PS_ON_PIN 15
  158. //our pin for debugging.
  159. #define DEBUG_PIN 0
  160. //our RS485 pins
  161. #define TX_ENABLE_PIN 12
  162. #define RX_ENABLE_PIN 13
  163. #endif
  164. /*******************************************************************************
  165. *********
  166. * Gen7 Alfons3 pin assignment
  167. *
  168. ********************************************************************************
  169. ********/
  170. /* These Pins are assigned for the modified GEN7 Board from Alfons3 Please review the pins and adjust it for your needs*/
  171. #if MOTHERBOARD == 10
  172. #define KNOWN_BOARD
  173. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
  174. #error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
  175. #endif
  176. //x axis pins
  177. #define X_STEP_PIN 21 // different from standard GEN7
  178. #define X_DIR_PIN 20 // different from standard GEN7
  179. #define X_ENABLE_PIN 24
  180. #define X_STOP_PIN 0
  181. //y axis pins
  182. #define Y_STEP_PIN 23
  183. #define Y_DIR_PIN 22
  184. #define Y_ENABLE_PIN 24
  185. #define Y_STOP_PIN 1
  186. //z axis pins
  187. #define Z_STEP_PIN 26
  188. #define Z_DIR_PIN 25
  189. #define Z_ENABLE_PIN 24
  190. #define Z_STOP_PIN 2
  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. #endif
  229. /****************************************************************************************
  230. * Arduino Mega pin assignment
  231. *
  232. ****************************************************************************************/
  233. #if MOTHERBOARD == 3 || MOTHERBOARD == 33 || MOTHERBOARD == 34
  234. #define KNOWN_BOARD 1
  235. //////////////////FIX THIS//////////////
  236. #ifndef __AVR_ATmega1280__
  237. #ifndef __AVR_ATmega2560__
  238. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  239. #endif
  240. #endif
  241. // uncomment one of the following lines for RAMPS v1.3 or v1.0, comment both for v1.2 or 1.1
  242. // #define RAMPS_V_1_3
  243. // #define RAMPS_V_1_0
  244. #if MOTHERBOARD == 33 || MOTHERBOARD == 34
  245. #define LARGE_FLASH true
  246. #define X_STEP_PIN 54
  247. #define X_DIR_PIN 55
  248. #define X_ENABLE_PIN 38
  249. #define X_MIN_PIN 3
  250. #define X_MAX_PIN 2
  251. #define Y_STEP_PIN 60
  252. #define Y_DIR_PIN 61
  253. #define Y_ENABLE_PIN 56
  254. #define Y_MIN_PIN 14
  255. #define Y_MAX_PIN 15
  256. #define Z_STEP_PIN 46
  257. #define Z_DIR_PIN 48
  258. #define Z_ENABLE_PIN 62
  259. #define Z_MIN_PIN 18
  260. #define Z_MAX_PIN 19
  261. #define Z2_STEP_PIN 36
  262. #define Z2_DIR_PIN 34
  263. #define Z2_ENABLE_PIN 30
  264. #define E0_STEP_PIN 26
  265. #define E0_DIR_PIN 28
  266. #define E0_ENABLE_PIN 24
  267. #define E1_STEP_PIN 36
  268. #define E1_DIR_PIN 34
  269. #define E1_ENABLE_PIN 30
  270. #define SDPOWER -1
  271. #define SDSS 53
  272. #define LED_PIN 13
  273. #if MOTHERBOARD == 33
  274. #define FAN_PIN 9 // (Sprinter config)
  275. #else
  276. #define FAN_PIN 4 // IO pin. Buffer needed
  277. #endif
  278. #define PS_ON_PIN 12
  279. #if defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL)
  280. #define KILL_PIN 41
  281. #else
  282. #define KILL_PIN -1
  283. #endif
  284. #define HEATER_0_PIN 10 // EXTRUDER 1
  285. #if MOTHERBOARD == 33
  286. #define HEATER_1_PIN -1
  287. #else
  288. #define HEATER_1_PIN 9 // EXTRUDER 2 (FAN On Sprinter)
  289. #endif
  290. #define HEATER_2_PIN -1
  291. #define TEMP_0_PIN 13 // ANALOG NUMBERING
  292. #define TEMP_1_PIN 15 // ANALOG NUMBERING
  293. #define TEMP_2_PIN -1 // ANALOG NUMBERING
  294. #define HEATER_BED_PIN 8 // BED
  295. #define TEMP_BED_PIN 14 // ANALOG NUMBERING
  296. #ifdef NUM_SERVOS
  297. #define SERVO0_PIN 11
  298. #if NUM_SERVOS > 1
  299. #define SERVO1_PIN 6
  300. #endif
  301. #if NUM_SERVOS > 2
  302. #define SERVO2_PIN 5
  303. #endif
  304. #if NUM_SERVOS > 2
  305. #define SERVO3_PIN 4
  306. #endif
  307. #endif
  308. #ifdef ULTRA_LCD
  309. #ifdef NEWPANEL
  310. #define LCD_PINS_RS 16
  311. #define LCD_PINS_ENABLE 17
  312. #define LCD_PINS_D4 23
  313. #define LCD_PINS_D5 25
  314. #define LCD_PINS_D6 27
  315. #define LCD_PINS_D7 29
  316. #ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
  317. #define BEEPER 37
  318. #define BTN_EN1 31
  319. #define BTN_EN2 33
  320. #define BTN_ENC 35
  321. #define SDCARDDETECT 49
  322. #else
  323. //arduino pin which triggers an piezzo beeper
  324. #define BEEPER 33 // Beeper on AUX-4
  325. //buttons are directly attached using AUX-2
  326. #ifdef REPRAPWORLD_KEYPAD
  327. #define BTN_EN1 64 // encoder
  328. #define BTN_EN2 59 // encoder
  329. #define BTN_ENC 63 // enter button
  330. #define SHIFT_OUT 40 // shift register
  331. #define SHIFT_CLK 44 // shift register
  332. #define SHIFT_LD 42 // shift register
  333. #else
  334. #define BTN_EN1 37
  335. #define BTN_EN2 35
  336. #define BTN_ENC 31 //the click
  337. #endif
  338. #ifdef G3D_PANEL
  339. #define SDCARDDETECT 49
  340. #else
  341. #define SDCARDDETECT -1 // Ramps does not use this port
  342. #endif
  343. #endif
  344. #else //old style panel with shift register
  345. //arduino pin witch triggers an piezzo beeper
  346. #define BEEPER 33 // No Beeper added
  347. //buttons are attached to a shift register
  348. // Not wired this yet
  349. //#define SHIFT_CLK 38
  350. //#define SHIFT_LD 42
  351. //#define SHIFT_OUT 40
  352. //#define SHIFT_EN 17
  353. #define LCD_PINS_RS 16
  354. #define LCD_PINS_ENABLE 17
  355. #define LCD_PINS_D4 23
  356. #define LCD_PINS_D5 25
  357. #define LCD_PINS_D6 27
  358. #define LCD_PINS_D7 29
  359. #endif
  360. #endif //ULTRA_LCD
  361. #else // RAMPS_V_1_1 or RAMPS_V_1_2 as default (MOTHERBOARD == 3)
  362. #define X_STEP_PIN 26
  363. #define X_DIR_PIN 28
  364. #define X_ENABLE_PIN 24
  365. #define X_MIN_PIN 3
  366. #define X_MAX_PIN -1 //2
  367. #define Y_STEP_PIN 38
  368. #define Y_DIR_PIN 40
  369. #define Y_ENABLE_PIN 36
  370. #define Y_MIN_PIN 16
  371. #define Y_MAX_PIN -1 //17
  372. #define Z_STEP_PIN 44
  373. #define Z_DIR_PIN 46
  374. #define Z_ENABLE_PIN 42
  375. #define Z_MIN_PIN 18
  376. #define Z_MAX_PIN -1 //19
  377. #define E0_STEP_PIN 32
  378. #define E0_DIR_PIN 34
  379. #define E0_ENABLE_PIN 30
  380. #define SDPOWER 48
  381. #define SDSS 53
  382. #define LED_PIN 13
  383. #define PS_ON_PIN -1
  384. #define KILL_PIN -1
  385. #ifdef RAMPS_V_1_0 // RAMPS_V_1_0
  386. #define HEATER_0_PIN 12 // RAMPS 1.0
  387. #define HEATER_BED_PIN -1 // RAMPS 1.0
  388. #define FAN_PIN 11 // RAMPS 1.0
  389. #else // RAMPS_V_1_1 or RAMPS_V_1_2
  390. #define HEATER_0_PIN 10 // RAMPS 1.1
  391. #define HEATER_BED_PIN 8 // RAMPS 1.1
  392. #define FAN_PIN 9 // RAMPS 1.1
  393. #endif
  394. #define HEATER_1_PIN -1
  395. #define HEATER_2_PIN -1
  396. #define TEMP_0_PIN 2 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  397. #define TEMP_1_PIN -1
  398. #define TEMP_2_PIN -1
  399. #define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  400. #endif// MOTHERBOARD == 33 || MOTHERBOARD == 34
  401. // SPI for Max6675 Thermocouple
  402. #ifndef SDSUPPORT
  403. // these pins are defined in the SD library if building with SD support
  404. #define MAX_SCK_PIN 52
  405. #define MAX_MISO_PIN 50
  406. #define MAX_MOSI_PIN 51
  407. #define MAX6675_SS 53
  408. #else
  409. #define MAX6675_SS 49
  410. #endif
  411. #endif//MOTHERBOARD == 3 || MOTHERBOARD == 33 || MOTHERBOARD == 34
  412. /****************************************************************************************
  413. * Duemilanove w/ ATMega328P pin assignment
  414. *
  415. ****************************************************************************************/
  416. #if MOTHERBOARD == 4
  417. #define KNOWN_BOARD 1
  418. #ifndef __AVR_ATmega328P__
  419. #error Oops! Make sure you have 'Arduino Duemilanove w/ ATMega328' selected from the 'Tools -> Boards' menu.
  420. #endif
  421. #define X_STEP_PIN 19
  422. #define X_DIR_PIN 18
  423. #define X_ENABLE_PIN -1
  424. #define X_STOP_PIN 17
  425. #define Y_STEP_PIN 10
  426. #define Y_DIR_PIN 7
  427. #define Y_ENABLE_PIN -1
  428. #define Y_STOP_PIN 8
  429. #define Z_STEP_PIN 13
  430. #define Z_DIR_PIN 3
  431. #define Z_ENABLE_PIN 2
  432. #define Z_STOP_PIN 4
  433. #define E0_STEP_PIN 11
  434. #define E0_DIR_PIN 12
  435. #define E0_ENABLE_PIN -1
  436. #define SDPOWER -1
  437. #define SDSS -1
  438. #define LED_PIN -1
  439. #define FAN_PIN 5
  440. #define PS_ON_PIN -1
  441. #define KILL_PIN -1
  442. #define HEATER_0_PIN 6
  443. #define HEATER_1_PIN -1
  444. #define HEATER_2_PIN -1
  445. #define TEMP_0_PIN 0 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  446. #define TEMP_1_PIN -1
  447. #define TEMP_2_PIN -1
  448. #define HEATER_BED_PIN -1
  449. #define TEMP_BED_PIN -1
  450. #endif
  451. /****************************************************************************************
  452. * Gen6 pin assignment
  453. *
  454. ****************************************************************************************/
  455. #if MOTHERBOARD == 5 || MOTHERBOARD == 51
  456. #define KNOWN_BOARD 1
  457. #ifndef __AVR_ATmega644P__
  458. #ifndef __AVR_ATmega1284P__
  459. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
  460. #endif
  461. #endif
  462. //x axis pins
  463. #define X_STEP_PIN 15
  464. #define X_DIR_PIN 18
  465. #define X_ENABLE_PIN 19
  466. #define X_STOP_PIN 20
  467. //y axis pins
  468. #define Y_STEP_PIN 23
  469. #define Y_DIR_PIN 22
  470. #define Y_ENABLE_PIN 24
  471. #define Y_STOP_PIN 25
  472. //z axis pins
  473. #define Z_STEP_PIN 27
  474. #define Z_DIR_PIN 28
  475. #define Z_ENABLE_PIN 29
  476. #define Z_STOP_PIN 30
  477. //extruder pins
  478. #define E0_STEP_PIN 4 //Edited @ EJE Electronics 20100715
  479. #define E0_DIR_PIN 2 //Edited @ EJE Electronics 20100715
  480. #define E0_ENABLE_PIN 3 //Added @ EJE Electronics 20100715
  481. #define TEMP_0_PIN 5 //changed @ rkoeppl 20110410
  482. #define TEMP_1_PIN -1 //changed @ rkoeppl 20110410
  483. #define TEMP_2_PIN -1 //changed @ rkoeppl 20110410
  484. #define HEATER_0_PIN 14 //changed @ rkoeppl 20110410
  485. #define HEATER_1_PIN -1
  486. #define HEATER_2_PIN -1
  487. #if MOTHERBOARD == 5
  488. #define HEATER_BED_PIN -1 //changed @ rkoeppl 20110410
  489. #define TEMP_BED_PIN -1 //changed @ rkoeppl 20110410
  490. #else
  491. #define HEATER_BED_PIN 1 //changed @ rkoeppl 20110410
  492. #define TEMP_BED_PIN 0 //changed @ rkoeppl 20110410
  493. #endif
  494. #define SDPOWER -1
  495. #define SDSS 17
  496. #define LED_PIN -1 //changed @ rkoeppl 20110410
  497. #define FAN_PIN -1 //changed @ rkoeppl 20110410
  498. #define PS_ON_PIN -1 //changed @ rkoeppl 20110410
  499. #define KILL_PIN -1 //changed @ drakelive 20120830
  500. //our pin for debugging.
  501. #define DEBUG_PIN 0
  502. //our RS485 pins
  503. #define TX_ENABLE_PIN 12
  504. #define RX_ENABLE_PIN 13
  505. #endif
  506. /****************************************************************************************
  507. * Sanguinololu pin assignment
  508. *
  509. ****************************************************************************************/
  510. #if MOTHERBOARD == 64
  511. #define STB
  512. #endif
  513. #if MOTHERBOARD == 63
  514. #define MELZI
  515. #endif
  516. #if MOTHERBOARD == 62 || MOTHERBOARD == 63 || MOTHERBOARD == 64
  517. #undef MOTHERBOARD
  518. #define MOTHERBOARD 6
  519. #define SANGUINOLOLU_V_1_2
  520. #endif
  521. #if MOTHERBOARD == 6
  522. #define KNOWN_BOARD 1
  523. #ifndef __AVR_ATmega644P__
  524. #ifndef __AVR_ATmega1284P__
  525. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
  526. #endif
  527. #endif
  528. #define X_STEP_PIN 15
  529. #define X_DIR_PIN 21
  530. #define X_STOP_PIN 18
  531. #define Y_STEP_PIN 22
  532. #define Y_DIR_PIN 23
  533. #define Y_STOP_PIN 19
  534. #define Z_STEP_PIN 3
  535. #define Z_DIR_PIN 2
  536. #define Z_STOP_PIN 20
  537. #define E0_STEP_PIN 1
  538. #define E0_DIR_PIN 0
  539. #define LED_PIN -1
  540. #define FAN_PIN -1
  541. #if FAN_PIN == 12 || FAN_PIN ==13
  542. #define FAN_SOFT_PWM
  543. #endif
  544. #ifdef MELZI
  545. #define LED_PIN 27 /* On some broken versions of the Sanguino libraries the pin definitions are wrong, which then needs LED_PIN as pin 28. But you better upgrade your Sanguino libraries! See #368. */
  546. #define FAN_PIN 4
  547. #endif
  548. #ifdef STB
  549. #define FAN_PIN 4
  550. #endif
  551. #define PS_ON_PIN -1
  552. #define KILL_PIN -1
  553. #define HEATER_0_PIN 13 // (extruder)
  554. #define HEATER_1_PIN -1
  555. #define HEATER_2_PIN -1
  556. #ifdef SANGUINOLOLU_V_1_2
  557. #define HEATER_BED_PIN 12 // (bed)
  558. #define X_ENABLE_PIN 14
  559. #define Y_ENABLE_PIN 14
  560. #define Z_ENABLE_PIN 26
  561. #define E0_ENABLE_PIN 14
  562. #else
  563. #define HEATER_BED_PIN 14 // (bed)
  564. #define X_ENABLE_PIN -1
  565. #define Y_ENABLE_PIN -1
  566. #define Z_ENABLE_PIN -1
  567. #define E0_ENABLE_PIN -1
  568. #endif
  569. #define TEMP_0_PIN 7 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
  570. #define TEMP_1_PIN -1
  571. #define TEMP_2_PIN -1
  572. #define TEMP_BED_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
  573. #define SDPOWER -1
  574. #define SDSS 31
  575. /* On some broken versions of the Sanguino libraries the pin definitions are wrong, which then needs SDSS as pin 24. But you better upgrade your Sanguino libraries! See #368. */
  576. //#define SDSS 24
  577. #ifdef ULTRA_LCD
  578. #ifdef NEWPANEL
  579. //we have no buzzer installed
  580. #define BEEPER -1
  581. //LCD Pins
  582. #ifdef DOGLCD
  583. // Pins for DOGM SPI LCD Support
  584. #define DOGLCD_A0 30
  585. #define DOGLCD_CS 29
  586. // GLCD features
  587. #define LCD_CONTRAST 1
  588. // Uncomment screen orientation
  589. // #define LCD_SCREEN_ROT_0
  590. // #define LCD_SCREEN_ROT_90
  591. #define LCD_SCREEN_ROT_180
  592. // #define LCD_SCREEN_ROT_270
  593. #else // standard Hitachi LCD controller
  594. #define LCD_PINS_RS 4
  595. #define LCD_PINS_ENABLE 17
  596. #define LCD_PINS_D4 30
  597. #define LCD_PINS_D5 29
  598. #define LCD_PINS_D6 28
  599. #define LCD_PINS_D7 27
  600. #endif
  601. //The encoder and click button
  602. #define BTN_EN1 11
  603. #define BTN_EN2 10
  604. #ifdef LCD_I2C_PANELOLU2
  605. #ifdef MELZI
  606. #define BTN_ENC 29 //the click switch
  607. #define SDSS 30 //to use the SD card reader on the Panelolu2 rather than the melzi board
  608. #else
  609. #define BTN_ENC 30 //the click switch
  610. #endif
  611. #else
  612. #define BTN_ENC 16 //the click switch
  613. #endif //Panelolu2
  614. //not connected to a pin
  615. #define SDCARDDETECT -1
  616. #endif //Newpanel
  617. #endif //Ultipanel
  618. #endif
  619. #if MOTHERBOARD == 7
  620. #define KNOWN_BOARD
  621. /*****************************************************************
  622. * Ultimaker pin assignment
  623. ******************************************************************/
  624. #ifndef __AVR_ATmega1280__
  625. #ifndef __AVR_ATmega2560__
  626. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  627. #endif
  628. #endif
  629. #define LARGE_FLASH true
  630. #define X_STEP_PIN 25
  631. #define X_DIR_PIN 23
  632. #define X_MIN_PIN 22
  633. #define X_MAX_PIN 24
  634. #define X_ENABLE_PIN 27
  635. #define Y_STEP_PIN 31
  636. #define Y_DIR_PIN 33
  637. #define Y_MIN_PIN 26
  638. #define Y_MAX_PIN 28
  639. #define Y_ENABLE_PIN 29
  640. #define Z_STEP_PIN 37
  641. #define Z_DIR_PIN 39
  642. #define Z_MIN_PIN 30
  643. #define Z_MAX_PIN 32
  644. #define Z_ENABLE_PIN 35
  645. #define HEATER_BED_PIN 4
  646. #define TEMP_BED_PIN 10
  647. #define HEATER_0_PIN 2
  648. #define TEMP_0_PIN 8
  649. #define HEATER_1_PIN 3
  650. #define TEMP_1_PIN 9
  651. #define HEATER_2_PIN -1
  652. #define TEMP_2_PIN -1
  653. #define E0_STEP_PIN 43
  654. #define E0_DIR_PIN 45
  655. #define E0_ENABLE_PIN 41
  656. #define E1_STEP_PIN 49
  657. #define E1_DIR_PIN 47
  658. #define E1_ENABLE_PIN 48
  659. #define SDPOWER -1
  660. #define SDSS 53
  661. #define LED_PIN 13
  662. #define FAN_PIN 7
  663. #define PS_ON_PIN 12
  664. #define KILL_PIN -1
  665. #define SUICIDE_PIN 54 //PIN that has to be turned on right after start, to keep power flowing.
  666. #ifdef ULTRA_LCD
  667. #ifdef NEWPANEL
  668. //arduino pin witch triggers an piezzo beeper
  669. #define BEEPER 18
  670. #define LCD_PINS_RS 20
  671. #define LCD_PINS_ENABLE 17
  672. #define LCD_PINS_D4 16
  673. #define LCD_PINS_D5 21
  674. #define LCD_PINS_D6 5
  675. #define LCD_PINS_D7 6
  676. //buttons are directly attached
  677. #define BTN_EN1 40
  678. #define BTN_EN2 42
  679. #define BTN_ENC 19 //the click
  680. #define SDCARDDETECT 38
  681. #else //old style panel with shift register
  682. //arduino pin witch triggers an piezzo beeper
  683. #define BEEPER 18
  684. //buttons are attached to a shift register
  685. #define SHIFT_CLK 38
  686. #define SHIFT_LD 42
  687. #define SHIFT_OUT 40
  688. #define SHIFT_EN 17
  689. #define LCD_PINS_RS 16
  690. #define LCD_PINS_ENABLE 5
  691. #define LCD_PINS_D4 6
  692. #define LCD_PINS_D5 21
  693. #define LCD_PINS_D6 20
  694. #define LCD_PINS_D7 19
  695. #define SDCARDDETECT -1
  696. #endif
  697. #endif //ULTRA_LCD
  698. #endif
  699. #if MOTHERBOARD == 71
  700. #define KNOWN_BOARD
  701. /*****************************************************************
  702. * Ultimaker pin assignment (Old electronics)
  703. ******************************************************************/
  704. #ifndef __AVR_ATmega1280__
  705. #ifndef __AVR_ATmega2560__
  706. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  707. #endif
  708. #endif
  709. #define LARGE_FLASH true
  710. #define X_STEP_PIN 25
  711. #define X_DIR_PIN 23
  712. #define X_MIN_PIN 15
  713. #define X_MAX_PIN 14
  714. #define X_ENABLE_PIN 27
  715. #define Y_STEP_PIN 31
  716. #define Y_DIR_PIN 33
  717. #define Y_MIN_PIN 17
  718. #define Y_MAX_PIN 16
  719. #define Y_ENABLE_PIN 29
  720. #define Z_STEP_PIN 37
  721. #define Z_DIR_PIN 39
  722. #define Z_MIN_PIN 19
  723. #define Z_MAX_PIN 18
  724. #define Z_ENABLE_PIN 35
  725. #define HEATER_BED_PIN -1
  726. #define TEMP_BED_PIN -1
  727. #define HEATER_0_PIN 2
  728. #define TEMP_0_PIN 8
  729. #define HEATER_1_PIN 1
  730. #define TEMP_1_PIN 1
  731. #define HEATER_2_PIN -1
  732. #define TEMP_2_PIN -1
  733. #define E0_STEP_PIN 43
  734. #define E0_DIR_PIN 45
  735. #define E0_ENABLE_PIN 41
  736. #define E1_STEP_PIN -1
  737. #define E1_DIR_PIN -1
  738. #define E1_ENABLE_PIN -1
  739. #define SDPOWER -1
  740. #define SDSS -1
  741. #define LED_PIN -1
  742. #define FAN_PIN -1
  743. #define PS_ON_PIN -1
  744. #define KILL_PIN -1
  745. #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing.
  746. #define LCD_PINS_RS 24
  747. #define LCD_PINS_ENABLE 22
  748. #define LCD_PINS_D4 36
  749. #define LCD_PINS_D5 34
  750. #define LCD_PINS_D6 32
  751. #define LCD_PINS_D7 30
  752. #endif
  753. /****************************************************************************************
  754. * RUMBA pin assignment
  755. *
  756. ****************************************************************************************/
  757. #if MOTHERBOARD == 80
  758. #define KNOWN_BOARD 1
  759. #ifndef __AVR_ATmega2560__
  760. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  761. #endif
  762. #define X_STEP_PIN 17
  763. #define X_DIR_PIN 16
  764. #define X_ENABLE_PIN 48
  765. #define X_MIN_PIN 37
  766. #define X_MAX_PIN 36
  767. #define Y_STEP_PIN 54
  768. #define Y_DIR_PIN 47
  769. #define Y_ENABLE_PIN 55
  770. #define Y_MIN_PIN 35
  771. #define Y_MAX_PIN 34
  772. #define Z_STEP_PIN 57
  773. #define Z_DIR_PIN 56
  774. #define Z_ENABLE_PIN 62
  775. #define Z_MIN_PIN 33
  776. #define Z_MAX_PIN 32
  777. #define E0_STEP_PIN 23
  778. #define E0_DIR_PIN 22
  779. #define E0_ENABLE_PIN 24
  780. #define E1_STEP_PIN 26
  781. #define E1_DIR_PIN 25
  782. #define E1_ENABLE_PIN 27
  783. #define E2_STEP_PIN 29
  784. #define E2_DIR_PIN 28
  785. #define E2_ENABLE_PIN 39
  786. #define LED_PIN 13
  787. #define FAN_PIN 7
  788. //additional FAN1 PIN (e.g. useful for electronics fan or light on/off) on PIN 8
  789. #define PS_ON_PIN 45
  790. #define KILL_PIN 46
  791. #if (TEMP_SENSOR_0==0)
  792. #define TEMP_0_PIN -1
  793. #define HEATER_0_PIN -1
  794. #else
  795. #define HEATER_0_PIN 2 // EXTRUDER 1
  796. #if (TEMP_SENSOR_0==-1)
  797. #define TEMP_0_PIN 6 // ANALOG NUMBERING - connector *K1* on RUMBA thermocouple ADD ON is used
  798. #else
  799. #define TEMP_0_PIN 15 // ANALOG NUMBERING - default connector for thermistor *T0* on rumba board is used
  800. #endif
  801. #endif
  802. #if (TEMP_SENSOR_1==0)
  803. #define TEMP_1_PIN -1
  804. #define HEATER_1_PIN -1
  805. #else
  806. #define HEATER_1_PIN 3 // EXTRUDER 2
  807. #if (TEMP_SENSOR_1==-1)
  808. #define TEMP_1_PIN 5 // ANALOG NUMBERING - connector *K2* on RUMBA thermocouple ADD ON is used
  809. #else
  810. #define TEMP_1_PIN 14 // ANALOG NUMBERING - default connector for thermistor *T1* on rumba board is used
  811. #endif
  812. #endif
  813. #if (TEMP_SENSOR_2==0)
  814. #define TEMP_2_PIN -1
  815. #define HEATER_2_PIN -1
  816. #else
  817. #define HEATER_2_PIN 6 // EXTRUDER 3
  818. #if (TEMP_SENSOR_2==-1)
  819. #define TEMP_2_PIN 7 // ANALOG NUMBERING - connector *K3* on RUMBA thermocouple ADD ON is used <-- this can not be used when TEMP_SENSOR_BED is defined as thermocouple
  820. #else
  821. #define TEMP_2_PIN 13 // ANALOG NUMBERING - default connector for thermistor *T2* on rumba board is used
  822. #endif
  823. #endif
  824. //optional for extruder 4 or chamber: #define TEMP_X_PIN 12 // ANALOG NUMBERING - default connector for thermistor *T3* on rumba board is used
  825. //optional FAN1 can be used as 4th heater output: #define HEATER_3_PIN 8 // EXTRUDER 4
  826. #if (TEMP_SENSOR_BED==0)
  827. #define TEMP_BED_PIN -1
  828. #define HEATER_BED_PIN -1
  829. #else
  830. #define HEATER_BED_PIN 9 // BED
  831. #if (TEMP_SENSOR_BED==-1)
  832. #define TEMP_BED_PIN 7 // ANALOG NUMBERING - connector *K3* on RUMBA thermocouple ADD ON is used <-- this can not be used when TEMP_SENSOR_2 is defined as thermocouple
  833. #else
  834. #define TEMP_BED_PIN 11 // ANALOG NUMBERING - default connector for thermistor *THB* on rumba board is used
  835. #endif
  836. #endif
  837. #define SDPOWER -1
  838. #define SDSS 53
  839. #define SDCARDDETECT 49
  840. #define BEEPER 44
  841. #define LCD_PINS_RS 19
  842. #define LCD_PINS_ENABLE 42
  843. #define LCD_PINS_D4 18
  844. #define LCD_PINS_D5 38
  845. #define LCD_PINS_D6 41
  846. #define LCD_PINS_D7 40
  847. #define BTN_EN1 11
  848. #define BTN_EN2 12
  849. #define BTN_ENC 43
  850. #endif //MOTHERBOARD==80
  851. /****************************************************************************************
  852. * Teensylu 0.7 / Printrboard pin assignments (AT90USB1286)
  853. * Requires the Teensyduino software with Teensy++ 2.0 selected in Arduino IDE!
  854. http://www.pjrc.com/teensy/teensyduino.html
  855. * See http://reprap.org/wiki/Printrboard for more info
  856. ****************************************************************************************/
  857. #if MOTHERBOARD == 8 || MOTHERBOARD == 81
  858. #define KNOWN_BOARD 1
  859. #define AT90USB 1286 // Disable MarlinSerial etc.
  860. #ifndef __AVR_AT90USB1286__
  861. #error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
  862. #endif
  863. #define LARGE_FLASH true
  864. #define X_STEP_PIN 0
  865. #define X_DIR_PIN 1
  866. #define X_ENABLE_PIN 39
  867. #define Y_STEP_PIN 2
  868. #define Y_DIR_PIN 3
  869. #define Y_ENABLE_PIN 38
  870. #define Z_STEP_PIN 4
  871. #define Z_DIR_PIN 5
  872. #define Z_ENABLE_PIN 23
  873. #define E0_STEP_PIN 6
  874. #define E0_DIR_PIN 7
  875. #define E0_ENABLE_PIN 19
  876. #define HEATER_0_PIN 21 // Extruder
  877. #define HEATER_1_PIN -1
  878. #define HEATER_2_PIN -1
  879. #define HEATER_BED_PIN 20 // Bed
  880. #define FAN_PIN 22 // Fan
  881. // You may need to change FAN_PIN to 16 because Marlin isn't using fastio.h
  882. // for the fan and Teensyduino uses a different pin mapping.
  883. #if MOTHERBOARD == 8 // Teensylu
  884. #define X_STOP_PIN 13
  885. #define Y_STOP_PIN 14
  886. #define Z_STOP_PIN 15
  887. #define TEMP_0_PIN 7 // Extruder / Analog pin numbering
  888. #define TEMP_BED_PIN 6 // Bed / Analog pin numbering
  889. #else // Printrboard
  890. #define X_STOP_PIN 35
  891. #define Y_STOP_PIN 8
  892. #define Z_STOP_PIN 36
  893. #define TEMP_0_PIN 1 // Extruder / Analog pin numbering
  894. #define TEMP_BED_PIN 0 // Bed / Analog pin numbering
  895. #endif
  896. #define TEMP_1_PIN -1
  897. #define TEMP_2_PIN -1
  898. #define SDPOWER -1
  899. #define SDSS 8
  900. #define LED_PIN -1
  901. #define PS_ON_PIN -1
  902. #define KILL_PIN -1
  903. #define ALARM_PIN -1
  904. #ifndef SDSUPPORT
  905. // these pins are defined in the SD library if building with SD support
  906. #define SCK_PIN 9
  907. #define MISO_PIN 11
  908. #define MOSI_PIN 10
  909. #endif
  910. #endif // MOTHERBOARD == 8 (Teensylu) or 81 (Printrboard)
  911. /****************************************************************************************
  912. * Brainwave 1.0 pin assignments (AT90USB646)
  913. * Requires hardware bundle for Arduino:
  914. https://github.com/unrepentantgeek/brainwave-arduino
  915. ****************************************************************************************/
  916. #if MOTHERBOARD == 82
  917. #define KNOWN_BOARD 1
  918. #define AT90USB 646 // Disable MarlinSerial etc.
  919. #ifndef __AVR_AT90USB646__
  920. #error Oops! Make sure you have 'Brainwave' selected from the 'Tools -> Boards' menu.
  921. #endif
  922. #define X_STEP_PIN 27
  923. #define X_DIR_PIN 29
  924. #define X_ENABLE_PIN 28
  925. #define X_STOP_PIN 7
  926. #define X_ATT_PIN 26
  927. #define Y_STEP_PIN 31
  928. #define Y_DIR_PIN 33
  929. #define Y_ENABLE_PIN 32
  930. #define Y_STOP_PIN 6
  931. #define Y_ATT_PIN 30
  932. #define Z_STEP_PIN 17
  933. #define Z_DIR_PIN 19
  934. #define Z_ENABLE_PIN 18
  935. #define Z_STOP_PIN 5
  936. #define Z_ATT_PIN 16
  937. #define E0_STEP_PIN 21
  938. #define E0_DIR_PIN 23
  939. #define E0_ENABLE_PIN 22
  940. #define E0_ATT_PIN 20
  941. #define HEATER_0_PIN 4 // Extruder
  942. #define HEATER_1_PIN -1
  943. #define HEATER_2_PIN -1
  944. #define HEATER_BED_PIN 38 // Bed
  945. #define FAN_PIN 3 // Fan
  946. #define TEMP_0_PIN 7 // Extruder / Analog pin numbering
  947. #define TEMP_1_PIN -1
  948. #define TEMP_2_PIN -1
  949. #define TEMP_BED_PIN 6 // Bed / Analog pin numbering
  950. #define SDPOWER -1
  951. #define SDSS -1
  952. #define LED_PIN 39
  953. #define PS_ON_PIN -1
  954. #define KILL_PIN -1
  955. #define ALARM_PIN -1
  956. #ifndef SDSUPPORT
  957. // these pins are defined in the SD library if building with SD support
  958. #define SCK_PIN 9
  959. #define MISO_PIN 11
  960. #define MOSI_PIN 10
  961. #endif
  962. #endif // MOTHERBOARD == 82 (Brainwave)
  963. /****************************************************************************************
  964. * Gen3+ pin assignment
  965. *
  966. ****************************************************************************************/
  967. #if MOTHERBOARD == 9
  968. #define MOTHERBOARD 6 /*TODO: Figure out, Why is this done?*/
  969. #define KNOWN_BOARD 1
  970. #ifndef __AVR_ATmega644P__
  971. #ifndef __AVR_ATmega1284P__
  972. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
  973. #endif
  974. #endif
  975. #define X_STEP_PIN 15
  976. #define X_DIR_PIN 18
  977. #define X_STOP_PIN 20
  978. #define Y_STEP_PIN 23
  979. #define Y_DIR_PIN 22
  980. #define Y_STOP_PIN 25
  981. #define Z_STEP_PIN 27
  982. #define Z_DIR_PIN 28
  983. #define Z_STOP_PIN 30
  984. #define E_STEP_PIN 17
  985. #define E_DIR_PIN 21
  986. #define LED_PIN -1
  987. #define FAN_PIN -1
  988. #define PS_ON_PIN 14
  989. #define KILL_PIN -1
  990. #define HEATER_0_PIN 12 // (extruder)
  991. #define HEATER_1_PIN 16 // (bed)
  992. #define X_ENABLE_PIN 19
  993. #define Y_ENABLE_PIN 24
  994. #define Z_ENABLE_PIN 29
  995. #define E_ENABLE_PIN 13
  996. #define TEMP_0_PIN 0 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
  997. #define TEMP_1_PIN 5 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
  998. #define TEMP_2_PIN -1
  999. #define SDPOWER -1
  1000. #define SDSS 4
  1001. #define HEATER_2_PIN -1
  1002. #endif
  1003. /****************************************************************************************
  1004. * Open Motion controller with enable based extruders
  1005. *
  1006. * ATMega644
  1007. *
  1008. * +---\/---+
  1009. * (D 0) PB0 1| |40 PA0 (AI 0 / D31)
  1010. * (D 1) PB1 2| |39 PA1 (AI 1 / D30)
  1011. * INT2 (D 2) PB2 3| |38 PA2 (AI 2 / D29)
  1012. * PWM (D 3) PB3 4| |37 PA3 (AI 3 / D28)
  1013. * PWM (D 4) PB4 5| |36 PA4 (AI 4 / D27)
  1014. * MOSI (D 5) PB5 6| |35 PA5 (AI 5 / D26)
  1015. * MISO (D 6) PB6 7| |34 PA6 (AI 6 / D25)
  1016. * SCK (D 7) PB7 8| |33 PA7 (AI 7 / D24)
  1017. * RST 9| |32 AREF
  1018. * VCC 10| |31 GND
  1019. * GND 11| |30 AVCC
  1020. * XTAL2 12| |29 PC7 (D 23)
  1021. * XTAL1 13| |28 PC6 (D 22)
  1022. * RX0 (D 8) PD0 14| |27 PC5 (D 21) TDI
  1023. * TX0 (D 9) PD1 15| |26 PC4 (D 20) TDO
  1024. * INT0 RX1 (D 10) PD2 16| |25 PC3 (D 19) TMS
  1025. * INT1 TX1 (D 11) PD3 17| |24 PC2 (D 18) TCK
  1026. * PWM (D 12) PD4 18| |23 PC1 (D 17) SDA
  1027. * PWM (D 13) PD5 19| |22 PC0 (D 16) SCL
  1028. * PWM (D 14) PD6 20| |21 PD7 (D 15) PWM
  1029. * +--------+
  1030. *
  1031. ****************************************************************************************/
  1032. #if MOTHERBOARD == 90 //Alpha OMCA board
  1033. #define KNOWN_BOARD 1
  1034. #ifndef __AVR_ATmega644__
  1035. #error Oops! Make sure you have 'SanguinoA' selected from the 'Tools -> Boards' menu.
  1036. #endif
  1037. #define X_STEP_PIN 21
  1038. #define X_DIR_PIN 20
  1039. #define X_ENABLE_PIN 24
  1040. #define X_STOP_PIN 0
  1041. #define Y_STEP_PIN 23
  1042. #define Y_DIR_PIN 22
  1043. #define Y_ENABLE_PIN 24
  1044. #define Y_STOP_PIN 1
  1045. #define Z_STEP_PIN 26
  1046. #define Z_DIR_PIN 25
  1047. #define Z_ENABLE_PIN 24
  1048. #define Z_STOP_PIN 2
  1049. #define E0_STEP_PIN 28
  1050. #define E0_DIR_PIN 27
  1051. #define E0_ENABLE_PIN 24
  1052. #define E1_STEP_PIN -1 // 19
  1053. #define E1_DIR_PIN -1 // 18
  1054. #define E1_ENABLE_PIN 24
  1055. #define E2_STEP_PIN -1 // 17
  1056. #define E2_DIR_PIN -1 // 16
  1057. #define E2_ENABLE_PIN 24
  1058. #define SDPOWER -1
  1059. #define SDSS 11
  1060. #define SDCARDDETECT -1 // 10 optional also used as mode pin
  1061. #define LED_PIN -1
  1062. #define FAN_PIN 3
  1063. #define PS_ON_PIN -1
  1064. #define KILL_PIN -1
  1065. #define HEATER_0_PIN 4
  1066. #define HEATER_1_PIN -1 // 12
  1067. #define HEATER_2_PIN -1 // 13
  1068. #define TEMP_0_PIN 0 //D27 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  1069. #define TEMP_1_PIN -1 // 1
  1070. #define TEMP_2_PIN -1 // 2
  1071. #define HEATER_BED_PIN -1 // 14/15
  1072. #define TEMP_BED_PIN -1 // 1,2 or I2C
  1073. /* 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) */
  1074. #endif
  1075. #if MOTHERBOARD == 91 // Final OMCA board -- REF http://sanguino.cc/hardware
  1076. #define KNOWN_BOARD 1
  1077. #if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__)
  1078. #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu. (Final OMCA board)
  1079. #endif
  1080. #define X_STEP_PIN 26
  1081. #define X_DIR_PIN 25
  1082. #define X_ENABLE_PIN 10
  1083. #define X_STOP_PIN 0
  1084. #define Y_STEP_PIN 28
  1085. #define Y_DIR_PIN 27
  1086. #define Y_ENABLE_PIN 10
  1087. #define Y_STOP_PIN 1
  1088. #define Z_STEP_PIN 23
  1089. #define Z_DIR_PIN 22
  1090. #define Z_ENABLE_PIN 10
  1091. #define Z_STOP_PIN 2
  1092. #define E0_STEP_PIN 24
  1093. #define E0_DIR_PIN 21
  1094. #define E0_ENABLE_PIN 10
  1095. /* future proofing */
  1096. #define __FS 20
  1097. #define __FD 19
  1098. #define __GS 18
  1099. #define __GD 13
  1100. #define UNUSED_PWM 14 /* PWM on LEFT connector */
  1101. #define E1_STEP_PIN -1 // 21
  1102. #define E1_DIR_PIN -1 // 20
  1103. #define E1_ENABLE_PIN -1 // 19
  1104. #define E2_STEP_PIN -1 // 21
  1105. #define E2_DIR_PIN -1 // 20
  1106. #define E2_ENABLE_PIN -1 // 18
  1107. #define SDPOWER -1
  1108. #define SDSS 11
  1109. #define SDCARDDETECT -1 // 10 optional also used as mode pin
  1110. #define LED_PIN -1
  1111. #define FAN_PIN 14 /* PWM on MIDDLE connector */
  1112. #define PS_ON_PIN -1
  1113. #define KILL_PIN -1
  1114. #define HEATER_0_PIN 3 /*DONE PWM on RIGHT connector */
  1115. #define HEATER_1_PIN -1
  1116. #define HEATER_2_PIN -1
  1117. #define HEATER_1_PIN -1
  1118. #define HEATER_2_PIN -1
  1119. #define TEMP_0_PIN 0 // ANALOG INPUT NUMBERING
  1120. #define TEMP_1_PIN 1 // ANALOG
  1121. #define TEMP_2_PIN -1 // 2
  1122. #define HEATER_BED_PIN 4
  1123. #define TEMP_BED_PIN 2 // 1,2 or I2C
  1124. #define I2C_SCL 16
  1125. #define I2C_SDA 17
  1126. #endif
  1127. #if MOTHERBOARD == 301
  1128. #define KNOWN_BOARD
  1129. /*****************************************************************
  1130. * Rambo Pin Assignments
  1131. ******************************************************************/
  1132. #ifndef __AVR_ATmega2560__
  1133. #error Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu.
  1134. #endif
  1135. #define LARGE_FLASH true
  1136. #define X_STEP_PIN 37
  1137. #define X_DIR_PIN 48
  1138. #define X_MIN_PIN 12
  1139. #define X_MAX_PIN 24
  1140. #define X_ENABLE_PIN 29
  1141. #define X_MS1_PIN 40
  1142. #define X_MS2_PIN 41
  1143. #define Y_STEP_PIN 36
  1144. #define Y_DIR_PIN 49
  1145. #define Y_MIN_PIN 11
  1146. #define Y_MAX_PIN 23
  1147. #define Y_ENABLE_PIN 28
  1148. #define Y_MS1_PIN 69
  1149. #define Y_MS2_PIN 39
  1150. #define Z_STEP_PIN 35
  1151. #define Z_DIR_PIN 47
  1152. #define Z_MIN_PIN 10
  1153. #define Z_MAX_PIN 30
  1154. #define Z_ENABLE_PIN 27
  1155. #define Z_MS1_PIN 68
  1156. #define Z_MS2_PIN 67
  1157. #define HEATER_BED_PIN 3
  1158. #define TEMP_BED_PIN 2
  1159. #define HEATER_0_PIN 9
  1160. #define TEMP_0_PIN 0
  1161. #define HEATER_1_PIN 7
  1162. #define TEMP_1_PIN 1
  1163. #ifdef BARICUDA
  1164. #define HEATER_2_PIN 6
  1165. #else
  1166. #define HEATER_2_PIN -1
  1167. #endif
  1168. #define TEMP_2_PIN -1
  1169. #define E0_STEP_PIN 34
  1170. #define E0_DIR_PIN 43
  1171. #define E0_ENABLE_PIN 26
  1172. #define E0_MS1_PIN 65
  1173. #define E0_MS2_PIN 66
  1174. #define E1_STEP_PIN 33
  1175. #define E1_DIR_PIN 42
  1176. #define E1_ENABLE_PIN 25
  1177. #define E1_MS1_PIN 63
  1178. #define E1_MS2_PIN 64
  1179. #define DIGIPOTSS_PIN 38
  1180. #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
  1181. #define SDPOWER -1
  1182. #define SDSS 53
  1183. #define LED_PIN 13
  1184. #define FAN_PIN 8
  1185. #define PS_ON_PIN 4
  1186. #define KILL_PIN -1
  1187. #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing.
  1188. #endif
  1189. /****************************************************************************************
  1190. * MegaTronics
  1191. *
  1192. ****************************************************************************************/
  1193. #if MOTHERBOARD == 70
  1194. #define KNOWN_BOARD 1
  1195. #ifndef __AVR_ATmega2560__
  1196. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  1197. #endif
  1198. #define LARGE_FLASH true
  1199. #define X_STEP_PIN 26
  1200. #define X_DIR_PIN 28
  1201. #define X_ENABLE_PIN 24
  1202. #define X_MIN_PIN 41
  1203. #define X_MAX_PIN 37
  1204. #define Y_STEP_PIN 60 // A6
  1205. #define Y_DIR_PIN 61 // A7
  1206. #define Y_ENABLE_PIN 22
  1207. #define Y_MIN_PIN 14
  1208. #define Y_MAX_PIN 15
  1209. #define Z_STEP_PIN 54 // A0
  1210. #define Z_DIR_PIN 55 // A1
  1211. #define Z_ENABLE_PIN 56 // A2
  1212. #define Z_MIN_PIN 18
  1213. #define Z_MAX_PIN 19
  1214. #define E0_STEP_PIN 31
  1215. #define E0_DIR_PIN 32
  1216. #define E0_ENABLE_PIN 38
  1217. #define E1_STEP_PIN 34
  1218. #define E1_DIR_PIN 36
  1219. #define E1_ENABLE_PIN 30
  1220. #define SDPOWER -1
  1221. #define SDSS 53
  1222. #define LED_PIN 13
  1223. #define FAN_PIN 7 // IO pin. Buffer needed
  1224. #define PS_ON_PIN 12
  1225. #define KILL_PIN -1
  1226. #define HEATER_0_PIN 9 // EXTRUDER 1
  1227. #define HEATER_1_PIN 8 // EXTRUDER 2 (FAN On Sprinter)
  1228. #define HEATER_2_PIN -1
  1229. #if TEMP_SENSOR_0 == -1
  1230. #define TEMP_0_PIN 8 // ANALOG NUMBERING
  1231. #else
  1232. #define TEMP_0_PIN 13 // ANALOG NUMBERING
  1233. #endif
  1234. #define TEMP_1_PIN 15 // ANALOG NUMBERING
  1235. #define TEMP_2_PIN -1 // ANALOG NUMBERING
  1236. #define HEATER_BED_PIN 10 // BED
  1237. #define TEMP_BED_PIN 14 // ANALOG NUMBERING
  1238. #define BEEPER 33 // Beeper on AUX-4
  1239. #ifdef ULTRA_LCD
  1240. #ifdef NEWPANEL
  1241. //arduino pin which triggers an piezzo beeper
  1242. #define LCD_PINS_RS 16
  1243. #define LCD_PINS_ENABLE 17
  1244. #define LCD_PINS_D4 23
  1245. #define LCD_PINS_D5 25
  1246. #define LCD_PINS_D6 27
  1247. #define LCD_PINS_D7 29
  1248. //buttons are directly attached using AUX-2
  1249. #define BTN_EN1 59
  1250. #define BTN_EN2 64
  1251. #define BTN_ENC 43 //the click
  1252. #define BLEN_C 2
  1253. #define BLEN_B 1
  1254. #define BLEN_A 0
  1255. #define SDCARDDETECT -1 // Ramps does not use this port
  1256. //encoder rotation values
  1257. #define encrot0 0
  1258. #define encrot1 2
  1259. #define encrot2 3
  1260. #define encrot3 1
  1261. #endif
  1262. #endif //ULTRA_LCD
  1263. #endif
  1264. /****************************************************************************************
  1265. * MegaTronics v2.0
  1266. *
  1267. ****************************************************************************************/
  1268. #if MOTHERBOARD == 701
  1269. #define KNOWN_BOARD 1
  1270. #ifndef __AVR_ATmega2560__
  1271. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  1272. #endif
  1273. #define LARGE_FLASH true
  1274. #define X_STEP_PIN 26
  1275. #define X_DIR_PIN 27
  1276. #define X_ENABLE_PIN 25
  1277. #define X_MIN_PIN 37
  1278. #define X_MAX_PIN 40 //2 //Max endstops default to disabled "-1", set to commented value to enable.
  1279. #define Y_STEP_PIN 4 // A6
  1280. #define Y_DIR_PIN 54 // A0
  1281. #define Y_ENABLE_PIN 5
  1282. #define Y_MIN_PIN 41
  1283. #define Y_MAX_PIN 38 //15
  1284. #define Z_STEP_PIN 56 // A2
  1285. #define Z_DIR_PIN 60 // A6
  1286. #define Z_ENABLE_PIN 55 // A1
  1287. #define Z_MIN_PIN 18
  1288. #define Z_MAX_PIN 19
  1289. #define E0_STEP_PIN 35
  1290. #define E0_DIR_PIN 36
  1291. #define E0_ENABLE_PIN 34
  1292. #define E1_STEP_PIN 29
  1293. #define E1_DIR_PIN 39
  1294. #define E1_ENABLE_PIN 28
  1295. #define E2_STEP_PIN 23
  1296. #define E2_DIR_PIN 24
  1297. #define E2_ENABLE_PIN 22
  1298. #define SDPOWER -1
  1299. #define SDSS 53
  1300. #define LED_PIN 13
  1301. #define FAN_PIN 7
  1302. #define FAN2_PIN 6
  1303. #define PS_ON_PIN 12
  1304. #define KILL_PIN -1
  1305. #define HEATER_0_PIN 9 // EXTRUDER 1
  1306. #define HEATER_1_PIN 8 // EXTRUDER 2
  1307. #define HEATER_2_PIN -1
  1308. #if TEMP_SENSOR_0 == -1
  1309. #define TEMP_0_PIN 4 // ANALOG NUMBERING
  1310. #else
  1311. #define TEMP_0_PIN 13 // ANALOG NUMBERING
  1312. #endif
  1313. #if TEMP_SENSOR_1 == -1
  1314. #define TEMP_1_PIN 8 // ANALOG NUMBERING
  1315. #else
  1316. #define TEMP_1_PIN 15 // ANALOG NUMBERING
  1317. #endif
  1318. #define TEMP_2_PIN -1 // ANALOG NUMBERING
  1319. #define HEATER_BED_PIN 10 // BED
  1320. #if TEMP_SENSOR_BED == -1
  1321. #define TEMP_BED_PIN 8 // ANALOG NUMBERING
  1322. #else
  1323. #define TEMP_BED_PIN 14 // ANALOG NUMBERING
  1324. #endif
  1325. #define BEEPER 64
  1326. #define LCD_PINS_RS 14
  1327. #define LCD_PINS_ENABLE 15
  1328. #define LCD_PINS_D4 30
  1329. #define LCD_PINS_D5 31
  1330. #define LCD_PINS_D6 32
  1331. #define LCD_PINS_D7 33
  1332. //buttons are directly attached using keypad
  1333. #define BTN_EN1 61
  1334. #define BTN_EN2 59
  1335. #define BTN_ENC 43 //the click
  1336. #define BLEN_C 2
  1337. #define BLEN_B 1
  1338. #define BLEN_A 0
  1339. #define SDCARDDETECT -1 // Megatronics does not use this port
  1340. //encoder rotation values
  1341. #define encrot0 0
  1342. #define encrot1 2
  1343. #define encrot2 3
  1344. #define encrot3 1
  1345. #endif
  1346. /****************************************************************************************
  1347. * Minitronics v1.0
  1348. *
  1349. ****************************************************************************************/
  1350. #if MOTHERBOARD == 702
  1351. #define KNOWN_BOARD 1
  1352. #ifndef __AVR_ATmega1281__
  1353. #error Oops! Make sure you have 'Minitronics ' selected from the 'Tools -> Boards' menu.
  1354. #endif
  1355. #define LARGE_FLASH true
  1356. #define X_STEP_PIN 48
  1357. #define X_DIR_PIN 47
  1358. #define X_ENABLE_PIN 49
  1359. #define X_MIN_PIN 5
  1360. #define X_MAX_PIN -1 //2 //Max endstops default to disabled "-1", set to commented value to enable.
  1361. #define Y_STEP_PIN 39 // A6
  1362. #define Y_DIR_PIN 40 // A0
  1363. #define Y_ENABLE_PIN 38
  1364. #define Y_MIN_PIN 2
  1365. #define Y_MAX_PIN -1 //15
  1366. #define Z_STEP_PIN 42 // A2
  1367. #define Z_DIR_PIN 43 // A6
  1368. #define Z_ENABLE_PIN 41 // A1
  1369. #define Z_MIN_PIN 6
  1370. #define Z_MAX_PIN -1
  1371. #define E0_STEP_PIN 45
  1372. #define E0_DIR_PIN 44
  1373. #define E0_ENABLE_PIN 27
  1374. #define E1_STEP_PIN 36
  1375. #define E1_DIR_PIN 35
  1376. #define E1_ENABLE_PIN 37
  1377. #define E2_STEP_PIN -1
  1378. #define E2_DIR_PIN -1
  1379. #define E2_ENABLE_PIN -1
  1380. #define SDPOWER -1
  1381. #define SDSS 16
  1382. #define LED_PIN 46
  1383. #define FAN_PIN 9
  1384. #define FAN2_PIN -1
  1385. #define PS_ON_PIN -1
  1386. #define KILL_PIN -1
  1387. #define HEATER_0_PIN 7 // EXTRUDER 1
  1388. #define HEATER_1_PIN 8 // EXTRUDER 2
  1389. #define HEATER_2_PIN -1
  1390. #define TEMP_0_PIN 7 // ANALOG NUMBERING
  1391. #define TEMP_1_PIN 6 // ANALOG NUMBERING
  1392. #define TEMP_2_PIN -1 // ANALOG NUMBERING
  1393. #define HEATER_BED_PIN 3 // BED
  1394. #define TEMP_BED_PIN 6 // ANALOG NUMBERING
  1395. #define BEEPER -1
  1396. #define LCD_PINS_RS -1
  1397. #define LCD_PINS_ENABLE -1
  1398. #define LCD_PINS_D4 -1
  1399. #define LCD_PINS_D5 -1
  1400. #define LCD_PINS_D6 -1
  1401. #define LCD_PINS_D7 -1
  1402. //buttons are directly attached using keypad
  1403. #define BTN_EN1 -1
  1404. #define BTN_EN2 -1
  1405. #define BTN_ENC -1 //the click
  1406. #define BLEN_C 2
  1407. #define BLEN_B 1
  1408. #define BLEN_A 0
  1409. #define SDCARDDETECT -1 // Megatronics does not use this port
  1410. //encoder rotation values
  1411. #define encrot0 0
  1412. #define encrot1 2
  1413. #define encrot2 3
  1414. #define encrot3 1
  1415. #endif
  1416. #ifndef KNOWN_BOARD
  1417. #error Unknown MOTHERBOARD value in configuration.h
  1418. #endif
  1419. //List of pins which to ignore when asked to change by gcode, 0 and 1 are RX and TX, do not mess with those!
  1420. #define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, HEATER_0_PIN,
  1421. #if EXTRUDERS > 1
  1422. #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, HEATER_1_PIN,
  1423. #else
  1424. #define _E1_PINS
  1425. #endif
  1426. #if EXTRUDERS > 2
  1427. #define _E2_PINS E2_STEP_PIN, E2_DIR_PIN, E2_ENABLE_PIN, HEATER_2_PIN,
  1428. #else
  1429. #define _E2_PINS
  1430. #endif
  1431. #ifdef X_STOP_PIN
  1432. #if X_HOME_DIR < 0
  1433. #define X_MIN_PIN X_STOP_PIN
  1434. #define X_MAX_PIN -1
  1435. #else
  1436. #define X_MIN_PIN -1
  1437. #define X_MAX_PIN X_STOP_PIN
  1438. #endif
  1439. #endif
  1440. #ifdef Y_STOP_PIN
  1441. #if Y_HOME_DIR < 0
  1442. #define Y_MIN_PIN Y_STOP_PIN
  1443. #define Y_MAX_PIN -1
  1444. #else
  1445. #define Y_MIN_PIN -1
  1446. #define Y_MAX_PIN Y_STOP_PIN
  1447. #endif
  1448. #endif
  1449. #ifdef Z_STOP_PIN
  1450. #if Z_HOME_DIR < 0
  1451. #define Z_MIN_PIN Z_STOP_PIN
  1452. #define Z_MAX_PIN -1
  1453. #else
  1454. #define Z_MIN_PIN -1
  1455. #define Z_MAX_PIN Z_STOP_PIN
  1456. #endif
  1457. #endif
  1458. #ifdef DISABLE_MAX_ENDSTOPS
  1459. #define X_MAX_PIN -1
  1460. #define Y_MAX_PIN -1
  1461. #define Z_MAX_PIN -1
  1462. #endif
  1463. #define SENSITIVE_PINS {0, 1, X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, PS_ON_PIN, \
  1464. HEATER_BED_PIN, FAN_PIN, \
  1465. _E0_PINS _E1_PINS _E2_PINS \
  1466. analogInputToDigitalPin(TEMP_0_PIN), analogInputToDigitalPin(TEMP_1_PIN), analogInputToDigitalPin(TEMP_2_PIN), analogInputToDigitalPin(TEMP_BED_PIN) }
  1467. #endif