ESP32: U8x8 and SoftwareSerial
Posted: Sat Jun 15, 2019 9:31 am
Hello everybody,
I'm still relatively new to the world of microcontroller programming and have a little problem with a "Heltec WiFi Kit 32" (an ESP32 with a built-in small OLED display):
I want to accept data transferred from an external device via UART from the ESP32, process it and then display it as a string on the display. (After that, they are then merged with other data and transmitted via MQTT, but that does not bother with the problem.) The merging and transmission runs in a separate thread on the second core.)
Both the reading in and the display presentation work well on U8x8lib.h and SoftwareSerial.h each. As soon as I combine both, neither of them will work anymore. I also tried to use the hardware-implemented serial interface 2 instead of SoftwareSerial (I had set up via GPIO 2 RX and 4 TX). That too is not possible. Somehow, the display and the serial interface seem to block each other. Does anyone have any idea why this is and possibly even a solution for it?
Thank you and best regards
Markus
I'm still relatively new to the world of microcontroller programming and have a little problem with a "Heltec WiFi Kit 32" (an ESP32 with a built-in small OLED display):
I want to accept data transferred from an external device via UART from the ESP32, process it and then display it as a string on the display. (After that, they are then merged with other data and transmitted via MQTT, but that does not bother with the problem.) The merging and transmission runs in a separate thread on the second core.)
Both the reading in and the display presentation work well on U8x8lib.h and SoftwareSerial.h each. As soon as I combine both, neither of them will work anymore. I also tried to use the hardware-implemented serial interface 2 instead of SoftwareSerial (I had set up via GPIO 2 RX and 4 TX). That too is not possible. Somehow, the display and the serial interface seem to block each other. Does anyone have any idea why this is and possibly even a solution for it?
Thank you and best regards
Markus