Skip to content

Commit

Permalink
Update Serial.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
karlsoderby committed Feb 15, 2024
1 parent d8162ea commit 79e593c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Language/Functions/Communication/Serial.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,16 @@ Used for communication between the Arduino board and a computer or other devices

[options="header"]

The Nano ESP32 board
The Nano ESP32 board is an exception due to being based on the ESP32 core. Here, `Serial0` refers to `RX0` and `TX0`, while `Serial1` and `Serial2` are additional ports that can be assigned to any free GPIO.

|================================================================================================================================================
| Board | Serial0 pins | Serial1 pins | Serial2 pins | Serial3 pins | Serial4 pins
| Nano ESP32 | | 0(RX0), 1(TX0) | Any free GPIO [1] | |
| Board | Serial0 pins | Serial1 pins | Serial2 pins | Serial3 pins | Serial4 pins
| Nano ESP32 | 0(RX0), 1(TX0) | Any free GPIO | Any free GPIO | |
|================================================================================================================================================

You can read more about configuring the Nano ESP32's additional serial ports in https://docs.arduino.cc/tutorials/nano-esp32/cheat-sheet/#uart[this article].

* [1] The Nano ESP32 has a second hardware serial port available, but you need to specify the pins.


[%hardbreaks]
On older boards (Uno, Nano, Mini, and Mega), pins 0 and 1 are used for communication with the computer. Connecting anything to these pins can interfere with that communication, including causing failed uploads to the board.
[%hardbreaks]
You can use the Arduino environment's built-in serial monitor to communicate with an Arduino board. Click the serial monitor button in the toolbar and select the same baud rate used in the call to `begin()`.
Expand Down

0 comments on commit 79e593c

Please sign in to comment.