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

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