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_BTT_OCTOPUS_V1_common.h 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2021 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 HAS_OTG_USB_HOST_SUPPORT // USB Flash Drive support
  25. #define USES_DIAG_JUMPERS
  26. // Onboard I2C EEPROM
  27. #define I2C_EEPROM
  28. #define MARLIN_EEPROM_SIZE 0x1000 // 4K (AT24C32)
  29. #define I2C_SCL_PIN PB8
  30. #define I2C_SDA_PIN PB9
  31. // Avoid conflict with TIMER_TONE
  32. #define STEP_TIMER 10
  33. //
  34. // Servos
  35. //
  36. #define SERVO0_PIN PB6
  37. //
  38. // Misc. Functions
  39. //
  40. #define LED_PIN PA13
  41. //
  42. // Trinamic Stallguard pins
  43. //
  44. #define X_DIAG_PIN PG6 // X-STOP
  45. #define Y_DIAG_PIN PG9 // Y-STOP
  46. #define Z_DIAG_PIN PG10 // Z-STOP
  47. #define Z2_DIAG_PIN PG11 // Z2-STOP
  48. #define E0_DIAG_PIN PG12 // E0DET
  49. #define E1_DIAG_PIN PG13 // E1DET
  50. #define E2_DIAG_PIN PG14 // E2DET
  51. #define E3_DIAG_PIN PG15 // E3DET
  52. //
  53. // Z Probe (when not Z_MIN_PIN)
  54. //
  55. #ifndef Z_MIN_PROBE_PIN
  56. #define Z_MIN_PROBE_PIN PB7
  57. #endif
  58. //
  59. // Check for additional used endstop pins
  60. //
  61. #if HAS_EXTRA_ENDSTOPS
  62. #define _ENDSTOP_IS_ANY(ES) X2_USE_ENDSTOP == ES || Y2_USE_ENDSTOP == ES || Z2_USE_ENDSTOP == ES || Z3_USE_ENDSTOP == ES || Z4_USE_ENDSTOP == ES
  63. #if _ENDSTOP_IS_ANY(_XMIN_) || _ENDSTOP_IS_ANY(_XMAX_)
  64. #define NEEDS_X_MINMAX 1
  65. #endif
  66. #if _ENDSTOP_IS_ANY(_YMIN_) || _ENDSTOP_IS_ANY(_YMAX_)
  67. #define NEEDS_Y_MINMAX 1
  68. #endif
  69. #if _ENDSTOP_IS_ANY(_ZMIN_) || _ENDSTOP_IS_ANY(_ZMAX_)
  70. #define NEEDS_Z_MINMAX 1
  71. #endif
  72. #undef _ENDSTOP_IS_ANY
  73. #endif
  74. //
  75. // Limit Switches
  76. //
  77. #ifdef X_STALL_SENSITIVITY
  78. #define X_STOP_PIN X_DIAG_PIN
  79. #if X_HOME_TO_MIN
  80. #define X_MAX_PIN E0_DIAG_PIN // E0DET
  81. #else
  82. #define X_MIN_PIN E0_DIAG_PIN // E0DET
  83. #endif
  84. #elif EITHER(DUAL_X_CARRIAGE, NEEDS_X_MINMAX)
  85. #ifndef X_MIN_PIN
  86. #define X_MIN_PIN X_DIAG_PIN // X-STOP
  87. #endif
  88. #ifndef X_MAX_PIN
  89. #define X_MAX_PIN E0_DIAG_PIN // E0DET
  90. #endif
  91. #else
  92. #define X_STOP_PIN X_DIAG_PIN // X-STOP
  93. #endif
  94. #ifdef Y_STALL_SENSITIVITY
  95. #define Y_STOP_PIN Y_DIAG_PIN
  96. #if Y_HOME_TO_MIN
  97. #define Y_MAX_PIN E1_DIAG_PIN // E1DET
  98. #else
  99. #define Y_MIN_PIN E1_DIAG_PIN // E1DET
  100. #endif
  101. #elif NEEDS_Y_MINMAX
  102. #ifndef Y_MIN_PIN
  103. #define Y_MIN_PIN Y_DIAG_PIN // Y-STOP
  104. #endif
  105. #ifndef Y_MAX_PIN
  106. #define Y_MAX_PIN E1_DIAG_PIN // E1DET
  107. #endif
  108. #else
  109. #define Y_STOP_PIN Y_DIAG_PIN // Y-STOP
  110. #endif
  111. #ifdef Z_STALL_SENSITIVITY
  112. #define Z_STOP_PIN Z_DIAG_PIN
  113. #if Z_HOME_TO_MIN
  114. #define Z_MAX_PIN E2_DIAG_PIN // PWRDET
  115. #else
  116. #define Z_MIN_PIN E2_DIAG_PIN // PWRDET
  117. #endif
  118. #elif NEEDS_Z_MINMAX
  119. #ifndef Z_MIN_PIN
  120. #define Z_MIN_PIN Z_DIAG_PIN // Z-STOP
  121. #endif
  122. #ifndef Z_MAX_PIN
  123. #define Z_MAX_PIN E2_DIAG_PIN // PWRDET
  124. #endif
  125. #else
  126. #define Z_STOP_PIN Z_DIAG_PIN // Z-STOP
  127. #endif
  128. #undef NEEDS_X_MINMAX
  129. #undef NEEDS_Y_MINMAX
  130. #undef NEEDS_Z_MINMAX
  131. //
  132. // Filament Runout Sensor
  133. //
  134. #define FIL_RUNOUT_PIN PG12 // E0DET
  135. #define FIL_RUNOUT2_PIN PG13 // E1DET
  136. #define FIL_RUNOUT3_PIN PG14 // E2DET
  137. #define FIL_RUNOUT4_PIN PG15 // E3DET
  138. //
  139. // Power Supply Control
  140. //
  141. #ifndef PS_ON_PIN
  142. #define PS_ON_PIN PE11 // PS-ON
  143. #endif
  144. //
  145. // Power Loss Detection
  146. //
  147. #ifndef POWER_LOSS_PIN
  148. #define POWER_LOSS_PIN PC0 // PWRDET
  149. #endif
  150. //
  151. // Steppers
  152. //
  153. #define X_STEP_PIN PF13 // MOTOR 0
  154. #define X_DIR_PIN PF12
  155. #define X_ENABLE_PIN PF14
  156. #ifndef X_CS_PIN
  157. #define X_CS_PIN PC4
  158. #endif
  159. #define Y_STEP_PIN PG0 // MOTOR 1
  160. #define Y_DIR_PIN PG1
  161. #define Y_ENABLE_PIN PF15
  162. #ifndef Y_CS_PIN
  163. #define Y_CS_PIN PD11
  164. #endif
  165. #define Z_STEP_PIN PF11 // MOTOR 2
  166. #define Z_DIR_PIN PG3
  167. #define Z_ENABLE_PIN PG5
  168. #ifndef Z_CS_PIN
  169. #define Z_CS_PIN PC6
  170. #endif
  171. #define Z2_STEP_PIN PG4 // MOTOR 3
  172. #define Z2_DIR_PIN PC1
  173. #define Z2_ENABLE_PIN PA0
  174. #ifndef Z2_CS_PIN
  175. #define Z2_CS_PIN PC7
  176. #endif
  177. #define E0_STEP_PIN PF9 // MOTOR 4
  178. #define E0_DIR_PIN PF10
  179. #define E0_ENABLE_PIN PG2
  180. #ifndef E0_CS_PIN
  181. #define E0_CS_PIN PF2
  182. #endif
  183. #define E1_STEP_PIN PC13 // MOTOR 5
  184. #define E1_DIR_PIN PF0
  185. #define E1_ENABLE_PIN PF1
  186. #ifndef E1_CS_PIN
  187. #define E1_CS_PIN PE4
  188. #endif
  189. #define E2_STEP_PIN PE2 // MOTOR 6
  190. #define E2_DIR_PIN PE3
  191. #define E2_ENABLE_PIN PD4
  192. #ifndef E2_CS_PIN
  193. #define E2_CS_PIN PE1
  194. #endif
  195. #define E3_STEP_PIN PE6 // MOTOR 7
  196. #define E3_DIR_PIN PA14
  197. #define E3_ENABLE_PIN PE0
  198. #ifndef E3_CS_PIN
  199. #define E3_CS_PIN PD3
  200. #endif
  201. //
  202. // Temperature Sensors
  203. //
  204. #define TEMP_BED_PIN PF3 // TB
  205. #define TEMP_1_PIN PF5 // TH1
  206. #define TEMP_2_PIN PF6 // TH2
  207. #define TEMP_3_PIN PF7 // TH3
  208. //
  209. // Heaters / Fans
  210. //
  211. #define HEATER_BED_PIN PA1 // Hotbed
  212. #define HEATER_0_PIN PA2 // Heater0
  213. #define HEATER_1_PIN PA3 // Heater1
  214. #define HEATER_2_PIN PB10 // Heater2
  215. #define HEATER_3_PIN PB11 // Heater3
  216. #define FAN_PIN PA8 // Fan0
  217. #define FAN1_PIN PE5 // Fan1
  218. #define FAN2_PIN PD12 // Fan2
  219. #define FAN3_PIN PD13 // Fan3
  220. #define FAN4_PIN PD14 // Fan4
  221. #define FAN5_PIN PD15 // Fan5
  222. //
  223. // SD Support
  224. //
  225. #ifndef SDCARD_CONNECTION
  226. #if HAS_WIRED_LCD
  227. #define SDCARD_CONNECTION LCD
  228. #else
  229. #define SDCARD_CONNECTION ONBOARD
  230. #endif
  231. #endif
  232. //
  233. // Software SPI pins for TMC2130 stepper drivers
  234. //
  235. #if ENABLED(TMC_USE_SW_SPI)
  236. #ifndef TMC_SW_MOSI
  237. #define TMC_SW_MOSI PA7
  238. #endif
  239. #ifndef TMC_SW_MISO
  240. #define TMC_SW_MISO PA6
  241. #endif
  242. #ifndef TMC_SW_SCK
  243. #define TMC_SW_SCK PA5
  244. #endif
  245. #endif
  246. #if HAS_TMC_UART
  247. /**
  248. * TMC2208/TMC2209 stepper drivers
  249. *
  250. * Hardware serial communication ports.
  251. * If undefined software serial is used according to the pins below
  252. */
  253. //#define X_HARDWARE_SERIAL Serial1
  254. //#define X2_HARDWARE_SERIAL Serial1
  255. //#define Y_HARDWARE_SERIAL Serial1
  256. //#define Y2_HARDWARE_SERIAL Serial1
  257. //#define Z_HARDWARE_SERIAL Serial1
  258. //#define Z2_HARDWARE_SERIAL Serial1
  259. //#define E0_HARDWARE_SERIAL Serial1
  260. //#define E1_HARDWARE_SERIAL Serial1
  261. //#define E2_HARDWARE_SERIAL Serial1
  262. //#define E3_HARDWARE_SERIAL Serial1
  263. //#define E4_HARDWARE_SERIAL Serial1
  264. #define X_SERIAL_TX_PIN PC4
  265. #define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
  266. #define Y_SERIAL_TX_PIN PD11
  267. #define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
  268. #define Z_SERIAL_TX_PIN PC6
  269. #define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
  270. #define Z2_SERIAL_TX_PIN PC7
  271. #define Z2_SERIAL_RX_PIN Z2_SERIAL_TX_PIN
  272. #define E0_SERIAL_TX_PIN PF2
  273. #define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
  274. #define E1_SERIAL_TX_PIN PE4
  275. #define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
  276. #define E2_SERIAL_TX_PIN PE1
  277. #define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
  278. #define E3_SERIAL_TX_PIN PD3
  279. #define E3_SERIAL_RX_PIN E3_SERIAL_TX_PIN
  280. // Reduce baud rate to improve software serial reliability
  281. #define TMC_BAUD_RATE 19200
  282. #endif
  283. /** ------ ------
  284. * (BEEPER) PE8 | 1 2 | PE7 (BTN_ENC) (MISO) PA6 | 1 2 | PA5 (SCK)
  285. * (LCD_EN) PE9 | 3 4 | PE10 (LCD_RS) (BTN_EN1) PB2 | 3 4 | PA4 (SD_SS)
  286. * (LCD_D4) PE12 5 6 | PE13 (LCD_D5) (BTN_EN2) PB1 5 6 | PA7 (MOSI)
  287. * (LCD_D6) PE14 | 7 8 | PE15 (LCD_D7) (SD_DETECT) PC15 | 7 8 | RESET
  288. * GND | 9 10 | 5V GND | 9 10 | --
  289. * ------ ------
  290. * EXP1 EXP2
  291. */
  292. #define EXP1_01_PIN PE8
  293. #define EXP1_02_PIN PE7
  294. #define EXP1_03_PIN PE9
  295. #define EXP1_04_PIN PE10
  296. #define EXP1_05_PIN PE12
  297. #define EXP1_06_PIN PE13
  298. #define EXP1_07_PIN PE14
  299. #define EXP1_08_PIN PE15
  300. #define EXP2_01_PIN PA6
  301. #define EXP2_02_PIN PA5
  302. #define EXP2_03_PIN PB1
  303. #define EXP2_04_PIN PA4
  304. #define EXP2_05_PIN PB2
  305. #define EXP2_06_PIN PA7
  306. #define EXP2_07_PIN PC15
  307. #define EXP2_08_PIN -1
  308. //
  309. // Onboard SD card
  310. // Must use soft SPI because Marlin's default hardware SPI is tied to LCD's EXP2
  311. //
  312. #if SD_CONNECTION_IS(ONBOARD)
  313. #define SDIO_SUPPORT // Use SDIO for onboard SD
  314. #ifndef SD_DETECT_STATE
  315. #define SD_DETECT_STATE HIGH
  316. #elif SD_DETECT_STATE == LOW
  317. #error "BOARD_BTT_OCTOPUS_V1_0 onboard SD requires SD_DETECT_STATE set to HIGH."
  318. #endif
  319. #define SD_DETECT_PIN PC14
  320. #elif SD_CONNECTION_IS(LCD)
  321. #define SDSS PA4
  322. #define SD_SS_PIN SDSS
  323. #define SD_SCK_PIN PA5
  324. #define SD_MISO_PIN PA6
  325. #define SD_MOSI_PIN PA7
  326. #define SD_DETECT_PIN PC15
  327. #elif SD_CONNECTION_IS(CUSTOM_CABLE)
  328. #error "CUSTOM_CABLE is not a supported SDCARD_CONNECTION for this board"
  329. #endif
  330. #if ENABLED(BTT_MOTOR_EXPANSION)
  331. /**
  332. * ------ ------
  333. * M3DIAG | 1 2 | M3RX M3STP | 1 2 | M3DIR
  334. * M2DIAG | 3 4 | M2RX M2STP | 3 4 | M2DIR
  335. * M1DIAG 5 6 | M1RX M1DIR 5 6 | M1STP
  336. * M3EN | 7 8 | M2EN M1EN | 7 8 | --
  337. * GND | 9 10 | -- GND | 9 10 | --
  338. * ------ ------
  339. * EXP1 EXP2
  340. */
  341. // M1 on Driver Expansion Module
  342. #define E4_STEP_PIN EXP2_06_PIN
  343. #define E4_DIR_PIN EXP2_05_PIN
  344. #define E4_ENABLE_PIN EXP2_07_PIN
  345. #define E4_DIAG_PIN EXP1_05_PIN
  346. #define E4_CS_PIN EXP1_06_PIN
  347. #if HAS_TMC_UART
  348. #define E4_SERIAL_TX_PIN EXP1_06_PIN
  349. #define E4_SERIAL_RX_PIN E4_SERIAL_TX_PIN
  350. #endif
  351. // M2 on Driver Expansion Module
  352. #define E5_STEP_PIN EXP2_03_PIN
  353. #define E5_DIR_PIN EXP2_04_PIN
  354. #define E5_ENABLE_PIN EXP1_08_PIN
  355. #define E5_DIAG_PIN EXP1_03_PIN
  356. #define E5_CS_PIN EXP1_04_PIN
  357. #if HAS_TMC_UART
  358. #define E5_SERIAL_TX_PIN EXP1_04_PIN
  359. #define E5_SERIAL_RX_PIN E5_SERIAL_TX_PIN
  360. #endif
  361. // M3 on Driver Expansion Module
  362. #define E6_STEP_PIN EXP2_01_PIN
  363. #define E6_DIR_PIN EXP2_02_PIN
  364. #define E6_ENABLE_PIN EXP1_07_PIN
  365. #define E6_DIAG_PIN EXP1_01_PIN
  366. #define E6_CS_PIN EXP1_02_PIN
  367. #if HAS_TMC_UART
  368. #define E6_SERIAL_TX_PIN EXP1_02_PIN
  369. #define E6_SERIAL_RX_PIN E6_SERIAL_TX_PIN
  370. #endif
  371. #endif // BTT_MOTOR_EXPANSION
  372. //
  373. // LCDs and Controllers
  374. //
  375. #if IS_TFTGLCD_PANEL
  376. #if ENABLED(TFTGLCD_PANEL_SPI)
  377. #define TFTGLCD_CS EXP2_03_PIN
  378. #endif
  379. #elif HAS_WIRED_LCD
  380. #define BEEPER_PIN EXP1_01_PIN
  381. #define BTN_ENC EXP1_02_PIN
  382. #if ENABLED(CR10_STOCKDISPLAY)
  383. #define LCD_PINS_RS EXP1_07_PIN
  384. #define BTN_EN1 EXP1_03_PIN
  385. #define BTN_EN2 EXP1_05_PIN
  386. #define LCD_PINS_ENABLE EXP1_08_PIN
  387. #define LCD_PINS_D4 EXP1_06_PIN
  388. #else
  389. #define LCD_PINS_RS EXP1_04_PIN
  390. #define BTN_EN1 EXP2_03_PIN
  391. #define BTN_EN2 EXP2_05_PIN
  392. #define LCD_PINS_ENABLE EXP1_03_PIN
  393. #define LCD_PINS_D4 EXP1_05_PIN
  394. #if ENABLED(FYSETC_MINI_12864)
  395. #define DOGLCD_CS EXP1_03_PIN
  396. #define DOGLCD_A0 EXP1_04_PIN
  397. //#define LCD_BACKLIGHT_PIN -1
  398. #define LCD_RESET_PIN EXP1_05_PIN // Must be high or open for LCD to operate normally.
  399. #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
  400. #ifndef RGB_LED_R_PIN
  401. #define RGB_LED_R_PIN EXP1_06_PIN
  402. #endif
  403. #ifndef RGB_LED_G_PIN
  404. #define RGB_LED_G_PIN EXP1_07_PIN
  405. #endif
  406. #ifndef RGB_LED_B_PIN
  407. #define RGB_LED_B_PIN EXP1_08_PIN
  408. #endif
  409. #elif ENABLED(FYSETC_MINI_12864_2_1)
  410. #define NEOPIXEL_PIN EXP1_06_PIN
  411. #endif
  412. #endif // !FYSETC_MINI_12864
  413. #if IS_ULTIPANEL
  414. #define LCD_PINS_D5 EXP1_06_PIN
  415. #define LCD_PINS_D6 EXP1_07_PIN
  416. #define LCD_PINS_D7 EXP1_08_PIN
  417. #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  418. #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
  419. #endif
  420. #endif
  421. #endif
  422. #endif // HAS_WIRED_LCD
  423. // Alter timing for graphical display
  424. #if IS_U8GLIB_ST7920
  425. #define BOARD_ST7920_DELAY_1 120
  426. #define BOARD_ST7920_DELAY_2 80
  427. #define BOARD_ST7920_DELAY_3 580
  428. #endif
  429. #if HAS_SPI_TFT
  430. #define TFT_CS_PIN EXP2_04_PIN
  431. #define TFT_A0_PIN EXP2_07_PIN
  432. #define TFT_SCK_PIN EXP2_02_PIN
  433. #define TFT_MISO_PIN EXP2_01_PIN
  434. #define TFT_MOSI_PIN EXP2_06_PIN
  435. #define TOUCH_INT_PIN EXP1_07_PIN
  436. #define TOUCH_MISO_PIN EXP1_06_PIN
  437. #define TOUCH_MOSI_PIN EXP1_03_PIN
  438. #define TOUCH_SCK_PIN EXP1_05_PIN
  439. #define TOUCH_CS_PIN EXP1_04_PIN
  440. #define BTN_EN1 EXP2_03_PIN
  441. #define BTN_EN2 EXP2_05_PIN
  442. #define BTN_ENC EXP1_02_PIN
  443. #endif
  444. //
  445. // NeoPixel LED
  446. //
  447. #ifndef NEOPIXEL_PIN
  448. #define NEOPIXEL_PIN PB0
  449. #endif
  450. //
  451. // WIFI
  452. //
  453. /**
  454. * -------
  455. * GND | 9 | | 8 | 3.3V
  456. * (ESP-CS) PB12 | 10 | | 7 | PB15 (ESP-MOSI)
  457. * 3.3V | 11 | | 6 | PB14 (ESP-MISO)
  458. * (ESP-IO0) PD7 | 12 | | 5 | PB13 (ESP-CLK)
  459. * (ESP-IO4) PD10 | 13 | | 4 | --
  460. * -- | 14 | | 3 | PE15 (ESP-EN)
  461. * (ESP-RX) PD8 | 15 | | 2 | --
  462. * (ESP-TX) PD9 | 16 | | 1 | PE14 (ESP-RST)
  463. * -------
  464. * WIFI
  465. */
  466. #define ESP_WIFI_MODULE_COM 3 // Must also set either SERIAL_PORT or SERIAL_PORT_2 to this
  467. #define ESP_WIFI_MODULE_BAUDRATE BAUDRATE // Must use same BAUDRATE as SERIAL_PORT & SERIAL_PORT_2
  468. #define ESP_WIFI_MODULE_RESET_PIN PG7
  469. #define ESP_WIFI_MODULE_ENABLE_PIN PG8
  470. #define ESP_WIFI_MODULE_GPIO0_PIN PD7
  471. #define ESP_WIFI_MODULE_GPIO4_PIN PD10