My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

pins_BTT_SKR_V2_0_common.h 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  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 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. // Avoid conflict with TIMER_TONE
  47. #define STEP_TIMER 10
  48. //
  49. // Servos
  50. //
  51. #define SERVO0_PIN PE5
  52. //
  53. // Trinamic Stallguard pins
  54. //
  55. #define X_DIAG_PIN PC1 // X-STOP
  56. #define Y_DIAG_PIN PC3 // Y-STOP
  57. #define Z_DIAG_PIN PC0 // Z-STOP
  58. #define E0_DIAG_PIN PC2 // E0DET
  59. #define E1_DIAG_PIN PA0 // E1DET
  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 PC2 // E0DET
  67. #else
  68. #define X_MIN_PIN PC2 // E0DET
  69. #endif
  70. #elif ENABLED(X_DUAL_ENDSTOPS)
  71. #ifndef X_MIN_PIN
  72. #define X_MIN_PIN PC1 // X-STOP
  73. #endif
  74. #ifndef X_MAX_PIN
  75. #define X_MAX_PIN PC2 // E0DET
  76. #endif
  77. #else
  78. #define X_STOP_PIN PC1 // X-STOP
  79. #endif
  80. #ifdef Y_STALL_SENSITIVITY
  81. #define Y_STOP_PIN Y_DIAG_PIN
  82. #if Y_HOME_TO_MIN
  83. #define Y_MAX_PIN PA0 // E1DET
  84. #else
  85. #define Y_MIN_PIN PA0 // E1DET
  86. #endif
  87. #elif ENABLED(Y_DUAL_ENDSTOPS)
  88. #ifndef Y_MIN_PIN
  89. #define Y_MIN_PIN PC3 // Y-STOP
  90. #endif
  91. #ifndef Y_MAX_PIN
  92. #define Y_MAX_PIN PA0 // E1DET
  93. #endif
  94. #else
  95. #define Y_STOP_PIN PC3 // Y-STOP
  96. #endif
  97. #ifdef Z_STALL_SENSITIVITY
  98. #define Z_STOP_PIN Z_DIAG_PIN
  99. #if Z_HOME_TO_MIN
  100. #define Z_MAX_PIN PC15 // PWRDET
  101. #else
  102. #define Z_MIN_PIN PC15 // PWRDET
  103. #endif
  104. #elif ENABLED(Z_MULTI_ENDSTOPS)
  105. #ifndef Z_MIN_PIN
  106. #define Z_MIN_PIN PC0 // Z-STOP
  107. #endif
  108. #ifndef Z_MAX_PIN
  109. #define Z_MAX_PIN PC15 // PWRDET
  110. #endif
  111. #else
  112. #ifndef Z_STOP_PIN
  113. #define Z_STOP_PIN PC0 // Z-STOP
  114. #endif
  115. #endif
  116. //
  117. // Z Probe (when not Z_MIN_PIN)
  118. //
  119. #ifndef Z_MIN_PROBE_PIN
  120. #define Z_MIN_PROBE_PIN PE4
  121. #endif
  122. //
  123. // Probe enable
  124. //
  125. #if ENABLED(PROBE_ENABLE_DISABLE)
  126. #ifndef PROBE_ENABLE_PIN
  127. #define PROBE_ENABLE_PIN SERVO0_PIN
  128. #endif
  129. #endif
  130. //
  131. // Filament Runout Sensor
  132. //
  133. #define FIL_RUNOUT_PIN PC2 // E0DET
  134. #define FIL_RUNOUT2_PIN PA0 // E1DET
  135. //
  136. // Power Supply Control
  137. //
  138. #ifndef PS_ON_PIN
  139. #define PS_ON_PIN PE8 // PS-ON
  140. #endif
  141. //
  142. // Power Loss Detection
  143. //
  144. #ifndef POWER_LOSS_PIN
  145. #define POWER_LOSS_PIN PC15 // PWRDET
  146. #endif
  147. //
  148. // Control pin of driver/heater/fan power supply
  149. //
  150. #define SAFE_POWER_PIN PC13
  151. //
  152. // Steppers
  153. //
  154. #define X_STEP_PIN PE2
  155. #define X_DIR_PIN PE1
  156. #define X_ENABLE_PIN PE3
  157. #ifndef X_CS_PIN
  158. #define X_CS_PIN PE0
  159. #endif
  160. #define Y_STEP_PIN PD5
  161. #define Y_DIR_PIN PD4
  162. #define Y_ENABLE_PIN PD6
  163. #ifndef Y_CS_PIN
  164. #define Y_CS_PIN PD3
  165. #endif
  166. #define Z_STEP_PIN PA15
  167. #define Z_DIR_PIN PA8
  168. #define Z_ENABLE_PIN PD1
  169. #ifndef Z_CS_PIN
  170. #define Z_CS_PIN PD0
  171. #endif
  172. #ifndef E0_STEP_PIN
  173. #define E0_STEP_PIN PD15
  174. #endif
  175. #ifndef E0_DIR_PIN
  176. #define E0_DIR_PIN PD14
  177. #endif
  178. #ifndef E0_ENABLE_PIN
  179. #define E0_ENABLE_PIN PC7
  180. #endif
  181. #ifndef E0_CS_PIN
  182. #define E0_CS_PIN PC6
  183. #endif
  184. #ifndef E1_STEP_PIN
  185. #define E1_STEP_PIN PD11
  186. #endif
  187. #ifndef E1_DIR_PIN
  188. #define E1_DIR_PIN PD10
  189. #endif
  190. #ifndef E1_ENABLE_PIN
  191. #define E1_ENABLE_PIN PD13
  192. #endif
  193. #ifndef E1_CS_PIN
  194. #define E1_CS_PIN PD12
  195. #endif
  196. //
  197. // Temperature Sensors
  198. //
  199. #ifndef TEMP_0_PIN
  200. #define TEMP_0_PIN PA2 // TH0
  201. #endif
  202. #ifndef TEMP_1_PIN
  203. #define TEMP_1_PIN PA3 // TH1
  204. #endif
  205. #ifndef TEMP_BED_PIN
  206. #define TEMP_BED_PIN PA1 // TB
  207. #endif
  208. #if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL)
  209. #if TEMP_SENSOR_PROBE
  210. #define TEMP_PROBE_PIN TEMP_1_PIN
  211. #elif TEMP_SENSOR_CHAMBER
  212. #define TEMP_CHAMBER_PIN TEMP_1_PIN
  213. #endif
  214. #endif
  215. //
  216. // Heaters / Fans
  217. //
  218. #ifndef HEATER_0_PIN
  219. #define HEATER_0_PIN PB3 // Heater0
  220. #endif
  221. #ifndef HEATER_1_PIN
  222. #define HEATER_1_PIN PB4 // Heater1
  223. #endif
  224. #ifndef HEATER_BED_PIN
  225. #define HEATER_BED_PIN PD7 // Hotbed
  226. #endif
  227. #ifndef FAN_PIN
  228. #define FAN_PIN PB7 // Fan0
  229. #endif
  230. #if HAS_CUTTER
  231. #ifndef SPINDLE_LASER_PWM_PIN
  232. #define SPINDLE_LASER_PWM_PIN PB5
  233. #endif
  234. #ifndef SPINDLE_LASER_ENA_PIN
  235. #define SPINDLE_LASER_ENA_PIN PB6
  236. #endif
  237. #else
  238. #ifndef FAN1_PIN
  239. #define FAN1_PIN PB6 // Fan1
  240. #endif
  241. #ifndef FAN2_PIN
  242. #define FAN2_PIN PB5 // Fan2
  243. #endif
  244. #endif // SPINDLE_FEATURE || LASER_FEATURE
  245. //
  246. // Software SPI pins for TMC2130 stepper drivers
  247. //
  248. #if ENABLED(TMC_USE_SW_SPI)
  249. #ifndef TMC_SW_MOSI
  250. #define TMC_SW_MOSI PE14
  251. #endif
  252. #ifndef TMC_SW_MISO
  253. #define TMC_SW_MISO PA14
  254. #endif
  255. #ifndef TMC_SW_SCK
  256. #define TMC_SW_SCK PE15
  257. #endif
  258. #endif
  259. #if HAS_TMC_UART
  260. /**
  261. * TMC2208/TMC2209 stepper drivers
  262. *
  263. * Hardware serial communication ports.
  264. * If undefined software serial is used according to the pins below
  265. */
  266. //#define X_HARDWARE_SERIAL Serial1
  267. //#define X2_HARDWARE_SERIAL Serial1
  268. //#define Y_HARDWARE_SERIAL Serial1
  269. //#define Y2_HARDWARE_SERIAL Serial1
  270. //#define Z_HARDWARE_SERIAL Serial1
  271. //#define Z2_HARDWARE_SERIAL Serial1
  272. //#define E0_HARDWARE_SERIAL Serial1
  273. //#define E1_HARDWARE_SERIAL Serial1
  274. //#define E2_HARDWARE_SERIAL Serial1
  275. //#define E3_HARDWARE_SERIAL Serial1
  276. //#define E4_HARDWARE_SERIAL Serial1
  277. //
  278. // Software serial
  279. //
  280. #define X_SERIAL_TX_PIN PE0
  281. #define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
  282. #define Y_SERIAL_TX_PIN PD3
  283. #define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
  284. #define Z_SERIAL_TX_PIN PD0
  285. #define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
  286. #define E0_SERIAL_TX_PIN PC6
  287. #define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
  288. #define E1_SERIAL_TX_PIN PD12
  289. #define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
  290. // Reduce baud rate to improve software serial reliability
  291. #define TMC_BAUD_RATE 19200
  292. #endif
  293. //
  294. // SD Connection
  295. //
  296. #ifndef SDCARD_CONNECTION
  297. #define SDCARD_CONNECTION ONBOARD
  298. #endif
  299. /**
  300. * ------ ------
  301. * (BEEPER) PC5 |10 9 | PB0 (BTN_ENC) (MISO) PA6 |10 9 | PA5 (SCK)
  302. * (LCD_EN) PB1 | 8 7 | PE9 (LCD_RS) (BTN_EN1) PE7 | 8 7 | PA4 (SD_SS)
  303. * (LCD_D4) PE10 | 6 5 PE11 (LCD_D5) (BTN_EN2) PB2 | 6 5 PA7 (MOSI)
  304. * (LCD_D6) PE12 | 4 3 | PE13 (LCD_D7) (SD_DETECT) PC4 | 4 3 | RESET
  305. * GND | 2 1 | 5V GND | 2 1 | --
  306. * ------ ------
  307. * EXP1 EXP2
  308. */
  309. #define EXP1_03_PIN PE13
  310. #define EXP1_04_PIN PE12
  311. #define EXP1_05_PIN PE11
  312. #define EXP1_06_PIN PE10
  313. #define EXP1_07_PIN PE9
  314. #define EXP1_08_PIN PB1
  315. #define EXP1_09_PIN PB0
  316. #define EXP1_10_PIN PC5
  317. #define EXP2_03_PIN -1
  318. #define EXP2_04_PIN PC4
  319. #define EXP2_05_PIN PA7
  320. #define EXP2_06_PIN PB2
  321. #define EXP2_07_PIN PA4
  322. #define EXP2_08_PIN PE7
  323. #define EXP2_09_PIN PA5
  324. #define EXP2_10_PIN PA6
  325. //
  326. // Onboard SD card
  327. // Must use soft SPI because Marlin's default hardware SPI is tied to LCD's EXP2
  328. //
  329. #if SD_CONNECTION_IS(LCD)
  330. #define SDSS EXP2_07_PIN
  331. #define SD_SS_PIN SDSS
  332. #define SD_SCK_PIN EXP2_09_PIN
  333. #define SD_MISO_PIN EXP2_10_PIN
  334. #define SD_MOSI_PIN EXP2_05_PIN
  335. #define SD_DETECT_PIN EXP2_04_PIN
  336. #elif SD_CONNECTION_IS(ONBOARD)
  337. #define SDIO_SUPPORT // Use SDIO for onboard SD
  338. #elif SD_CONNECTION_IS(CUSTOM_CABLE)
  339. #error "No custom SD drive cable defined for this board."
  340. #endif
  341. #if ENABLED(BTT_MOTOR_EXPANSION)
  342. /** ----- -----
  343. * -- | . . | GND -- | . . | GND
  344. * -- | . . | M1EN M2EN | . . | M3EN
  345. * M1STP | . . M1DIR M1RX | . . M1DIAG
  346. * M2DIR | . . | M2STP M2RX | . . | M2DIAG
  347. * M3DIR | . . | M3STP M3RX | . . | M3DIAG
  348. * ----- -----
  349. * EXP2 EXP1
  350. *
  351. * NB In EXP_MOT_USE_EXP2_ONLY mode EXP1 is not used and M2EN and M3EN need to be jumpered to M1EN
  352. */
  353. // M1 on Driver Expansion Module
  354. #define E2_STEP_PIN EXP2_05_PIN
  355. #define E2_DIR_PIN EXP2_06_PIN
  356. #define E2_ENABLE_PIN EXP2_04_PIN
  357. #if !EXP_MOT_USE_EXP2_ONLY
  358. #define E2_DIAG_PIN EXP1_06_PIN
  359. #define E2_CS_PIN EXP1_05_PIN
  360. #if HAS_TMC_UART
  361. #define E2_SERIAL_TX_PIN EXP1_05_PIN
  362. #define E2_SERIAL_RX_PIN EXP1_05_PIN
  363. #endif
  364. #endif
  365. // M2 on Driver Expansion Module
  366. #define E3_STEP_PIN EXP2_08_PIN
  367. #define E3_DIR_PIN EXP2_07_PIN
  368. #if !EXP_MOT_USE_EXP2_ONLY
  369. #define E3_ENABLE_PIN EXP1_03_PIN
  370. #define E3_DIAG_PIN EXP1_08_PIN
  371. #define E3_CS_PIN EXP1_07_PIN
  372. #if HAS_TMC_UART
  373. #define E3_SERIAL_TX_PIN EXP1_07_PIN
  374. #define E3_SERIAL_RX_PIN EXP1_07_PIN
  375. #endif
  376. #else
  377. #define E3_ENABLE_PIN EXP2_04_PIN
  378. #endif
  379. // M3 on Driver Expansion Module
  380. #define E4_STEP_PIN EXP2_10_PIN
  381. #define E4_DIR_PIN EXP2_09_PIN
  382. #if !EXP_MOT_USE_EXP2_ONLY
  383. #define E4_ENABLE_PIN EXP1_04_PIN
  384. #define E4_DIAG_PIN EXP1_10_PIN
  385. #define E4_CS_PIN EXP1_09_PIN
  386. #if HAS_TMC_UART
  387. #define E4_SERIAL_TX_PIN EXP1_09_PIN
  388. #define E4_SERIAL_RX_PIN EXP1_09_PIN
  389. #endif
  390. #else
  391. #define E4_ENABLE_PIN EXP2_04_PIN
  392. #endif
  393. #endif // BTT_MOTOR_EXPANSION
  394. //
  395. // LCDs and Controllers
  396. //
  397. #if IS_TFTGLCD_PANEL
  398. #if ENABLED(TFTGLCD_PANEL_SPI)
  399. #define TFTGLCD_CS EXP2_08_PIN
  400. #endif
  401. #elif HAS_WIRED_LCD
  402. #define BEEPER_PIN EXP1_10_PIN
  403. #define BTN_ENC EXP1_09_PIN
  404. #if ENABLED(CR10_STOCKDISPLAY)
  405. #define LCD_PINS_RS EXP1_04_PIN
  406. #define BTN_EN1 EXP1_08_PIN
  407. #define BTN_EN2 EXP1_06_PIN
  408. #define LCD_PINS_ENABLE EXP1_03_PIN
  409. #define LCD_PINS_D4 EXP1_05_PIN
  410. #elif ENABLED(MKS_MINI_12864)
  411. #define DOGLCD_A0 EXP1_04_PIN
  412. #define DOGLCD_CS EXP1_05_PIN
  413. #define BTN_EN1 EXP2_08_PIN
  414. #define BTN_EN2 EXP2_06_PIN
  415. #else
  416. #define LCD_PINS_RS EXP1_07_PIN
  417. #define BTN_EN1 EXP2_08_PIN
  418. #define BTN_EN2 EXP2_06_PIN
  419. #define LCD_PINS_ENABLE EXP1_08_PIN
  420. #define LCD_PINS_D4 EXP1_06_PIN
  421. #if ENABLED(FYSETC_MINI_12864)
  422. #define DOGLCD_CS EXP1_08_PIN
  423. #define DOGLCD_A0 EXP1_07_PIN
  424. //#define LCD_BACKLIGHT_PIN -1
  425. #define LCD_RESET_PIN EXP1_06_PIN // Must be high or open for LCD to operate normally.
  426. #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
  427. #ifndef RGB_LED_R_PIN
  428. #define RGB_LED_R_PIN EXP1_05_PIN
  429. #endif
  430. #ifndef RGB_LED_G_PIN
  431. #define RGB_LED_G_PIN EXP1_04_PIN
  432. #endif
  433. #ifndef RGB_LED_B_PIN
  434. #define RGB_LED_B_PIN EXP1_03_PIN
  435. #endif
  436. #elif ENABLED(FYSETC_MINI_12864_2_1)
  437. #define NEOPIXEL_PIN EXP1_05_PIN
  438. #endif
  439. #endif // !FYSETC_MINI_12864
  440. #if IS_ULTIPANEL
  441. #define LCD_PINS_D5 EXP1_05_PIN
  442. #define LCD_PINS_D6 EXP1_04_PIN
  443. #define LCD_PINS_D7 EXP1_03_PIN
  444. #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  445. #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
  446. #endif
  447. #endif
  448. #endif
  449. #endif // HAS_WIRED_LCD
  450. // Alter timing for graphical display
  451. #if IS_U8GLIB_ST7920
  452. #ifndef BOARD_ST7920_DELAY_1
  453. #define BOARD_ST7920_DELAY_1 120
  454. #endif
  455. #ifndef BOARD_ST7920_DELAY_2
  456. #define BOARD_ST7920_DELAY_2 80
  457. #endif
  458. #ifndef BOARD_ST7920_DELAY_3
  459. #define BOARD_ST7920_DELAY_3 580
  460. #endif
  461. #endif
  462. #if HAS_SPI_TFT
  463. #define BTN_EN1 EXP2_08_PIN
  464. #define BTN_EN2 EXP2_06_PIN
  465. #define BTN_ENC EXP1_09_PIN
  466. //
  467. // e.g., BTT_TFT35_SPI_V1_0 (480x320, 3.5", SPI Stock Display with Rotary Encoder in BIQU B1 SE)
  468. //
  469. #define TFT_CS_PIN EXP2_07_PIN
  470. #define TFT_A0_PIN EXP2_04_PIN
  471. #define TFT_SCK_PIN EXP2_09_PIN
  472. #define TFT_MISO_PIN EXP2_10_PIN
  473. #define TFT_MOSI_PIN EXP2_05_PIN
  474. #define TOUCH_INT_PIN EXP1_04_PIN
  475. #define TOUCH_MISO_PIN EXP1_05_PIN
  476. #define TOUCH_MOSI_PIN EXP1_08_PIN
  477. #define TOUCH_SCK_PIN EXP1_06_PIN
  478. #define TOUCH_CS_PIN EXP1_07_PIN
  479. #endif
  480. //
  481. // NeoPixel LED
  482. //
  483. #ifndef NEOPIXEL_PIN
  484. #define NEOPIXEL_PIN PE6
  485. #endif
  486. //
  487. // WIFI
  488. //
  489. /**
  490. * -------
  491. * GND | 9 | | 8 | 3.3V
  492. * (ESP-CS) PB12 | 10 | | 7 | PB15 (ESP-MOSI)
  493. * 3.3V | 11 | | 6 | PB14 (ESP-MISO)
  494. * (ESP-IO0) PB10 | 12 | | 5 | PB13 (ESP-CLK)
  495. * (ESP-IO4) PB11 | 13 | | 4 | --
  496. * -- | 14 | | 3 | 3.3V (ESP-EN)
  497. * (ESP-RX) PD8 | 15 | | 2 | --
  498. * (ESP-TX) PD9 | 16 | | 1 | PC14 (ESP-RST)
  499. * -------
  500. * WIFI
  501. */
  502. #define ESP_WIFI_MODULE_COM 3 // Must also set either SERIAL_PORT or SERIAL_PORT_2 to this
  503. #define ESP_WIFI_MODULE_BAUDRATE BAUDRATE // Must use same BAUDRATE as SERIAL_PORT & SERIAL_PORT_2
  504. #define ESP_WIFI_MODULE_RESET_PIN PC14
  505. #define ESP_WIFI_MODULE_GPIO0_PIN PB10
  506. #define ESP_WIFI_MODULE_GPIO4_PIN PB11