Public Access
Move the Nano link to Serial2, update READMEs
- ESP32 talks to the Nano on UART2 (GPIO 17 TX / GPIO 16 RX); Serial (USB) is now free for debug output and boot messages no longer reach the Nano - README: wiring table, actual schedule (clock from 08:00), TODO section for the rewiring Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c67a90ba09
commit
75f677a2eb
6 files changed
+58
-29
No files matched your search
+4
-1
@@ -45,7 +45,10 @@ bool power = true;
|
||||
|
||||
const int led1 = BUILTIN_LED; // Pin of the LED
|
||||
const int relay = 13; // Pin of the relay, powers the panels and the Nano (LOW = on)
|
||||
const int nano_tx = 1; // UART0 TX, wired to the Nano RX
|
||||
// Link to the Nano on UART2. Serial (UART0) stays free for USB / debug output.
|
||||
HardwareSerial &nanoSerial = Serial2;
|
||||
const int nano_rx = 16; // UART2 RX, wired to the Nano TX (through a 5V -> 3.3V divider)
|
||||
const int nano_tx = 17; // UART2 TX, wired to the Nano RX
|
||||
bool relay_on = false;
|
||||
// Max wait for the Nano's READY after power on (also the wait when Nano TX is not wired to our RX)
|
||||
const uint32_t NANO_BOOT_TIMEOUT = 3000;
|
||||
|
||||
Reference in new issue
Block a user