PROBLEM - TFT display AND multiple SerialPorts on Uno R4 Wifi

im having problems with R4 Wifi too,

i can't make the TFT ( touch screen display ) to work : Compilation error: "wiring_private.h: No such file or directory"

But it works on R3 ( but R3 has no wifi )

And then i can't seem to use more than one softwareSerial.
when running PM2.5 sensor and GPS sensor at the same time ;

If i declare pmsSerial.begin(9600) FIRST, the GPS part will not output anything if i declare gpsSerial.begin(9600) FIRST , the PMS(pm2.5) part will not output anything So i applied this https://docs.arduino.cc/tut.../communication/TwoPortReceive/

on arduino Uno R3 and it worked but when i apply it to R4 Wifi , it says

"class SoftwareSerial' has no member named 'listen'. "

Do you think using ESP32 The ProS3 would solve the problem ?
I love arduino as a beginner but im beginning to feel that it has many limitations. I have formal background in programming but not electronics

@cheznousnazrin ,

Topic split from another topic. Please do not add your own questions to the end of other people's topics.

Could you take a few moments to Learn How To Use The Forum

It will help you get the best out of the forum in the future.

Thank you.

Looks like you're using a library that doesn't support the R4. I might have had a suggestion for a better one but you don't mention what type of display you have.

The R4 has an extra real serial port. There should be no need to use two SoftwareSerial instances here. That is one of the big differences to the R4. The serial port on pins 0 and 1 is now Serial1 and the one out the USB port is just Serial.

Hi. thanks for your reply.
Regarding the TFT :
I am using this https://shopee.com.my/LAFVIN-2.4-2.8-3.2-3.5-Inch-TFT-LCD-Touch-Display-Screen-Panel-320x240-SPI-Serial-ILI9341-Compatible-with-Arduino-UNO-R3-Mega2560-i.365942974.21912366903

2.8 inch

Regarding the Software serial, you mean on R4 there are 2 serial ports ?
I just need to connect them to pins 0 and 1 , and then in the coding use Serial1 for pins 0 and 1 ?

Back to the TFT. I'd be glad if you could suggest an easier to use, compatible TFT with R4. Cost is also an issue. I need to do prototypes real fast so it's a balance between Cost and Ease of usage.

Like for example if it's easier and cost effective to use a different dev. board ( maybe ESP32 The ProS3 ? Introducing the ProS3 by Unexpected Maker - i think they have three serial ports )

I'm relatively new to this ( electronics ) but have some formal education in programming.. humbly saying - not that i am good at it :slight_smile:
THANKS

That is correct.