mrcodetastic / ESP32-HUB75-MatrixPanel-DMA

An Adafruit GFX Compatible Library for the ESP32, ESP32-S2, ESP32-S3 to drive HUB75 LED matrix panels using DMA for high refresh rates. Supports panel chaining.
MIT License
929 stars 205 forks source link

Need to fix the file HardwareSerial.cpp #406

Open MichaelAndronov opened 1 year ago

MichaelAndronov commented 1 year ago
          Need to fix the file HardwareSerial.cpp

as in this video https://www.youtube.com/watch?v=GwShqW39jlE&t=203s ESP32 aditional RS232

Originally posted by @MichaelAndronov in https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-DMA/issues/387#issuecomment-1450244887

Lukaswnd commented 1 year ago

Do you guys know, that you can set the pins for the HardwareSerial? So you don't have to edit the lib and do it every time you update it. The function is part of the HardwareSerial class. `void setPins(int8_t rxPin, int8_t txPin, int8_t ctsPin = -1, int8_t rtsPin = -1);

Serial1.setPins(4, 21); Serial1.begin(115200);`

You could also set them in Serial.begin(). Just make sure so set the config as well. `void begin(unsigned long baud, uint32_t config=SERIAL_8N1, int8_t rxPin=-1, int8_t txPin=-1, bool invert=false, unsigned long timeout_ms = 20000UL, uint8_t rxfifo_full_thrhd = 112);

Serial1.begin(115200, SERIAL_8N1, 4, 21);`

I don't know why these are the default pins. They are connected to the flash (and SPIRAM/PSRAM if present), which makes it really hard to actually use them especially with uart.

MichaelAndronov commented 1 year ago

OK! Great, thanks a lot for the advice. I will try. Michael

On Thu, Mar 9, 2023 at 12:18 PM Lukaswnd @.***> wrote:

Do you guys know, that you can set the pins for the HardwareSerial? The function is part of the HardwareSerial class. `void setPins(int8_t rxPin, int8_t txPin, int8_t ctsPin = -1, int8_t rtsPin = -1);

Serial1.setPins(4, 21); Serial1.begin(115200);`

You could also set them in Serial.begin(). Just make sure so set the config as well. `void begin(unsigned long baud, uint32_t config=SERIAL_8N1, int8_t rxPin=-1, int8_t txPin=-1, bool invert=false, unsigned long timeout_ms = 20000UL, uint8_t rxfifo_full_thrhd = 112);

Serial1.begin(115200, SERIAL_8N1, 4, 21);`

I don't know why these are the default pins. They are connected to the flash (and SPIRAM/PSRAM if present), which makes it really hard to actually use them especially with uart.

— Reply to this email directly, view it on GitHub https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-DMA/issues/406#issuecomment-1461735602, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6GR66MPVQAWHQRV356RDOLW3GVAFANCNFSM6AAAAAAVNBJDUM . You are receiving this because you authored the thread.Message ID: @.***>