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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. #include "../core/boards.h"
  24. /**
  25. * Include pins definitions
  26. *
  27. * Pins numbering schemes:
  28. *
  29. * - Digital I/O pin number if used by READ/WRITE macros. (e.g., X_STEP_DIR)
  30. * The FastIO headers map digital pins to their ports and functions.
  31. *
  32. * - Analog Input number if used by analogRead or DAC. (e.g., TEMP_n_PIN)
  33. * These numbers are the same in any pin mapping.
  34. */
  35. #define MAX_EXTRUDERS 6
  36. #if MB(RAMPS_13_EFB, RAMPS_14_EFB, RAMPS_PLUS_EFB, RAMPS_14_RE_ARM_EFB, RAMPS_SMART_EFB, RAMPS_DUO_EFB, RAMPS4DUE_EFB)
  37. #define IS_RAMPS_EFB
  38. #elif MB(RAMPS_13_EEB, RAMPS_14_EEB, RAMPS_PLUS_EEB, RAMPS_14_RE_ARM_EEB, RAMPS_SMART_EEB, RAMPS_DUO_EEB, RAMPS4DUE_EEB)
  39. #define IS_RAMPS_EEB
  40. #elif MB(RAMPS_13_EFF, RAMPS_14_EFF, RAMPS_PLUS_EFF, RAMPS_14_RE_ARM_EFF, RAMPS_SMART_EFF, RAMPS_DUO_EFF, RAMPS4DUE_EFF)
  41. #define IS_RAMPS_EFF
  42. #elif MB(RAMPS_13_EEF, RAMPS_14_EEF, RAMPS_PLUS_EEF, RAMPS_14_RE_ARM_EEF, RAMPS_SMART_EEF, RAMPS_DUO_EEF, RAMPS4DUE_EEF)
  43. #define IS_RAMPS_EEF
  44. #elif MB(RAMPS_13_SF, RAMPS_14_SF, RAMPS_PLUS_SF, RAMPS_14_RE_ARM_SF, RAMPS_SMART_SF, RAMPS_DUO_SF, RAMPS4DUE_SF)
  45. #define IS_RAMPS_SF
  46. #endif
  47. #define HAS_FREE_AUX2_PINS !(BOTH(ULTRA_LCD, NEWPANEL) && ANY(PANEL_ONE, VIKI2, miniVIKI, MINIPANEL, REPRAPWORLD_KEYPAD))
  48. //
  49. // RAMPS 1.3 / 1.4 - ATmega1280, ATmega2560
  50. //
  51. #if MB(RAMPS_OLD)
  52. #include "ramps/pins_RAMPS_OLD.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  53. #elif MB(RAMPS_13_EFB)
  54. #include "ramps/pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  55. #elif MB(RAMPS_13_EEB)
  56. #include "ramps/pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  57. #elif MB(RAMPS_13_EFF)
  58. #include "ramps/pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  59. #elif MB(RAMPS_13_EEF)
  60. #include "ramps/pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  61. #elif MB(RAMPS_13_SF)
  62. #include "ramps/pins_RAMPS_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  63. #elif MB(RAMPS_14_EFB)
  64. #include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  65. #elif MB(RAMPS_14_EEB)
  66. #include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  67. #elif MB(RAMPS_14_EFF)
  68. #include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  69. #elif MB(RAMPS_14_EEF)
  70. #include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  71. #elif MB(RAMPS_14_SF)
  72. #include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  73. #elif MB(RAMPS_PLUS_EFB)
  74. #include "ramps/pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  75. #elif MB(RAMPS_PLUS_EEB)
  76. #include "ramps/pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  77. #elif MB(RAMPS_PLUS_EFF)
  78. #include "ramps/pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  79. #elif MB(RAMPS_PLUS_EEF)
  80. #include "ramps/pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  81. #elif MB(RAMPS_PLUS_SF)
  82. #include "ramps/pins_RAMPS_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  83. //
  84. // RAMPS Derivatives - ATmega1280, ATmega2560
  85. //
  86. #elif MB(3DRAG)
  87. #include "ramps/pins_3DRAG.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  88. #elif MB(K8200)
  89. #include "ramps/pins_K8200.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560 (3DRAG)
  90. #elif MB(K8400)
  91. #include "ramps/pins_K8400.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560 (3DRAG)
  92. #elif MB(K8800)
  93. #include "ramps/pins_K8800.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560 (3DRAG)
  94. #elif MB(BAM_DICE)
  95. #include "ramps/pins_RAMPS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  96. #elif MB(BAM_DICE_DUE)
  97. #include "ramps/pins_BAM_DICE_DUE.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  98. #elif MB(MKS_BASE)
  99. #include "ramps/pins_MKS_BASE.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  100. #elif MB(MKS_BASE_14)
  101. #include "ramps/pins_MKS_BASE_14.h" // ATmega2560 env:megaatmega2560
  102. #elif MB(MKS_BASE_15)
  103. #include "ramps/pins_MKS_BASE_15.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  104. #elif MB(MKS_BASE_HEROIC)
  105. #include "ramps/pins_MKS_BASE_HEROIC.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  106. #elif MB(MKS_GEN_13)
  107. #include "ramps/pins_MKS_GEN_13.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  108. #elif MB(MKS_GEN_L)
  109. #include "ramps/pins_MKS_GEN_L.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  110. #elif MB(KFB_2)
  111. #include "ramps/pins_BIQU_KFB_2.h" // ATmega2560 env:megaatmega2560
  112. #elif MB(ZRIB_V20)
  113. #include "ramps/pins_ZRIB_V20.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560 (MKS_GEN_13)
  114. #elif MB(FELIX2)
  115. #include "ramps/pins_FELIX2.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  116. #elif MB(RIGIDBOARD)
  117. #include "ramps/pins_RIGIDBOARD.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  118. #elif MB(RIGIDBOARD_V2)
  119. #include "ramps/pins_RIGIDBOARD_V2.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  120. #elif MB(SAINSMART_2IN1)
  121. #include "ramps/pins_SAINSMART_2IN1.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  122. #elif MB(ULTIMAKER)
  123. #include "ramps/pins_ULTIMAKER.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  124. #elif MB(ULTIMAKER_OLD)
  125. #include "ramps/pins_ULTIMAKER_OLD.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  126. #elif MB(AZTEEG_X3)
  127. #include "ramps/pins_AZTEEG_X3.h" // ATmega2560 env:megaatmega2560
  128. #elif MB(AZTEEG_X3_PRO)
  129. #include "ramps/pins_AZTEEG_X3_PRO.h" // ATmega2560 env:megaatmega2560
  130. #elif MB(ULTIMAIN_2)
  131. #include "ramps/pins_ULTIMAIN_2.h" // ATmega2560 env:megaatmega2560
  132. #elif MB(FORMBOT_RAPTOR)
  133. #include "ramps/pins_FORMBOT_RAPTOR.h" // ATmega2560 env:megaatmega2560
  134. #elif MB(FORMBOT_RAPTOR2)
  135. #include "ramps/pins_FORMBOT_RAPTOR2.h" // ATmega2560 env:megaatmega2560
  136. #elif MB(FORMBOT_TREX2PLUS)
  137. #include "ramps/pins_FORMBOT_TREX2PLUS.h" // ATmega2560 env:megaatmega2560
  138. #elif MB(FORMBOT_TREX3)
  139. #include "ramps/pins_FORMBOT_TREX3.h" // ATmega2560 env:megaatmega2560
  140. #elif MB(RUMBA)
  141. #include "ramps/pins_RUMBA.h" // ATmega2560 env:megaatmega2560
  142. #elif MB(RUMBA_RAISE3D)
  143. #include "ramps/pins_RUMBA_RAISE3D.h" // ATmega2560 env:megaatmega2560
  144. #elif MB(RL200)
  145. #include "ramps/pins_RL200.h" // ATmega2560 env:megaatmega2560
  146. #elif MB(BQ_ZUM_MEGA_3D)
  147. #include "ramps/pins_BQ_ZUM_MEGA_3D.h" // ATmega2560 env:megaatmega2560
  148. #elif MB(MAKEBOARD_MINI)
  149. #include "ramps/pins_MAKEBOARD_MINI.h" // ATmega2560 env:megaatmega2560
  150. #elif MB(TRIGORILLA_13)
  151. #include "ramps/pins_TRIGORILLA_13.h" // ATmega2560 env:megaatmega2560
  152. #elif MB(TRIGORILLA_14)
  153. #include "ramps/pins_TRIGORILLA_14.h" // ATmega2560 env:megaatmega2560
  154. #elif MB(TRIGORILLA_14_11)
  155. #include "ramps/pins_TRIGORILLA_14.h" // ATmega2560 env:megaatmega2560
  156. #elif MB(RAMPS_ENDER_4)
  157. #include "ramps/pins_RAMPS_ENDER_4.h" // ATmega2560 env:megaatmega2560
  158. #elif MB(RAMPS_CREALITY)
  159. #include "ramps/pins_RAMPS_CREALITY.h" // ATmega2560 env:megaatmega2560
  160. #elif MB(RAMPS_DAGOMA)
  161. #include "ramps/pins_RAMPS_DAGOMA.h" // ATmega2560 env:megaatmega2560
  162. #elif MB(FYSETC_F6_13)
  163. #include "ramps/pins_FYSETC_F6_13.h" // ATmega2560 env:FYSETC_F6_13
  164. #elif MB(DUPLICATOR_I3_PLUS)
  165. #include "ramps/pins_DUPLICATOR_I3_PLUS.h" // ATmega2560 env:megaatmega2560
  166. #elif MB(VORON)
  167. #include "ramps/pins_VORON.h" // ATmega2560 env:megaatmega2560
  168. #elif MB(TRONXY_V3_1_0)
  169. #include "ramps/pins_TRONXY_V3_1_0.h" // ATmega2560 env:megaatmega2560
  170. #elif MB(Z_BOLT_X_SERIES)
  171. #include "ramps/pins_Z_BOLT_X_SERIES.h" // ATmega2560 env:megaatmega2560
  172. #elif MB(TT_OSCAR)
  173. #include "ramps/pins_TT_OSCAR.h" // ATmega2560 env:megaatmega2560
  174. #elif MB(TANGO)
  175. #include "ramps/pins_TANGO.h" // ATmega2560 env:megaatmega2560
  176. #elif MB(MKS_GEN_L_V2)
  177. #include "ramps/pins_MKS_GEN_L_V2.h" // ATmega2560 env:megaatmega2560
  178. //
  179. // RAMBo and derivatives
  180. //
  181. #elif MB(RAMBO)
  182. #include "rambo/pins_RAMBO.h" // ATmega2560 env:rambo
  183. #elif MB(MINIRAMBO, MINIRAMBO_10A)
  184. #include "rambo/pins_MINIRAMBO.h" // ATmega2560 env:rambo
  185. #elif MB(EINSY_RAMBO)
  186. #include "rambo/pins_EINSY_RAMBO.h" // ATmega2560 env:rambo
  187. #elif MB(EINSY_RETRO)
  188. #include "rambo/pins_EINSY_RETRO.h" // ATmega2560 env:rambo
  189. #elif MB(SCOOVO_X9H)
  190. #include "rambo/pins_SCOOVO_X9H.h" // ATmega2560 env:rambo
  191. //
  192. // Other ATmega1280, ATmega2560
  193. //
  194. #elif MB(CNCONTROLS_11)
  195. #include "mega/pins_CNCONTROLS_11.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  196. #elif MB(CNCONTROLS_12)
  197. #include "mega/pins_CNCONTROLS_12.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  198. #elif MB(CNCONTROLS_15)
  199. #include "mega/pins_CNCONTROLS_15.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  200. #elif MB(MIGHTYBOARD_REVE)
  201. #include "mega/pins_MIGHTYBOARD_REVE.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  202. #elif MB(CHEAPTRONIC)
  203. #include "mega/pins_CHEAPTRONIC.h" // ATmega2560 env:megaatmega2560
  204. #elif MB(CHEAPTRONIC_V2)
  205. #include "mega/pins_CHEAPTRONICv2.h" // ATmega2560 env:megaatmega2560
  206. #elif MB(MEGATRONICS)
  207. #include "mega/pins_MEGATRONICS.h" // ATmega2560 env:megaatmega2560
  208. #elif MB(MEGATRONICS_2)
  209. #include "mega/pins_MEGATRONICS_2.h" // ATmega2560 env:megaatmega2560
  210. #elif MB(MEGATRONICS_3, MEGATRONICS_31, MEGATRONICS_32)
  211. #include "mega/pins_MEGATRONICS_3.h" // ATmega2560 env:megaatmega2560
  212. #elif MB(ELEFU_3)
  213. #include "mega/pins_ELEFU_3.h" // ATmega2560 env:megaatmega2560
  214. #elif MB(LEAPFROG)
  215. #include "mega/pins_LEAPFROG.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  216. #elif MB(MEGACONTROLLER)
  217. #include "mega/pins_MEGACONTROLLER.h" // ATmega2560 env:megaatmega2560
  218. #elif MB(GT2560_REV_A)
  219. #include "mega/pins_GT2560_REV_A.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  220. #elif MB(GT2560_REV_A_PLUS)
  221. #include "mega/pins_GT2560_REV_A_PLUS.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  222. #elif MB(GT2560_V3)
  223. #include "mega/pins_GT2560_V3.h" // ATmega2560 env:megaatmega2560
  224. #elif MB(GT2560_V3_MC2)
  225. #include "mega/pins_GT2560_V3_MC2.h" // ATmega2560 env:megaatmega2560
  226. #elif MB(GT2560_V3_A20)
  227. #include "mega/pins_GT2560_V3_A20.h" // ATmega2560 env:megaatmega2560
  228. #elif MB(EINSTART_S)
  229. #include "mega/pins_EINSTART-S.h" // ATmega1280, ATmega2560 env:megaatmega1280 env:megaatmega2560
  230. #elif MB(WANHAO_ONEPLUS)
  231. #include "mega/pins_WANHAO_ONEPLUS.h" // ATmega2560 env:megaatmega2560
  232. #elif MB(OVERLORD)
  233. #include "mega/pins_OVERLORD.h" // ATmega2560 env:megaatmega2560
  234. #elif MB(HJC2560C_REV2)
  235. #include "mega/pins_HJC2560C_REV2.h" // ATmega2560 env:megaatmega2560
  236. //
  237. // ATmega1281, ATmega2561
  238. //
  239. #elif MB(MINITRONICS)
  240. #include "mega/pins_MINITRONICS.h" // ATmega1281 env:megaatmega1280
  241. #elif MB(SILVER_GATE)
  242. #include "mega/pins_SILVER_GATE.h" // ATmega2561 env:megaatmega2560
  243. //
  244. // Sanguinololu and Derivatives - ATmega644P, ATmega1284P
  245. //
  246. #elif MB(SANGUINOLOLU_11)
  247. #include "sanguino/pins_SANGUINOLOLU_11.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  248. #elif MB(SANGUINOLOLU_12)
  249. #include "sanguino/pins_SANGUINOLOLU_12.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  250. #elif MB(MELZI)
  251. #include "sanguino/pins_MELZI.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  252. #elif MB(MELZI_MAKR3D)
  253. #include "sanguino/pins_MELZI_MAKR3D.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  254. #elif MB(MELZI_CREALITY)
  255. #include "sanguino/pins_MELZI_CREALITY.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  256. #elif MB(MELZI_MALYAN)
  257. #include "sanguino/pins_MELZI_MALYAN.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  258. #elif MB(MELZI_TRONXY)
  259. #include "sanguino/pins_MELZI_TRONXY.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  260. #elif MB(STB_11)
  261. #include "sanguino/pins_STB_11.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  262. #elif MB(AZTEEG_X1)
  263. #include "sanguino/pins_AZTEEG_X1.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  264. //
  265. // Other ATmega644P, ATmega644, ATmega1284P
  266. //
  267. #elif MB(GEN3_MONOLITHIC)
  268. #include "sanguino/pins_GEN3_MONOLITHIC.h" // ATmega644P env:sanguino_atmega644p
  269. #elif MB(GEN3_PLUS)
  270. #include "sanguino/pins_GEN3_PLUS.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  271. #elif MB(GEN6)
  272. #include "sanguino/pins_GEN6.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  273. #elif MB(GEN6_DELUXE)
  274. #include "sanguino/pins_GEN6_DELUXE.h" // ATmega644P, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  275. #elif MB(GEN7_CUSTOM)
  276. #include "sanguino/pins_GEN7_CUSTOM.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  277. #elif MB(GEN7_12)
  278. #include "sanguino/pins_GEN7_12.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  279. #elif MB(GEN7_13)
  280. #include "sanguino/pins_GEN7_13.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  281. #elif MB(GEN7_14)
  282. #include "sanguino/pins_GEN7_14.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  283. #elif MB(OMCA_A)
  284. #include "sanguino/pins_OMCA_A.h" // ATmega644 env:sanguino_atmega644p
  285. #elif MB(OMCA)
  286. #include "sanguino/pins_OMCA.h" // ATmega644P, ATmega644 env:sanguino_atmega644p
  287. #elif MB(ANET_10)
  288. #include "sanguino/pins_ANET_10.h" // ATmega1284P env:sanguino_atmega1284p
  289. #elif MB(SETHI)
  290. #include "sanguino/pins_SETHI.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino_atmega644p env:sanguino_atmega1284p
  291. //
  292. // Teensyduino - AT90USB1286, AT90USB1286P
  293. //
  294. #elif MB(TEENSYLU)
  295. #include "teensy2/pins_TEENSYLU.h" // AT90USB1286, AT90USB1286P env:at90usb1286_cdc
  296. #elif MB(PRINTRBOARD)
  297. #include "teensy2/pins_PRINTRBOARD.h" // AT90USB1286 env:at90usb1286_dfu
  298. #elif MB(PRINTRBOARD_REVF)
  299. #include "teensy2/pins_PRINTRBOARD_REVF.h" // AT90USB1286 env:at90usb1286_dfu
  300. #elif MB(BRAINWAVE)
  301. #include "teensy2/pins_BRAINWAVE.h" // AT90USB646 env:at90usb1286_cdc
  302. #elif MB(BRAINWAVE_PRO)
  303. #include "teensy2/pins_BRAINWAVE_PRO.h" // AT90USB1286 env:at90usb1286_cdc
  304. #elif MB(SAV_MKI)
  305. #include "teensy2/pins_SAV_MKI.h" // AT90USB1286 env:at90usb1286_cdc
  306. #elif MB(TEENSY2)
  307. #include "teensy2/pins_TEENSY2.h" // AT90USB1286 env:teensy20
  308. #elif MB(5DPRINT)
  309. #include "teensy2/pins_5DPRINT.h" // AT90USB1286 env:at90usb1286_dfu
  310. //
  311. // LPC1768 ARM Cortex M3
  312. //
  313. #elif MB(RAMPS_14_RE_ARM_EFB)
  314. #include "lpc1768/pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
  315. #elif MB(RAMPS_14_RE_ARM_EEB)
  316. #include "lpc1768/pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
  317. #elif MB(RAMPS_14_RE_ARM_EFF)
  318. #include "lpc1768/pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
  319. #elif MB(RAMPS_14_RE_ARM_EEF)
  320. #include "lpc1768/pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
  321. #elif MB(RAMPS_14_RE_ARM_SF)
  322. #include "lpc1768/pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768
  323. #elif MB(MKS_SBASE)
  324. #include "lpc1768/pins_MKS_SBASE.h" // LPC1768 env:LPC1768
  325. #elif MB(MKS_SGEN_L)
  326. #include "lpc1768/pins_MKS_SGEN_L.h" // LPC1768 env:LPC1768
  327. #elif MB(AZSMZ_MINI)
  328. #include "lpc1768/pins_AZSMZ_MINI.h" // LPC1768 env:LPC1768
  329. #elif MB(BIQU_BQ111_A4)
  330. #include "lpc1768/pins_BIQU_BQ111_A4.h" // LPC1768 env:LPC1768
  331. #elif MB(SELENA_COMPACT)
  332. #include "lpc1768/pins_SELENA_COMPACT.h" // LPC1768 env:LPC1768
  333. #elif MB(BIQU_B300_V1_0)
  334. #include "lpc1768/pins_BIQU_B300_V1.0.h" // LPC1768 env:LPC1768
  335. #elif MB(GMARSH_X6_REV1)
  336. #include "lpc1768/pins_GMARSH_X6_REV1.h" // LPC1768 env:LPC1768
  337. #elif MB(BIGTREE_SKR_V1_1)
  338. #include "lpc1768/pins_BTT_SKR_V1_1.h" // LPC1768 env:LPC1768
  339. #elif MB(BIGTREE_SKR_V1_3)
  340. #include "lpc1768/pins_BTT_SKR_V1_3.h" // LPC1768 env:LPC1768
  341. #elif MB(BIGTREE_SKR_V1_4)
  342. #include "lpc1768/pins_BTT_SKR_V1_4.h" // LPC1768 env:LPC1768
  343. //
  344. // LPC1769 ARM Cortex M3
  345. //
  346. #elif MB(MKS_SGEN)
  347. #include "lpc1769/pins_MKS_SGEN.h" // LPC1769 env:LPC1769
  348. #elif MB(AZTEEG_X5_GT)
  349. #include "lpc1769/pins_AZTEEG_X5_GT.h" // LPC1769 env:LPC1769
  350. #elif MB(AZTEEG_X5_MINI)
  351. #include "lpc1769/pins_AZTEEG_X5_MINI.h" // LPC1769 env:LPC1769
  352. #elif MB(AZTEEG_X5_MINI_WIFI)
  353. #include "lpc1769/pins_AZTEEG_X5_MINI_WIFI.h" // LPC1769 env:LPC1769
  354. #elif MB(COHESION3D_REMIX)
  355. #include "lpc1769/pins_COHESION3D_REMIX.h" // LPC1769 env:LPC1769
  356. #elif MB(COHESION3D_MINI)
  357. #include "lpc1769/pins_COHESION3D_MINI.h" // LPC1769 env:LPC1769
  358. #elif MB(SMOOTHIEBOARD)
  359. #include "lpc1769/pins_SMOOTHIEBOARD.h" // LPC1769 env:LPC1769
  360. #elif MB(TH3D_EZBOARD)
  361. #include "lpc1769/pins_TH3D_EZBOARD.h" // LPC1769 env:LPC1769
  362. //
  363. // Due (ATSAM) boards
  364. //
  365. #elif MB(DUE3DOM)
  366. #include "sam/pins_DUE3DOM.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  367. #elif MB(DUE3DOM_MINI)
  368. #include "sam/pins_DUE3DOM_MINI.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  369. #elif MB(RADDS)
  370. #include "sam/pins_RADDS.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  371. #elif MB(RURAMPS4D_11)
  372. #include "sam/pins_RURAMPS4D_11.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  373. #elif MB(RURAMPS4D_13)
  374. #include "sam/pins_RURAMPS4D_13.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  375. #elif MB(RAMPS_FD_V1)
  376. #include "sam/pins_RAMPS_FD_V1.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  377. #elif MB(RAMPS_FD_V2)
  378. #include "sam/pins_RAMPS_FD_V2.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  379. #elif MB(RAMPS_SMART_EFB)
  380. #include "sam/pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  381. #elif MB(RAMPS_SMART_EEB)
  382. #include "sam/pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  383. #elif MB(RAMPS_SMART_EFF)
  384. #include "sam/pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  385. #elif MB(RAMPS_SMART_EEF)
  386. #include "sam/pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  387. #elif MB(RAMPS_SMART_SF)
  388. #include "sam/pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  389. #elif MB(RAMPS_DUO_EFB)
  390. #include "sam/pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  391. #elif MB(RAMPS_DUO_EEB)
  392. #include "sam/pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  393. #elif MB(RAMPS_DUO_EFF)
  394. #include "sam/pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  395. #elif MB(RAMPS_DUO_EEF)
  396. #include "sam/pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  397. #elif MB(RAMPS_DUO_SF)
  398. #include "sam/pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  399. #elif MB(RAMPS4DUE_EFB)
  400. #include "sam/pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  401. #elif MB(RAMPS4DUE_EEB)
  402. #include "sam/pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  403. #elif MB(RAMPS4DUE_EFF)
  404. #include "sam/pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  405. #elif MB(RAMPS4DUE_EEF)
  406. #include "sam/pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  407. #elif MB(RAMPS4DUE_SF)
  408. #include "sam/pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug
  409. #elif MB(ULTRATRONICS_PRO)
  410. #include "sam/pins_ULTRATRONICS_PRO.h" // SAM3X8E env:DUE env:DUE_debug
  411. #elif MB(ARCHIM1)
  412. #include "sam/pins_ARCHIM1.h" // SAM3X8E env:DUE env:DUE_debug
  413. #elif MB(ARCHIM2)
  414. #include "sam/pins_ARCHIM2.h" // SAM3X8E env:DUE env:DUE_debug
  415. #elif MB(ALLIGATOR)
  416. #include "sam/pins_ALLIGATOR_R2.h" // SAM3X8E env:DUE env:DUE_debug
  417. #elif MB(ADSK)
  418. #include "sam/pins_ADSK.h" // SAM3X8E env:DUE env:DUE_debug
  419. #elif MB(PRINTRBOARD_G2)
  420. #include "sam/pins_PRINTRBOARD_G2.h" // SAM3X8C env:DUE_USB
  421. //
  422. // STM32 ARM Cortex-M3
  423. //
  424. #elif MB(STM32F103RE)
  425. #include "stm32/pins_STM32F1R.h" // STM32F1 env:STM32F103RE
  426. #elif MB(MALYAN_M200)
  427. #include "stm32/pins_MALYAN_M200.h" // STM32F1 env:STM32F103CB_malyan
  428. #elif MB(STM3R_MINI)
  429. #include "stm32/pins_STM3R_MINI.h" // STM32F1 env:STM32F103RE
  430. #elif MB(GTM32_PRO_VB)
  431. #include "stm32/pins_GTM32_PRO_VB.h" // STM32F1 env:STM32F103RE
  432. #elif MB(GTM32_MINI_A30)
  433. #include "stm32/pins_GTM32_MINI_A30.h" // STM32F1 env:STM32F103RE
  434. #elif MB(GTM32_MINI)
  435. #include "stm32/pins_GTM32_MINI.h" // STM32F1 env:STM32F103RE
  436. #elif MB(GTM32_REV_B)
  437. #include "stm32/pins_GTM32_REV_B.h" // STM32F1 env:STM32F103RE
  438. #elif MB(MORPHEUS)
  439. #include "stm32/pins_MORPHEUS.h" // STM32F1 env:STM32F103RE
  440. #elif MB(CHITU3D)
  441. #include "stm32/pins_CHITU3D.h" // STM32F1 env:STM32F103RE
  442. #elif MB(MKS_ROBIN)
  443. #include "stm32/pins_MKS_ROBIN.h" // STM32F1 env:mks_robin
  444. #elif MB(MKS_ROBIN_MINI)
  445. #include "stm32/pins_MKS_ROBIN_MINI.h" // STM32F1 env:mks_robin_mini
  446. #elif MB(MKS_ROBIN_NANO)
  447. #include "stm32/pins_MKS_ROBIN_NANO.h" // STM32F1 env:mks_robin_nano
  448. #elif MB(MKS_ROBIN_LITE)
  449. #include "stm32/pins_MKS_ROBIN_LITE.h" // STM32F1 env:mks_robin_lite
  450. #elif MB(BIGTREE_SKR_MINI_V1_1)
  451. #include "stm32/pins_BTT_SKR_MINI_V1_1.h" // STM32F1 env:STM32F103RC_bigtree env:STM32F103RC_bigtree_512K env:STM32F103RC_bigtree_USB env:STM32F103RC_bigtree_512K_USB
  452. #elif MB(BTT_SKR_MINI_E3_V1_0)
  453. #include "stm32/pins_BTT_SKR_MINI_E3_V1_0.h" // STM32F1 env:STM32F103RC_bigtree env:STM32F103RC_bigtree_512K env:STM32F103RC_bigtree_USB env:STM32F103RC_bigtree_512K_USB
  454. #elif MB(BTT_SKR_MINI_E3_V1_2)
  455. #include "stm32/pins_BTT_SKR_MINI_E3_V1_2.h" // STM32F1 env:STM32F103RC_bigtree env:STM32F103RC_bigtree_512K env:STM32F103RC_bigtree_USB env:STM32F103RC_bigtree_512K_USB
  456. #elif MB(BIGTREE_SKR_E3_DIP)
  457. #include "stm32/pins_BTT_SKR_E3_DIP.h" // STM32F1 env:STM32F103RE_bigtree env:STM32F103RE_bigtree_USB env:STM32F103RC_bigtree env:STM32F103RC_bigtree_512K env:STM32F103RC_bigtree_USB env:STM32F103RC_bigtree_512K_USB
  458. #elif MB(JGAURORA_A5S_A1)
  459. #include "stm32/pins_JGAURORA_A5S_A1.h" // STM32F1 env:jgaurora_a5s_a1
  460. #elif MB(FYSETC_AIO_II)
  461. #include "stm32/pins_FYSETC_AIO_II.h" // STM32F1 env:STM32F103RC_fysetc
  462. #elif MB(FYSETC_CHEETAH)
  463. #include "stm32/pins_FYSETC_CHEETAH.h" // STM32F1 env:STM32F103RC_fysetc
  464. #elif MB(FYSETC_CHEETAH_V12)
  465. #include "stm32/pins_FYSETC_CHEETAH_V12.h" // STM32F1 env:STM32F103RC_fysetc
  466. #elif MB(LONGER3D_LK)
  467. #include "stm32/pins_LONGER3D_LK.h" // STM32F1 env:STM32F103VE_longer
  468. #elif MB(MKS_ROBIN_LITE3)
  469. #include "stm32/pins_MKS_ROBIN_LITE3.h" // STM32F1 env:mks_robin_lite3
  470. #elif MB(MKS_ROBIN_PRO)
  471. #include "stm32/pins_MKS_ROBIN_PRO.h" // STM32F1 env:mks_robin_pro
  472. //
  473. // ARM Cortex-M4F
  474. //
  475. #elif MB(TEENSY31_32)
  476. #include "teensy3/pins_TEENSY31_32.h" // TEENSY31_32 env:teensy31
  477. #elif MB(TEENSY35_36)
  478. #include "teensy3/pins_TEENSY35_36.h" // TEENSY35_36 env:teensy35
  479. //
  480. // STM32 ARM Cortex-M4F
  481. //
  482. #elif MB(BEAST)
  483. #include "stm32/pins_BEAST.h" // STM32F4 env:STM32F4
  484. #elif MB(GENERIC_STM32F4)
  485. #include "stm32/pins_GENERIC_STM32F4.h" // STM32F4 env:STM32F4
  486. #elif MB(ARMED)
  487. #include "stm32/pins_ARMED.h" // STM32F4 env:ARMED
  488. #elif MB(RUMBA32)
  489. #include "stm32/pins_RUMBA32.h" // STM32F4 env:RUMBA32
  490. #elif MB(BLACK_STM32F407VE)
  491. #include "stm32/pins_BLACK_STM32F407VE.h" // STM32F4 env:STM32F407VE_black
  492. #elif MB(STEVAL_3DP001V1)
  493. #include "stm32/pins_STEVAL_3DP001V1.h" // STM32F4 env:STM32F401VE_STEVAL
  494. #elif MB(BIGTREE_SKR_PRO_V1_1)
  495. #include "stm32/pins_BTT_SKR_PRO_V1_1.h" // STM32F4 env:BIGTREE_SKR_PRO
  496. #elif MB(BIGTREE_BTT002_V1_0)
  497. #include "stm32/pins_BTT_BTT002_V1_0.h" // STM32F4 env:BIGTREE_BTT002
  498. #elif MB(LERDGE_K)
  499. #include "stm32/pins_LERDGE_K.h" // STM32F4 env:STM32F4
  500. #elif MB(LERDGE_X)
  501. #include "stm32/pins_LERDGE_X.h" // STM32F4 env:STM32F4
  502. #elif MB(VAKE403D)
  503. #include "stm32/pins_VAKE403D.h" // STM32F4 env:STM32F4
  504. #elif MB(FYSETC_S6)
  505. #include "stm32/pins_FYSETC_S6.h" // STM32F4 env:FYSETC_S6
  506. #elif MB(FLYF407ZG)
  507. #include "stm32/pins_FLYF407ZG.h" // STM32F4 env:FLYF407ZG
  508. #elif MB(MKS_ROBIN2)
  509. #include "pins_MKS_ROBIN2.h" // STM32F4 env:MKS_ROBIN2
  510. //
  511. // ARM Cortex M7
  512. //
  513. #elif MB(THE_BORG)
  514. #include "stm32/pins_THE_BORG.h" // STM32F7 env:STM32F7
  515. #elif MB(REMRAM_V1)
  516. #include "stm32/pins_REMRAM_V1.h" // STM32F7 env:STM32F7
  517. //
  518. // Espressif ESP32
  519. //
  520. #elif MB(ESPRESSIF_ESP32)
  521. #include "esp32/pins_ESP32.h" // ESP32 env:esp32
  522. #elif MB(MRR_ESPA)
  523. #include "esp32/pins_MRR_ESPA.h" // ESP32 env:esp32
  524. #elif MB(MRR_ESPE)
  525. #include "esp32/pins_MRR_ESPE.h" // ESP32 env:esp32
  526. //
  527. // Linux Native Debug board
  528. //
  529. #elif MB(LINUX_RAMPS)
  530. #include "linux/pins_RAMPS_LINUX.h" // Linux env:linux_native
  531. #else
  532. //
  533. // Obsolete or unknown board
  534. //
  535. #define BOARD_MKS_13 -1000
  536. #define BOARD_TRIGORILLA -1001
  537. #define BOARD_RURAMPS4D -1002
  538. #define BOARD_FORMBOT_TREX2 -1003
  539. #define BOARD_BIQU_SKR_V1_1 -1004
  540. #define BOARD_STM32F1R -1005
  541. #define BOARD_STM32F103R -1006
  542. #define BOARD_ESP32 -1007
  543. #define BOARD_BIGTREE_SKR_MINI_E3 -1008
  544. #define BOARD_STEVAL -1009
  545. #if MB(MKS_13)
  546. #error "BOARD_MKS_13 has been renamed BOARD_MKS_GEN_13. Please update your configuration."
  547. #elif MB(TRIGORILLA)
  548. #error "BOARD_TRIGORILLA has been renamed BOARD_TRIGORILLA_13. Please update your configuration."
  549. #elif MB(RURAMPS4D)
  550. #error "BOARD_RURAMPS4D has been renamed BOARD_RURAMPS4D_11. Please update your configuration."
  551. #elif MB(FORMBOT_TREX2)
  552. #error "FORMBOT_TREX2 has been renamed BOARD_FORMBOT_TREX2PLUS. Please update your configuration."
  553. #elif MB(BIQU_SKR_V1_1)
  554. #error "BOARD_BIQU_SKR_V1_1 has been renamed BOARD_BIGTREE_SKR_V1_1. Please update your configuration."
  555. #elif MB(STM32F1R)
  556. #error "BOARD_STM32F1R has been renamed BOARD_STM32F103RE. Please update your configuration."
  557. #elif MB(STM32F103R)
  558. #error "BOARD_STM32F103R has been renamed BOARD_STM32F103RE. Please update your configuration."
  559. #elif MOTHERBOARD == BOARD_ESP32
  560. #error "BOARD_ESP32 has been renamed BOARD_ESPRESSIF_ESP32. Please update your configuration."
  561. #elif MB(BIGTREE_SKR_MINI_E3)
  562. #error "BOARD_BIGTREE_SKR_MINI_E3 has been renamed BOARD_BTT_SKR_MINI_E3_V1_0. Please update your configuration."
  563. #elif MB(STEVAL)
  564. #error "BOARD_STEVAL has been renamed BOARD_STEVAL_3DP001V1. Please update your configuration."
  565. #else
  566. #error "Unknown MOTHERBOARD value set in Configuration.h"
  567. #endif
  568. #undef BOARD_MKS_13
  569. #undef BOARD_TRIGORILLA
  570. #undef BOARD_RURAMPS4D
  571. #undef BOARD_FORMBOT_TREX2
  572. #undef BOARD_BIQU_SKR_V1_1
  573. #undef BOARD_STM32F1R
  574. #undef BOARD_STM32F103R
  575. #undef BOARD_ESP32
  576. #undef BOARD_BIGTREE_SKR_MINI_E3
  577. #undef BOARD_STEVAL
  578. #endif
  579. // Define certain undefined pins
  580. #ifndef X_MS1_PIN
  581. #define X_MS1_PIN -1
  582. #endif
  583. #ifndef X_MS2_PIN
  584. #define X_MS2_PIN -1
  585. #endif
  586. #ifndef X_MS3_PIN
  587. #define X_MS3_PIN -1
  588. #endif
  589. #ifndef Y_MS1_PIN
  590. #define Y_MS1_PIN -1
  591. #endif
  592. #ifndef Y_MS2_PIN
  593. #define Y_MS2_PIN -1
  594. #endif
  595. #ifndef Y_MS3_PIN
  596. #define Y_MS3_PIN -1
  597. #endif
  598. #ifndef Z_MS1_PIN
  599. #define Z_MS1_PIN -1
  600. #endif
  601. #ifndef Z_MS2_PIN
  602. #define Z_MS2_PIN -1
  603. #endif
  604. #ifndef Z_MS3_PIN
  605. #define Z_MS3_PIN -1
  606. #endif
  607. #ifndef E0_MS1_PIN
  608. #define E0_MS1_PIN -1
  609. #endif
  610. #ifndef E0_MS2_PIN
  611. #define E0_MS2_PIN -1
  612. #endif
  613. #ifndef E0_MS3_PIN
  614. #define E0_MS3_PIN -1
  615. #endif
  616. #ifndef E1_MS1_PIN
  617. #define E1_MS1_PIN -1
  618. #endif
  619. #ifndef E1_MS2_PIN
  620. #define E1_MS2_PIN -1
  621. #endif
  622. #ifndef E1_MS3_PIN
  623. #define E1_MS3_PIN -1
  624. #endif
  625. #ifndef E2_MS1_PIN
  626. #define E2_MS1_PIN -1
  627. #endif
  628. #ifndef E2_MS2_PIN
  629. #define E2_MS2_PIN -1
  630. #endif
  631. #ifndef E2_MS3_PIN
  632. #define E2_MS3_PIN -1
  633. #endif
  634. #ifndef E3_MS1_PIN
  635. #define E3_MS1_PIN -1
  636. #endif
  637. #ifndef E3_MS2_PIN
  638. #define E3_MS2_PIN -1
  639. #endif
  640. #ifndef E3_MS3_PIN
  641. #define E3_MS3_PIN -1
  642. #endif
  643. #ifndef E4_MS1_PIN
  644. #define E4_MS1_PIN -1
  645. #endif
  646. #ifndef E4_MS2_PIN
  647. #define E4_MS2_PIN -1
  648. #endif
  649. #ifndef E4_MS3_PIN
  650. #define E4_MS3_PIN -1
  651. #endif
  652. #ifndef E5_MS1_PIN
  653. #define E5_MS1_PIN -1
  654. #endif
  655. #ifndef E5_MS2_PIN
  656. #define E5_MS2_PIN -1
  657. #endif
  658. #ifndef E5_MS3_PIN
  659. #define E5_MS3_PIN -1
  660. #endif
  661. #ifndef E0_STEP_PIN
  662. #define E0_STEP_PIN -1
  663. #endif
  664. #ifndef E0_DIR_PIN
  665. #define E0_DIR_PIN -1
  666. #endif
  667. #ifndef E0_ENABLE_PIN
  668. #define E0_ENABLE_PIN -1
  669. #endif
  670. #ifndef E1_STEP_PIN
  671. #define E1_STEP_PIN -1
  672. #endif
  673. #ifndef E1_DIR_PIN
  674. #define E1_DIR_PIN -1
  675. #endif
  676. #ifndef E1_ENABLE_PIN
  677. #define E1_ENABLE_PIN -1
  678. #endif
  679. #ifndef E2_STEP_PIN
  680. #define E2_STEP_PIN -1
  681. #endif
  682. #ifndef E2_DIR_PIN
  683. #define E2_DIR_PIN -1
  684. #endif
  685. #ifndef E2_ENABLE_PIN
  686. #define E2_ENABLE_PIN -1
  687. #endif
  688. #ifndef E3_STEP_PIN
  689. #define E3_STEP_PIN -1
  690. #endif
  691. #ifndef E3_DIR_PIN
  692. #define E3_DIR_PIN -1
  693. #endif
  694. #ifndef E3_ENABLE_PIN
  695. #define E3_ENABLE_PIN -1
  696. #endif
  697. #ifndef E4_STEP_PIN
  698. #define E4_STEP_PIN -1
  699. #endif
  700. #ifndef E4_DIR_PIN
  701. #define E4_DIR_PIN -1
  702. #endif
  703. #ifndef E4_ENABLE_PIN
  704. #define E4_ENABLE_PIN -1
  705. #endif
  706. #ifndef E5_STEP_PIN
  707. #define E5_STEP_PIN -1
  708. #endif
  709. #ifndef E5_DIR_PIN
  710. #define E5_DIR_PIN -1
  711. #endif
  712. #ifndef E5_ENABLE_PIN
  713. #define E5_ENABLE_PIN -1
  714. #endif
  715. #ifndef X_CS_PIN
  716. #define X_CS_PIN -1
  717. #endif
  718. #ifndef Y_CS_PIN
  719. #define Y_CS_PIN -1
  720. #endif
  721. #ifndef Z_CS_PIN
  722. #define Z_CS_PIN -1
  723. #endif
  724. #ifndef E0_CS_PIN
  725. #define E0_CS_PIN -1
  726. #endif
  727. #ifndef E1_CS_PIN
  728. #define E1_CS_PIN -1
  729. #endif
  730. #ifndef E2_CS_PIN
  731. #define E2_CS_PIN -1
  732. #endif
  733. #ifndef E3_CS_PIN
  734. #define E3_CS_PIN -1
  735. #endif
  736. #ifndef E4_CS_PIN
  737. #define E4_CS_PIN -1
  738. #endif
  739. #ifndef E5_CS_PIN
  740. #define E5_CS_PIN -1
  741. #endif
  742. #ifndef FAN_PIN
  743. #define FAN_PIN -1
  744. #endif
  745. #define FAN0_PIN FAN_PIN
  746. #ifndef FAN1_PIN
  747. #define FAN1_PIN -1
  748. #endif
  749. #ifndef FAN2_PIN
  750. #define FAN2_PIN -1
  751. #endif
  752. #ifndef CONTROLLER_FAN_PIN
  753. #define CONTROLLER_FAN_PIN -1
  754. #endif
  755. #ifndef FANMUX0_PIN
  756. #define FANMUX0_PIN -1
  757. #endif
  758. #ifndef FANMUX1_PIN
  759. #define FANMUX1_PIN -1
  760. #endif
  761. #ifndef FANMUX2_PIN
  762. #define FANMUX2_PIN -1
  763. #endif
  764. #ifndef HEATER_0_PIN
  765. #define HEATER_0_PIN -1
  766. #endif
  767. #ifndef HEATER_1_PIN
  768. #define HEATER_1_PIN -1
  769. #endif
  770. #ifndef HEATER_2_PIN
  771. #define HEATER_2_PIN -1
  772. #endif
  773. #ifndef HEATER_3_PIN
  774. #define HEATER_3_PIN -1
  775. #endif
  776. #ifndef HEATER_4_PIN
  777. #define HEATER_4_PIN -1
  778. #endif
  779. #ifndef HEATER_5_PIN
  780. #define HEATER_5_PIN -1
  781. #endif
  782. #ifndef HEATER_BED_PIN
  783. #define HEATER_BED_PIN -1
  784. #endif
  785. #ifndef TEMP_0_PIN
  786. #define TEMP_0_PIN -1
  787. #endif
  788. #ifndef TEMP_1_PIN
  789. #define TEMP_1_PIN -1
  790. #endif
  791. #ifndef TEMP_2_PIN
  792. #define TEMP_2_PIN -1
  793. #endif
  794. #ifndef TEMP_3_PIN
  795. #define TEMP_3_PIN -1
  796. #endif
  797. #ifndef TEMP_4_PIN
  798. #define TEMP_4_PIN -1
  799. #endif
  800. #ifndef TEMP_5_PIN
  801. #define TEMP_5_PIN -1
  802. #endif
  803. #ifndef TEMP_BED_PIN
  804. #define TEMP_BED_PIN -1
  805. #endif
  806. #ifndef SD_DETECT_PIN
  807. #define SD_DETECT_PIN -1
  808. #endif
  809. #ifndef SDPOWER_PIN
  810. #define SDPOWER_PIN -1
  811. #endif
  812. #ifndef SDSS
  813. #define SDSS -1
  814. #endif
  815. #ifndef LED_PIN
  816. #define LED_PIN -1
  817. #endif
  818. #if DISABLED(PSU_CONTROL) || !defined(PS_ON_PIN)
  819. #undef PS_ON_PIN
  820. #define PS_ON_PIN -1
  821. #endif
  822. #ifndef KILL_PIN
  823. #define KILL_PIN -1
  824. #endif
  825. #ifndef SUICIDE_PIN
  826. #define SUICIDE_PIN -1
  827. #endif
  828. #ifndef SUICIDE_PIN_INVERTING
  829. #define SUICIDE_PIN_INVERTING false
  830. #endif
  831. #ifndef NUM_SERVO_PLUGS
  832. #define NUM_SERVO_PLUGS 4
  833. #endif
  834. //
  835. // Assign auto fan pins if needed
  836. //
  837. #ifndef E0_AUTO_FAN_PIN
  838. #ifdef ORIG_E0_AUTO_FAN_PIN
  839. #define E0_AUTO_FAN_PIN ORIG_E0_AUTO_FAN_PIN
  840. #else
  841. #define E0_AUTO_FAN_PIN -1
  842. #endif
  843. #endif
  844. #ifndef E1_AUTO_FAN_PIN
  845. #ifdef ORIG_E1_AUTO_FAN_PIN
  846. #define E1_AUTO_FAN_PIN ORIG_E1_AUTO_FAN_PIN
  847. #else
  848. #define E1_AUTO_FAN_PIN -1
  849. #endif
  850. #endif
  851. #ifndef E2_AUTO_FAN_PIN
  852. #ifdef ORIG_E2_AUTO_FAN_PIN
  853. #define E2_AUTO_FAN_PIN ORIG_E2_AUTO_FAN_PIN
  854. #else
  855. #define E2_AUTO_FAN_PIN -1
  856. #endif
  857. #endif
  858. #ifndef E3_AUTO_FAN_PIN
  859. #ifdef ORIG_E3_AUTO_FAN_PIN
  860. #define E3_AUTO_FAN_PIN ORIG_E3_AUTO_FAN_PIN
  861. #else
  862. #define E3_AUTO_FAN_PIN -1
  863. #endif
  864. #endif
  865. #ifndef E4_AUTO_FAN_PIN
  866. #ifdef ORIG_E4_AUTO_FAN_PIN
  867. #define E4_AUTO_FAN_PIN ORIG_E4_AUTO_FAN_PIN
  868. #else
  869. #define E4_AUTO_FAN_PIN -1
  870. #endif
  871. #endif
  872. #ifndef E5_AUTO_FAN_PIN
  873. #ifdef ORIG_E5_AUTO_FAN_PIN
  874. #define E5_AUTO_FAN_PIN ORIG_E5_AUTO_FAN_PIN
  875. #else
  876. #define E5_AUTO_FAN_PIN -1
  877. #endif
  878. #endif
  879. #ifndef CHAMBER_AUTO_FAN_PIN
  880. #ifdef ORIG_CHAMBER_AUTO_FAN_PIN
  881. #define CHAMBER_AUTO_FAN_PIN ORIG_CHAMBER_AUTO_FAN_PIN
  882. #else
  883. #define CHAMBER_AUTO_FAN_PIN -1
  884. #endif
  885. #endif
  886. //
  887. // Assign endstop pins for boards with only 3 connectors
  888. //
  889. #ifdef X_STOP_PIN
  890. #if X_HOME_DIR < 0
  891. #define X_MIN_PIN X_STOP_PIN
  892. #define X_MAX_PIN -1
  893. #else
  894. #define X_MIN_PIN -1
  895. #define X_MAX_PIN X_STOP_PIN
  896. #endif
  897. #elif X_HOME_DIR < 0
  898. #define X_STOP_PIN X_MIN_PIN
  899. #else
  900. #define X_STOP_PIN X_MAX_PIN
  901. #endif
  902. #ifdef Y_STOP_PIN
  903. #if Y_HOME_DIR < 0
  904. #define Y_MIN_PIN Y_STOP_PIN
  905. #define Y_MAX_PIN -1
  906. #else
  907. #define Y_MIN_PIN -1
  908. #define Y_MAX_PIN Y_STOP_PIN
  909. #endif
  910. #elif Y_HOME_DIR < 0
  911. #define Y_STOP_PIN Y_MIN_PIN
  912. #else
  913. #define Y_STOP_PIN Y_MAX_PIN
  914. #endif
  915. #ifdef Z_STOP_PIN
  916. #if Z_HOME_DIR < 0
  917. #define Z_MIN_PIN Z_STOP_PIN
  918. #define Z_MAX_PIN -1
  919. #else
  920. #define Z_MIN_PIN -1
  921. #define Z_MAX_PIN Z_STOP_PIN
  922. #endif
  923. #elif Z_HOME_DIR < 0
  924. #define Z_STOP_PIN Z_MIN_PIN
  925. #else
  926. #define Z_STOP_PIN Z_MAX_PIN
  927. #endif
  928. //
  929. // Disable unused endstop / probe pins
  930. //
  931. #if !HAS_CUSTOM_PROBE_PIN
  932. #undef Z_MIN_PROBE_PIN
  933. #define Z_MIN_PROBE_PIN -1
  934. #endif
  935. #if DISABLED(USE_XMAX_PLUG)
  936. #undef X_MAX_PIN
  937. #define X_MAX_PIN -1
  938. #endif
  939. #if DISABLED(USE_YMAX_PLUG)
  940. #undef Y_MAX_PIN
  941. #define Y_MAX_PIN -1
  942. #endif
  943. #if DISABLED(USE_ZMAX_PLUG)
  944. #undef Z_MAX_PIN
  945. #define Z_MAX_PIN -1
  946. #endif
  947. #if DISABLED(USE_XMIN_PLUG)
  948. #undef X_MIN_PIN
  949. #define X_MIN_PIN -1
  950. #endif
  951. #if DISABLED(USE_YMIN_PLUG)
  952. #undef Y_MIN_PIN
  953. #define Y_MIN_PIN -1
  954. #endif
  955. #if DISABLED(USE_ZMIN_PLUG)
  956. #undef Z_MIN_PIN
  957. #define Z_MIN_PIN -1
  958. #endif
  959. #ifndef LCD_PINS_D4
  960. #define LCD_PINS_D4 -1
  961. #endif
  962. #if HAS_CHARACTER_LCD || TOUCH_UI_ULTIPANEL
  963. #ifndef LCD_PINS_D5
  964. #define LCD_PINS_D5 -1
  965. #endif
  966. #ifndef LCD_PINS_D6
  967. #define LCD_PINS_D6 -1
  968. #endif
  969. #ifndef LCD_PINS_D7
  970. #define LCD_PINS_D7 -1
  971. #endif
  972. #endif
  973. /**
  974. * Auto-Assignment for Dual X, Dual Y, Multi-Z Steppers
  975. *
  976. * By default X2 is assigned to the next open E plug
  977. * on the board, then in order, Y2, Z2, Z3. These can be
  978. * overridden in Configuration.h or Configuration_adv.h.
  979. */
  980. #define __EPIN(p,q) E##p##_##q##_PIN
  981. #define _EPIN(p,q) __EPIN(p,q)
  982. // The X2 axis, if any, should be the next open extruder port
  983. #if EITHER(DUAL_X_CARRIAGE, X_DUAL_STEPPER_DRIVERS)
  984. #ifndef X2_STEP_PIN
  985. #define X2_STEP_PIN _EPIN(E_STEPPERS, STEP)
  986. #define X2_DIR_PIN _EPIN(E_STEPPERS, DIR)
  987. #define X2_ENABLE_PIN _EPIN(E_STEPPERS, ENABLE)
  988. #if E_STEPPERS >= MAX_EXTRUDERS || !PIN_EXISTS(X2_STEP)
  989. #error "No E stepper plug left for X2!"
  990. #endif
  991. #endif
  992. #ifndef X2_MS1_PIN
  993. #define X2_MS1_PIN _EPIN(E_STEPPERS, MS1)
  994. #endif
  995. #ifndef X2_MS2_PIN
  996. #define X2_MS2_PIN _EPIN(E_STEPPERS, MS2)
  997. #endif
  998. #ifndef X2_MS3_PIN
  999. #define X2_MS3_PIN _EPIN(E_STEPPERS, MS3)
  1000. #endif
  1001. #if AXIS_HAS_SPI(X2) && !defined(X2_CS_PIN)
  1002. #define X2_CS_PIN _EPIN(E_STEPPERS, CS)
  1003. #endif
  1004. #if AXIS_HAS_UART(X2)
  1005. #ifndef X2_SERIAL_TX_PIN
  1006. #define X2_SERIAL_TX_PIN _EPIN(E_STEPPERS, SERIAL_TX)
  1007. #endif
  1008. #ifndef X2_SERIAL_RX_PIN
  1009. #define X2_SERIAL_RX_PIN _EPIN(E_STEPPERS, SERIAL_RX)
  1010. #endif
  1011. #endif
  1012. #define Y2_E_INDEX INCREMENT(E_STEPPERS)
  1013. #else
  1014. #define Y2_E_INDEX E_STEPPERS
  1015. #endif
  1016. #ifndef X2_CS_PIN
  1017. #define X2_CS_PIN -1
  1018. #endif
  1019. #ifndef X2_MS1_PIN
  1020. #define X2_MS1_PIN -1
  1021. #endif
  1022. #ifndef X2_MS2_PIN
  1023. #define X2_MS2_PIN -1
  1024. #endif
  1025. #ifndef X2_MS3_PIN
  1026. #define X2_MS3_PIN -1
  1027. #endif
  1028. // The Y2 axis, if any, should be the next open extruder port
  1029. #if ENABLED(Y_DUAL_STEPPER_DRIVERS)
  1030. #ifndef Y2_STEP_PIN
  1031. #define Y2_STEP_PIN _EPIN(Y2_E_INDEX, STEP)
  1032. #define Y2_DIR_PIN _EPIN(Y2_E_INDEX, DIR)
  1033. #define Y2_ENABLE_PIN _EPIN(Y2_E_INDEX, ENABLE)
  1034. #if Y2_E_INDEX >= MAX_EXTRUDERS || !PIN_EXISTS(Y2_STEP)
  1035. #error "No E stepper plug left for Y2!"
  1036. #endif
  1037. #endif
  1038. #ifndef Y2_MS1_PIN
  1039. #define Y2_MS1_PIN _EPIN(Y2_E_INDEX, MS1)
  1040. #endif
  1041. #ifndef Y2_MS2_PIN
  1042. #define Y2_MS2_PIN _EPIN(Y2_E_INDEX, MS2)
  1043. #endif
  1044. #ifndef Y2_MS3_PIN
  1045. #define Y2_MS3_PIN _EPIN(Y2_E_INDEX, MS3)
  1046. #endif
  1047. #if AXIS_HAS_SPI(Y2) && !defined(Y2_CS_PIN)
  1048. #define Y2_CS_PIN _EPIN(Y2_E_INDEX, CS)
  1049. #endif
  1050. #if AXIS_HAS_UART(Y2)
  1051. #ifndef Y2_SERIAL_TX_PIN
  1052. #define Y2_SERIAL_TX_PIN _EPIN(Y2_E_INDEX, SERIAL_TX)
  1053. #endif
  1054. #ifndef Y2_SERIAL_RX_PIN
  1055. #define Y2_SERIAL_RX_PIN _EPIN(Y2_E_INDEX, SERIAL_RX)
  1056. #endif
  1057. #endif
  1058. #define Z2_E_INDEX INCREMENT(Y2_E_INDEX)
  1059. #else
  1060. #define Z2_E_INDEX Y2_E_INDEX
  1061. #endif
  1062. #ifndef Y2_CS_PIN
  1063. #define Y2_CS_PIN -1
  1064. #endif
  1065. #ifndef Y2_MS1_PIN
  1066. #define Y2_MS1_PIN -1
  1067. #endif
  1068. #ifndef Y2_MS2_PIN
  1069. #define Y2_MS2_PIN -1
  1070. #endif
  1071. #ifndef Y2_MS3_PIN
  1072. #define Y2_MS3_PIN -1
  1073. #endif
  1074. // The Z2 axis, if any, should be the next open extruder port
  1075. #if Z_MULTI_STEPPER_DRIVERS
  1076. #ifndef Z2_STEP_PIN
  1077. #define Z2_STEP_PIN _EPIN(Z2_E_INDEX, STEP)
  1078. #define Z2_DIR_PIN _EPIN(Z2_E_INDEX, DIR)
  1079. #define Z2_ENABLE_PIN _EPIN(Z2_E_INDEX, ENABLE)
  1080. #if Z2_E_INDEX >= MAX_EXTRUDERS || !PIN_EXISTS(Z2_STEP)
  1081. #error "No E stepper plug left for Z2!"
  1082. #endif
  1083. #endif
  1084. #ifndef Z2_MS1_PIN
  1085. #define Z2_MS1_PIN _EPIN(Z2_E_INDEX, MS1)
  1086. #endif
  1087. #ifndef Z2_MS2_PIN
  1088. #define Z2_MS2_PIN _EPIN(Z2_E_INDEX, MS2)
  1089. #endif
  1090. #ifndef Z2_MS3_PIN
  1091. #define Z2_MS3_PIN _EPIN(Z2_E_INDEX, MS3)
  1092. #endif
  1093. #if AXIS_HAS_SPI(Z2) && !defined(Z2_CS_PIN)
  1094. #define Z2_CS_PIN _EPIN(Z2_E_INDEX, CS)
  1095. #endif
  1096. #if AXIS_HAS_UART(Z2)
  1097. #ifndef Z2_SERIAL_TX_PIN
  1098. #define Z2_SERIAL_TX_PIN _EPIN(Z2_E_INDEX, SERIAL_TX)
  1099. #endif
  1100. #ifndef Z2_SERIAL_RX_PIN
  1101. #define Z2_SERIAL_RX_PIN _EPIN(Z2_E_INDEX, SERIAL_RX)
  1102. #endif
  1103. #endif
  1104. #define Z3_E_INDEX INCREMENT(Z2_E_INDEX)
  1105. #else
  1106. #define Z3_E_INDEX Z2_E_INDEX
  1107. #endif
  1108. #ifndef Z2_CS_PIN
  1109. #define Z2_CS_PIN -1
  1110. #endif
  1111. #ifndef Z2_MS1_PIN
  1112. #define Z2_MS1_PIN -1
  1113. #endif
  1114. #ifndef Z2_MS2_PIN
  1115. #define Z2_MS2_PIN -1
  1116. #endif
  1117. #ifndef Z2_MS3_PIN
  1118. #define Z2_MS3_PIN -1
  1119. #endif
  1120. #if ENABLED(Z_TRIPLE_STEPPER_DRIVERS)
  1121. #ifndef Z3_STEP_PIN
  1122. #define Z3_STEP_PIN _EPIN(Z3_E_INDEX, STEP)
  1123. #define Z3_DIR_PIN _EPIN(Z3_E_INDEX, DIR)
  1124. #define Z3_ENABLE_PIN _EPIN(Z3_E_INDEX, ENABLE)
  1125. #if Z3_E_INDEX >= MAX_EXTRUDERS || !PIN_EXISTS(Z3_STEP)
  1126. #error "No E stepper plug left for Z3!"
  1127. #endif
  1128. #endif
  1129. #if AXIS_HAS_SPI(Z3)
  1130. #ifndef Z3_CS_PIN
  1131. #define Z3_CS_PIN _EPIN(Z3_E_INDEX, CS)
  1132. #endif
  1133. #endif
  1134. #ifndef Z3_MS1_PIN
  1135. #define Z3_MS1_PIN _EPIN(Z3_E_INDEX, MS1)
  1136. #endif
  1137. #ifndef Z3_MS2_PIN
  1138. #define Z3_MS2_PIN _EPIN(Z3_E_INDEX, MS2)
  1139. #endif
  1140. #ifndef Z3_MS3_PIN
  1141. #define Z3_MS3_PIN _EPIN(Z3_E_INDEX, MS3)
  1142. #endif
  1143. #if AXIS_HAS_UART(Z3)
  1144. #ifndef Z3_SERIAL_TX_PIN
  1145. #define Z3_SERIAL_TX_PIN _EPIN(Z3_E_INDEX, SERIAL_TX)
  1146. #endif
  1147. #ifndef Z3_SERIAL_RX_PIN
  1148. #define Z3_SERIAL_RX_PIN _EPIN(Z3_E_INDEX, SERIAL_RX)
  1149. #endif
  1150. #endif
  1151. #endif
  1152. #ifndef Z3_CS_PIN
  1153. #define Z3_CS_PIN -1
  1154. #endif
  1155. #ifndef Z3_MS1_PIN
  1156. #define Z3_MS1_PIN -1
  1157. #endif
  1158. #ifndef Z3_MS2_PIN
  1159. #define Z3_MS2_PIN -1
  1160. #endif
  1161. #ifndef Z3_MS3_PIN
  1162. #define Z3_MS3_PIN -1
  1163. #endif
  1164. #if HAS_GRAPHICAL_LCD
  1165. #if !defined(ST7920_DELAY_1) && defined(BOARD_ST7920_DELAY_1)
  1166. #define ST7920_DELAY_1 BOARD_ST7920_DELAY_1
  1167. #endif
  1168. #if !defined(ST7920_DELAY_2) && defined(BOARD_ST7920_DELAY_2)
  1169. #define ST7920_DELAY_2 BOARD_ST7920_DELAY_2
  1170. #endif
  1171. #if !defined(ST7920_DELAY_3) && defined(BOARD_ST7920_DELAY_3)
  1172. #define ST7920_DELAY_3 BOARD_ST7920_DELAY_3
  1173. #endif
  1174. #else
  1175. #undef ST7920_DELAY_1
  1176. #undef ST7920_DELAY_2
  1177. #undef ST7920_DELAY_3
  1178. #endif
  1179. #undef HAS_FREE_AUX2_PINS