FastLED 3.10.8
Loading...
Searching...
No Matches

◆ defaultTxPin()

int autoresearch::defaultTxPin ( )
constexpr

Definition at line 18 of file AutoResearchPlatform.h.

18 {
19#if defined(FL_IS_STUB)
20 return 1; // Stub: TX and RX same pin — NativeRxDevice monitors TX output directly
21#elif defined(FL_IS_ESP_32S3)
22 return 1; // ESP32-S3: Connect GPIO 1 (TX) to GPIO 2 (RX) with jumper wire
23#elif defined(FL_IS_ESP_32S2)
24 return 1; // ESP32-S2
25#elif defined(FL_IS_ESP_32C6)
26 return 1; // ESP32-C6 (RISC-V)
27#elif defined(FL_IS_ESP_32C3)
28 return 1; // ESP32-C3 (RISC-V)
29#elif defined(FL_IS_ESP_32P4)
30 return 5; // ESP32-P4: Connect GPIO 5 (TX) to GPIO 6 (RX) with jumper wire
31#elif defined(FL_IS_TEENSY_4X)
32 return 1; // Teensy 4.x: any GPIO works for TX
33#elif defined(FL_IS_ESP_32DEV)
34 // ESP32 (classic): GPIO 33 → GPIO 34 jumper. GPIO34 is input-only
35 // (no output driver, no boot-strap role) which makes it an ideal RX
36 // pin, and 33/34 avoid GPIO0/1/3 (boot strap + UART0, see #3452).
37 // The WROOM COM11 bench harness is physically wired 33 → 34
38 // (verified electrically in FastLED#3569 — the previously-documented
39 // 18 → 19 pair was never connected there).
40 return 33;
41#else
42 return 1; // Other variants
43#endif
44}