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 51KB

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