My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

pins.h 54KB

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