![]() ![]() ![]() ![]() Serial.begin(9600, SERIAL_8N1, RX_PIN, TX_PIN) // Fails Serial.begin(9600) // Works with USB cable. Here is the initialization code used: #define RX_PIN 9U // D6 And I tried using 9-10 with Serial1 with no success. The Nano does not present GPIO 16, so I can't try this one. I read here and there ESP-32 Serial GPIO should be 9-10 (respectively RX/TX) or 16-17. Actually, a script connecting to these pins with Serial1 object does not seems to work when the board is running with no USB cable. Reading the Starter page, I see Serial1 is D0/D1 That's a bit surprising as I though it should be Serial. The pinout cheat shows there is two pins D0/D1 which are expected to be RX0/TX0 thus used by USB. I'm not sure what pins to use for Serial1 and Serial2. On is used by USB while working on a script and the two others are expected to be free for device connectivity. I want to connect to the Serial while an USB cable is connected. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |