I am using PlatformIO, ESP32 WROVER (I tried WEMOS LOLIN and LILYGO versions), Arduino core (if that's how you call that). So for now things will work for me as is, but i found it strange that I was not able to remap the pins for a 100 percent. I could edit the Hardwareserial.cpp to change the pins there or opt for Softwareserial but that should not really be necessary. Some processors have special ways of connecting devices, but the ESP32’s processor uses the more common memory-mapping approach. Including the Hardwareserial.h library did not change things. In this chapter we take a look at how the ESP32 presents its hardware for you to use and how to access it via basic software. com/espressif/arduino-esp32/blob/master/cores/esp32/HardwareSerial.cpp. I did try a barebones sketch with no other functionality in it with the same result. The specs and features of the various ESP32 modules are described in a table at. But I do have problems with HardwareSerial. Also I am doing this by straight serial comms, no library is used. Hi, I'm new here and I do not know if this is the right forum here. I also tried different pins since I know that some are not really available but no change.Īll I am doing is sending values to the display, not vice-versa. I tried the same with serial2, same result. logw ( 'OnReceive is set to Timeout only, thus FIFO Full is now 120 bytes. So I tried to remap using Serial1.begin(9600, SERIAL_8N1, 26, 27) in the setup.Īfter some fussing about I discovered by chance that with the TX on pin 27 and the RX on the default ESP RX pin, it did work.įurther fussing about resulted in the conclusion that the RX connection can be connected to pin0, default RX and strangely enough also the default TX pin. arduino-esp32/cores/esp32/HardwareSerial.cpp. Are you familiar with the Serial class It abstracts the hardware uarts, if (Serial.available () > 0) x Serial.read () system January 12, 2013, 1:01pm 7 robtillaart & tuxduino: I am using ubuntu 11. The ESP32 has 3 uarts so that should not be a problem, the only thing is that on my particular ESP's only one uart is broken out to the devboard pins. need to collect the serial data from the UART directly to a variable, through a software serial port. With the display connected the upload would fail. In doing so I would not have to disconnect the RX and TX pins while uploading a new sketch. Maybe someone has encountered this before, i did search online but did not find any similar cases.įor my weather station with a Nextion display I wanted the display to be connected to a different serial port than the default port.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |