I am following the ESP32 Feather V2 tutorial to learn how to use the board.
https://learn.adafruit.com/adafruit-esp ... v2/pinouts
On the Pinouts page, it mentioned that:
RX - This is the UART RX (receive) pin. It is also pin 8. Connect to the TX pin found on a breakout or device. This is separate than the 'debug UART' which is connected to the USB-to-Serial converter, so it will not interfere during upload.
TX - This is the UART TX (transmit) pin. It is also pin 7. Connect to the RX pin found on a breakout or device. This is separate than the 'debug UART' which is connected to the USB-to-Serial converter, so it will not interfere during upload.
I want to use these two pins for UART communication, but there is no example on how to do this. When I use the regular Serial.println() command, it seems like it is connected the USB-to-Serial device. I see the output on Serial monitor, but I cannot detect the signal changes on TX pin. So my question is how to read and write from external device using TX and RX? Thank you!
Code: Select all
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println("start");
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("loop");
delay(1000);
}