My Marlin configs for Fabrikator Mini and CTC i3 Pro B
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

pins_BTT_SKR_PRO_common.h 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 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 <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. #include "env_validate.h"
  24. #define USES_DIAG_JUMPERS
  25. // If you have the BigTreeTech driver expansion module, enable BTT_MOTOR_EXPANSION
  26. // https://github.com/bigtreetech/BTT-Expansion-module/tree/master/BTT%20EXP-MOT
  27. //#define BTT_MOTOR_EXPANSION
  28. #if BOTH(HAS_WIRED_LCD, BTT_MOTOR_EXPANSION)
  29. #if EITHER(CR10_STOCKDISPLAY, ENDER2_STOCKDISPLAY)
  30. #define EXP_MOT_USE_EXP2_ONLY 1
  31. #else
  32. #error "You can't use both an LCD and a Motor Expansion Module on EXP1/EXP2 at the same time."
  33. #endif
  34. #endif
  35. // Use one of these or SDCard-based Emulation will be used
  36. #if NO_EEPROM_SELECTED
  37. //#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
  38. #define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
  39. #endif
  40. #if ENABLED(FLASH_EEPROM_EMULATION)
  41. // Decrease delays and flash wear by spreading writes across the
  42. // 128 kB sector allocated for EEPROM emulation.
  43. #define FLASH_EEPROM_LEVELING
  44. #endif
  45. #define HAS_OTG_USB_HOST_SUPPORT // USB Flash Drive support
  46. //
  47. // Servos
  48. //
  49. #define SERVO0_PIN PA1
  50. #define SERVO1_PIN PC9
  51. //
  52. // Trinamic Stallguard pins
  53. //
  54. #define X_DIAG_PIN PB10 // X-
  55. #define Y_DIAG_PIN PE12 // Y-
  56. #define Z_DIAG_PIN PG8 // Z-
  57. #define E0_DIAG_PIN PE15 // E0
  58. #define E1_DIAG_PIN PE10 // E1
  59. #define E2_DIAG_PIN PG5 // E2
  60. //
  61. // Limit Switches
  62. //
  63. #ifdef X_STALL_SENSITIVITY
  64. #define X_STOP_PIN X_DIAG_PIN
  65. #if X_HOME_TO_MIN
  66. #define X_MAX_PIN PE15 // E0
  67. #else
  68. #define X_MIN_PIN PE15 // E0
  69. #endif
  70. #else
  71. #define X_MIN_PIN PB10 // X-
  72. #define X_MAX_PIN PE15 // E0
  73. #endif
  74. #ifdef Y_STALL_SENSITIVITY
  75. #define Y_STOP_PIN Y_DIAG_PIN
  76. #if Y_HOME_TO_MIN
  77. #define Y_MAX_PIN PE10 // E1
  78. #else
  79. #define Y_MIN_PIN PE10 // E1
  80. #endif
  81. #else
  82. #define Y_MIN_PIN PE12 // Y-
  83. #define Y_MAX_PIN PE10 // E1
  84. #endif
  85. #ifdef Z_STALL_SENSITIVITY
  86. #define Z_STOP_PIN Z_DIAG_PIN
  87. #if Z_HOME_TO_MIN
  88. #define Z_MAX_PIN PG5 // E2
  89. #else
  90. #define Z_MIN_PIN PG5 // E2
  91. #endif
  92. #else
  93. #define Z_MIN_PIN PG8 // Z-
  94. #define Z_MAX_PIN PG5 // E2
  95. #endif
  96. //
  97. // Z Probe must be this pin
  98. //
  99. #ifndef Z_MIN_PROBE_PIN
  100. #define Z_MIN_PROBE_PIN PA2
  101. #endif
  102. //
  103. // Filament Runout Sensor
  104. //
  105. #ifndef FIL_RUNOUT_PIN
  106. #define FIL_RUNOUT_PIN PE15
  107. #endif
  108. #ifndef FIL_RUNOUT2_PIN
  109. #define FIL_RUNOUT2_PIN PE10
  110. #endif
  111. #ifndef FIL_RUNOUT3_PIN
  112. #define FIL_RUNOUT3_PIN PG5
  113. #endif
  114. //
  115. // Steppers
  116. //
  117. #define X_STEP_PIN PE9
  118. #define X_DIR_PIN PF1
  119. #define X_ENABLE_PIN PF2
  120. #ifndef X_CS_PIN
  121. #define X_CS_PIN PA15
  122. #endif
  123. #define Y_STEP_PIN PE11
  124. #define Y_DIR_PIN PE8
  125. #define Y_ENABLE_PIN PD7
  126. #ifndef Y_CS_PIN
  127. #define Y_CS_PIN PB8
  128. #endif
  129. #define Z_STEP_PIN PE13
  130. #define Z_DIR_PIN PC2
  131. #define Z_ENABLE_PIN PC0
  132. #ifndef Z_CS_PIN
  133. #define Z_CS_PIN PB9
  134. #endif
  135. #define E0_STEP_PIN PE14
  136. #define E0_DIR_PIN PA0
  137. #define E0_ENABLE_PIN PC3
  138. #ifndef E0_CS_PIN
  139. #define E0_CS_PIN PB3
  140. #endif
  141. #define E1_STEP_PIN PD15
  142. #define E1_DIR_PIN PE7
  143. #define E1_ENABLE_PIN PA3
  144. #ifndef E1_CS_PIN
  145. #define E1_CS_PIN PG15
  146. #endif
  147. #define E2_STEP_PIN PD13
  148. #define E2_DIR_PIN PG9
  149. #define E2_ENABLE_PIN PF0
  150. #ifndef E2_CS_PIN
  151. #define E2_CS_PIN PG12
  152. #endif
  153. //
  154. // Software SPI pins for TMC2130 stepper drivers
  155. //
  156. #if ENABLED(TMC_USE_SW_SPI)
  157. #ifndef TMC_SW_MOSI
  158. #define TMC_SW_MOSI PC12
  159. #endif
  160. #ifndef TMC_SW_MISO
  161. #define TMC_SW_MISO PC11
  162. #endif
  163. #ifndef TMC_SW_SCK
  164. #define TMC_SW_SCK PC10
  165. #endif
  166. #endif
  167. #if HAS_TMC_UART
  168. /**
  169. * TMC2208/TMC2209 stepper drivers
  170. *
  171. * Hardware serial communication ports.
  172. * If undefined software serial is used according to the pins below
  173. */
  174. //#define X_HARDWARE_SERIAL Serial1
  175. //#define X2_HARDWARE_SERIAL Serial1
  176. //#define Y_HARDWARE_SERIAL Serial1
  177. //#define Y2_HARDWARE_SERIAL Serial1
  178. //#define Z_HARDWARE_SERIAL Serial1
  179. //#define Z2_HARDWARE_SERIAL Serial1
  180. //#define E0_HARDWARE_SERIAL Serial1
  181. //#define E1_HARDWARE_SERIAL Serial1
  182. //#define E2_HARDWARE_SERIAL Serial1
  183. //#define E3_HARDWARE_SERIAL Serial1
  184. //#define E4_HARDWARE_SERIAL Serial1
  185. #define X_SERIAL_TX_PIN PC13
  186. #define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
  187. #define Y_SERIAL_TX_PIN PE3
  188. #define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
  189. #define Z_SERIAL_TX_PIN PE1
  190. #define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
  191. #define E0_SERIAL_TX_PIN PD4
  192. #define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
  193. #define E1_SERIAL_TX_PIN PD1
  194. #define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
  195. #define E2_SERIAL_TX_PIN PD6
  196. #define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
  197. // Reduce baud rate to improve software serial reliability
  198. #define TMC_BAUD_RATE 19200
  199. #endif
  200. //
  201. // Temperature Sensors
  202. // Use ADC pins without pullup for sensors that don't need a pullup.
  203. //
  204. #if TEMP_SENSOR_0_IS_AD8495 || TEMP_SENSOR_0 == 20
  205. #define TEMP_0_PIN PF8
  206. #else
  207. #define TEMP_0_PIN PF4 // T1 <-> E0
  208. #endif
  209. #if TEMP_SENSOR_1_IS_AD8495 || TEMP_SENSOR_1 == 20
  210. #define TEMP_1_PIN PF9
  211. #else
  212. #define TEMP_1_PIN PF5 // T2 <-> E1
  213. #endif
  214. #if TEMP_SENSOR_2_IS_AD8495 || TEMP_SENSOR_2 == 20
  215. #define TEMP_2_PIN PF10
  216. #else
  217. #define TEMP_2_PIN PF6 // T3 <-> E2
  218. #endif
  219. #if TEMP_SENSOR_BED_IS_AD8495 || TEMP_SENSOR_BED == 20
  220. #define TEMP_BED_PIN PF7
  221. #else
  222. #define TEMP_BED_PIN PF3 // T0 <-> Bed
  223. #endif
  224. #if TEMP_SENSOR_PROBE && !defined(TEMP_PROBE_PIN)
  225. #if TEMP_SENSOR_PROBE_IS_AD8495 || TEMP_SENSOR_PROBE == 20
  226. #if HOTENDS == 2
  227. #define TEMP_PROBE_PIN PF10
  228. #elif HOTENDS < 2
  229. #define TEMP_PROBE_PIN PF9
  230. #endif
  231. #else
  232. #if HOTENDS == 2
  233. #define TEMP_PROBE_PIN TEMP_2_PIN
  234. #elif HOTENDS < 2
  235. #define TEMP_PROBE_PIN TEMP_1_PIN
  236. #endif
  237. #endif
  238. #endif
  239. #if TEMP_SENSOR_CHAMBER && !defined(TEMP_CHAMBER_PIN)
  240. #if TEMP_SENSOR_CHAMBER_IS_AD8495 || TEMP_SENSOR_CHAMBER == 20
  241. #define TEMP_CHAMBER_PIN PF10
  242. #else
  243. #define TEMP_CHAMBER_PIN TEMP_2_PIN
  244. #endif
  245. #endif
  246. //
  247. // Heaters
  248. //
  249. #define HEATER_0_PIN PB1 // Heater0
  250. #define HEATER_1_PIN PD14 // Heater1
  251. #if TEMP_SENSOR_CHAMBER && HOTENDS < 3
  252. #define HEATER_CHAMBER_PIN PB0 // Heater2
  253. #else
  254. #define HEATER_2_PIN PB0 // Heater2
  255. #endif
  256. #define HEATER_BED_PIN PD12 // Hotbed
  257. //
  258. // Fans
  259. //
  260. #define FAN_PIN PC8 // Fan0
  261. #define FAN1_PIN PE5 // Fan1
  262. #ifndef E0_AUTO_FAN_PIN
  263. #define E0_AUTO_FAN_PIN FAN1_PIN
  264. #endif
  265. #if !defined(CONTROLLER_FAN_PIN) && ENABLED(USE_CONTROLLER_FAN) && HOTENDS < 2
  266. #define CONTROLLER_FAN_PIN PE6 // Fan2
  267. #else
  268. #define FAN2_PIN PE6 // Fan2
  269. #endif
  270. //
  271. // Misc. Functions
  272. //
  273. #ifndef SDCARD_CONNECTION
  274. #define SDCARD_CONNECTION ONBOARD
  275. #endif
  276. /** ------ ------
  277. * (BEEPER) PG4 |10 9 | PA8 (BTN_ENC) (MISO) PB14 |10 9 | PB13 (SCK)
  278. * (LCD_EN) PD11 | 8 7 | PD10 (LCD_RS) (BTN_EN1) PG10 | 8 7 | PB12 (SD_SS)
  279. * (LCD_D4) PG2 6 5 | PG3 (LCD_D5) (BTN_EN2) PF11 6 5 | PB15 (MOSI)
  280. * (LCD_D6) PG6 | 4 3 | PG7 (LCD_D7) (SD_DETECT) PF12 | 4 3 | RESET
  281. * GND | 2 1 | 5V GND | 2 1 | --
  282. * ------ ------
  283. * EXP1 EXP2
  284. */
  285. #define EXP1_03_PIN PG7
  286. #define EXP1_04_PIN PG6
  287. #define EXP1_05_PIN PG3
  288. #define EXP1_06_PIN PG2
  289. #define EXP1_07_PIN PD10
  290. #define EXP1_08_PIN PD11
  291. #define EXP1_09_PIN PA8
  292. #define EXP1_10_PIN PG4
  293. #define EXP2_03_PIN -1
  294. #define EXP2_04_PIN PF12
  295. #define EXP2_05_PIN PB15
  296. #define EXP2_06_PIN PF11
  297. #define EXP2_07_PIN PB12
  298. #define EXP2_08_PIN PG10
  299. #define EXP2_09_PIN PB13
  300. #define EXP2_10_PIN PB14
  301. //
  302. // Onboard SD card
  303. // Must use soft SPI because Marlin's default hardware SPI is tied to LCD's EXP2
  304. //
  305. #if SD_CONNECTION_IS(LCD)
  306. #define SD_DETECT_PIN EXP2_04_PIN
  307. #define SDSS EXP2_07_PIN
  308. #elif SD_CONNECTION_IS(ONBOARD)
  309. // The SKR Pro's ONBOARD SD interface is on SPI1.
  310. // Due to a pull resistor on the clock line, it needs to use SPI Data Mode 3 to
  311. // function with Hardware SPI. This is not currently configurable in the HAL,
  312. // so force Software SPI to work around this issue.
  313. #define SOFTWARE_SPI
  314. #define SDSS PA4
  315. #define SD_SCK_PIN PA5
  316. #define SD_MISO_PIN PA6
  317. #define SD_MOSI_PIN PB5
  318. #define SD_DETECT_PIN PB11
  319. #elif SD_CONNECTION_IS(CUSTOM_CABLE)
  320. #error "CUSTOM_CABLE is not a supported SDCARD_CONNECTION for this board"
  321. #endif
  322. #if ENABLED(BTT_MOTOR_EXPANSION)
  323. /** ----- -----
  324. * -- | . . | GND -- | . . | GND
  325. * -- | . . | M1EN M2EN | . . | M3EN
  326. * M1STP | . . M1DIR M1RX | . . M1DIAG
  327. * M2DIR | . . | M2STP M2RX | . . | M2DIAG
  328. * M3DIR | . . | M3STP M3RX | . . | M3DIAG
  329. * ----- -----
  330. * EXP2 EXP1
  331. *
  332. * NB In EXP_MOT_USE_EXP2_ONLY mode EXP1 is not used and M2EN and M3EN need to be jumpered to M1EN
  333. */
  334. // M1 on Driver Expansion Module
  335. #define E3_STEP_PIN EXP2_05_PIN
  336. #define E3_DIR_PIN EXP2_06_PIN
  337. #define E3_ENABLE_PIN EXP2_04_PIN
  338. #if !EXP_MOT_USE_EXP2_ONLY
  339. #define E3_DIAG_PIN EXP1_06_PIN
  340. #define E3_CS_PIN EXP1_05_PIN
  341. #if HAS_TMC_UART
  342. #define E3_SERIAL_TX_PIN EXP1_05_PIN
  343. #define E3_SERIAL_RX_PIN EXP1_05_PIN
  344. #endif
  345. #endif
  346. // M2 on Driver Expansion Module
  347. #define E4_STEP_PIN EXP2_08_PIN
  348. #define E4_DIR_PIN EXP2_07_PIN
  349. #if !EXP_MOT_USE_EXP2_ONLY
  350. #define E4_ENABLE_PIN EXP1_03_PIN
  351. #define E4_DIAG_PIN EXP1_08_PIN
  352. #define E4_CS_PIN EXP1_07_PIN
  353. #if HAS_TMC_UART
  354. #define E4_SERIAL_TX_PIN EXP1_07_PIN
  355. #define E4_SERIAL_RX_PIN EXP1_07_PIN
  356. #endif
  357. #else
  358. #define E4_ENABLE_PIN EXP2_04_PIN
  359. #endif
  360. // M3 on Driver Expansion Module
  361. #define E5_STEP_PIN EXP2_10_PIN
  362. #define E5_DIR_PIN EXP2_09_PIN
  363. #if !EXP_MOT_USE_EXP2_ONLY
  364. #define E5_ENABLE_PIN EXP1_04_PIN
  365. #define E5_DIAG_PIN EXP1_10_PIN
  366. #define E5_CS_PIN EXP1_09_PIN
  367. #if HAS_TMC_UART
  368. #define E5_SERIAL_TX_PIN EXP1_09_PIN
  369. #define E5_SERIAL_RX_PIN EXP1_09_PIN
  370. #endif
  371. #else
  372. #define E5_ENABLE_PIN EXP2_04_PIN
  373. #endif
  374. #endif // BTT_MOTOR_EXPANSION
  375. //
  376. // LCDs and Controllers
  377. //
  378. #if IS_TFTGLCD_PANEL
  379. #if ENABLED(TFTGLCD_PANEL_SPI)
  380. #define TFTGLCD_CS EXP2_08_PIN
  381. #endif
  382. #elif HAS_WIRED_LCD
  383. #define BEEPER_PIN EXP1_10_PIN
  384. #define BTN_ENC EXP1_09_PIN
  385. #if ENABLED(CR10_STOCKDISPLAY)
  386. #define LCD_PINS_RS EXP1_04_PIN
  387. #define BTN_EN1 EXP1_08_PIN
  388. #define BTN_EN2 EXP1_06_PIN
  389. #define LCD_PINS_ENABLE EXP1_03_PIN
  390. #define LCD_PINS_D4 EXP1_05_PIN
  391. #elif ENABLED(MKS_MINI_12864)
  392. #define DOGLCD_A0 EXP1_04_PIN
  393. #define DOGLCD_CS EXP1_05_PIN
  394. #define BTN_EN1 EXP2_08_PIN
  395. #define BTN_EN2 EXP2_06_PIN
  396. #elif ENABLED(WYH_L12864)
  397. #ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
  398. #error "CAUTION! WYH_L12864 requires wiring modifications. See 'pins_BTT_SKR_PRO_common.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
  399. #endif
  400. /**
  401. * 1. Cut the tab off the LCD connector so it can be plugged into the "EXP1" connector the other way.
  402. * 2. Swap the LCD's +5V (Pin2) and GND (Pin1) wires.
  403. *
  404. * !!! If you are unsure, ask for help! Your motherboard may be damaged in some circumstances !!!
  405. *
  406. * The WYH_L12864 connector plug:
  407. *
  408. * BEFORE AFTER
  409. * ------ ------
  410. * -- |10 9 | MOSI -- |10 9 | MOSI
  411. * BTN_ENC | 8 7 | SCK BTN_ENC | 8 7 | SCK
  412. * BTN_EN1 | 6 5 SID BTN_EN1 | 6 5 SID
  413. * BTN_EN2 | 4 3 | CS BTN_EN2 | 4 3 | CS
  414. * 5V | 2 1 | GND GND | 2 1 | 5V
  415. * ------ ------
  416. * LCD LCD
  417. */
  418. #undef BEEPER_PIN
  419. #undef BTN_ENC
  420. #define BTN_EN1 EXP1_06_PIN
  421. #define BTN_EN2 EXP1_04_PIN
  422. #define BTN_ENC EXP1_08_PIN
  423. #define DOGLCD_CS EXP1_03_PIN
  424. #define DOGLCD_A0 EXP1_05_PIN
  425. #define DOGLCD_SCK EXP1_07_PIN
  426. #define DOGLCD_MOSI EXP1_09_PIN
  427. #define LCD_BACKLIGHT_PIN -1
  428. #else
  429. #define LCD_PINS_RS EXP1_07_PIN
  430. #define BTN_EN1 EXP2_08_PIN
  431. #define BTN_EN2 EXP2_06_PIN
  432. #define LCD_PINS_ENABLE EXP1_08_PIN
  433. #define LCD_PINS_D4 EXP1_06_PIN
  434. #if ENABLED(FYSETC_MINI_12864)
  435. #define DOGLCD_CS EXP1_08_PIN
  436. #define DOGLCD_A0 EXP1_07_PIN
  437. //#define LCD_BACKLIGHT_PIN -1
  438. #define LCD_RESET_PIN EXP1_06_PIN // Must be high or open for LCD to operate normally.
  439. #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
  440. #ifndef RGB_LED_R_PIN
  441. #define RGB_LED_R_PIN EXP1_05_PIN
  442. #endif
  443. #ifndef RGB_LED_G_PIN
  444. #define RGB_LED_G_PIN EXP1_04_PIN
  445. #endif
  446. #ifndef RGB_LED_B_PIN
  447. #define RGB_LED_B_PIN EXP1_03_PIN
  448. #endif
  449. #elif ENABLED(FYSETC_MINI_12864_2_1)
  450. #define NEOPIXEL_PIN EXP1_05_PIN
  451. #endif
  452. #endif // !FYSETC_MINI_12864
  453. #if IS_ULTIPANEL
  454. #define LCD_PINS_D5 EXP1_05_PIN
  455. #define LCD_PINS_D6 EXP1_04_PIN
  456. #define LCD_PINS_D7 EXP1_03_PIN
  457. #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  458. #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
  459. #endif
  460. #endif
  461. #endif
  462. #endif // HAS_WIRED_LCD
  463. // Alter timing for graphical display
  464. #if IS_U8GLIB_ST7920
  465. #ifndef BOARD_ST7920_DELAY_1
  466. #define BOARD_ST7920_DELAY_1 125
  467. #endif
  468. #ifndef BOARD_ST7920_DELAY_2
  469. #define BOARD_ST7920_DELAY_2 90
  470. #endif
  471. #ifndef BOARD_ST7920_DELAY_3
  472. #define BOARD_ST7920_DELAY_3 600
  473. #endif
  474. #endif
  475. //
  476. // WIFI
  477. //
  478. /**
  479. * ------
  480. * RX | 8 7 | 3.3V GPIO0 PF14 ... Leave as unused (ESP3D software configures this with a pullup so OK to leave as floating)
  481. * GPIO0 | 6 5 | Reset GPIO2 PF15 ... must be high (ESP3D software configures this with a pullup so OK to leave as floating)
  482. * GPIO2 | 4 3 | Enable Reset PG0 ... active low, probably OK to leave floating
  483. * GND | 2 1 | TX Enable PG1 ... Must be high for module to run
  484. * ------
  485. * W1
  486. */
  487. #define ESP_WIFI_MODULE_COM 6 // Must also set either SERIAL_PORT or SERIAL_PORT_2 to this
  488. #define ESP_WIFI_MODULE_BAUDRATE BAUDRATE // Must use same BAUDRATE as SERIAL_PORT & SERIAL_PORT_2
  489. #define ESP_WIFI_MODULE_RESET_PIN PG0
  490. #define ESP_WIFI_MODULE_ENABLE_PIN PG1
  491. #define ESP_WIFI_MODULE_GPIO0_PIN PF14
  492. #define ESP_WIFI_MODULE_GPIO2_PIN PF15