TFT_eSPI examples don't run

I have thrown everything I can think of to get even simple code to work. One suggestion was change the driver on the usb port to match the UART on the board

Nothing appears in the serial monitor

String receivedMessage = "";  // Variable to store the complete message

void setup() {
  // Start the Serial Monitor at a baud rate of 115200
  Serial.begin(115200);
  
  // Print an initial message to the Serial Monitor
  Serial.println("ESP32 is ready. Please enter a message:");
}

void loop() {
  // Check if data is available in the Serial buffer
  while (Serial.available()) {
    char incomingChar = Serial.read();  // Read each character from the buffer
    
    if (incomingChar == '\n') {  // Check if the user pressed Enter (new line character)
      // Print the message
      Serial.print("You sent: ");
      Serial.println(receivedMessage);
      
      // Clear the message buffer for the next input
      receivedMessage = "";
    } else {
      // Append the character to the message string
      receivedMessage += incomingChar;
    }
  }
}

Was the upload of the sketch successful?

You will know the sketch uploaded successfully if you see a notification at the bottom right corner of the Arduino IDE window that says "Done uploading.":

Note that this notification is hidden after a few seconds, so you might miss it if you aren't watching. If you miss it, you can click the :bell: icon at the right side of the status bar to show the hidden notifications again.

OK, thanks for checking to be sure.

The Arduino sketch program that is running on the Arduino board is configured to communicate over the serial port at a specific baud rate. This is done via the Serial.begin function.

For example, your sketch contains this line:

so the Serial communication is done at 115200 baud.

The Arduino IDE Serial Monitor must be configured for the same baud rate as set in the sketch program.

Check to make sure the selection in the menu at the top right corner of the Serial Monitor panel matches the baud rate in the sketch code. If not, select the correct baud rate and press the reset button on the board to restart the sketch program. Hopefully you will then see the expected output in Serial Monitor.

If things are not working as expected even with the correct Serial Monitor baud rate configuration, please let us know in a reply here and we'll suggest something else you can try.

Hello all,
I seem to be having issues getting my Lonely Binary ESP32 WiFi Bluetooth Development Board and TFT_eSPI (Bodmer) I have tested a few samples ie. serial echo, Blue tooth and WiFi (All work well IDE and board upload and run are fine).
However using any of the examples for TFT_eSPI and my ST7796 320x480 with touch do not run
What I have done:
commented out //#include <User_Setup.h>
uncommented #include <User_Setups/Setup36_RPi_touch_ST7796.h>
triple checked my wiring
#define TFT_MISO 19
#define TFT_MOSI 23
#define TFT_SCLK 18
#define TFT_CS 15 // Chip select control pin
#define TFT_DC 2 // Data Command control pin
#define TFT_RST 4 // Reset pin (could connect to RST pin)
//#define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST
#define TOUCH_CS 22

It compiles and uploads OK but will not run any examples.
What I find interesting if any of the ino files have a Serial.begin(115200); and a Serial.println("Reached here");, nothing appears in the serial monitor window. I am sure some of the gurus out there can offer advice.
Thanks

A member since 2018 but have not learned yet how to post a possible problem. As a reminder, you need to read the pinned post 'How to get the most from the forum'

Hello all,
I seem to be having issues getting my Lonely Binary ESP32 WiFi Bluetooth Development Board and TFT_eSPI (Bodmer) I have tested a few samples ie. serial echo, Blue tooth and WiFi (All work well IDE and board upload and run are fine).
However using any of the examples for TFT_eSPI and my ST7796 320x480 with touch do not run
What I have done:
commented out //#include <User_Setup.h>
uncommented #include <User_Setups/Setup36_RPi_touch_ST7796.h>
triple checked my wiring

#define TFT_MOSI 23
#define TFT_SCLK 18
#define TFT_CS 15 // Chip select control pin
#define TFT_DC 2 // Data Command control pin
#define TFT_RST 4 // Reset pin (could connect to RST pin)
//#define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST
#define TOUCH_CS 22

It compiles and uploads OK but will not run any examples.
What I find interesting if any of the ino files have a Serial.begin(115200); and a Serial.println("Reached here");, nothing appears in the serial monitor window. I am sure some of the gurus out there can offer advice.
Thanks

Impossible to comment without the basics, ALL code in code tags and a picture of a hand-drawn wiring diagram. Additionally, if any non-Arduino major parts are used, the datasheet for that part should be provided.

Hi @KimBrussow

You created a second topic with the same subject without the ability to provide your question with the minimum necessary information.

Please return and reread "How to get the best out of this forum" guide.

Maybe try the following


The demo is one of the library examples available via the ... menu to the right of the first line of the library name.

The important thing in my post is:

What can be breaking before this to prevent a simple print to the serial monitor.
I can post all my code but do not think that would answer that question

Buffered output.
Have you run the demo I pointed out?

Just a wild guess, but some displays were made wrong, see if this pic is the same as yours.


That diode does NOT belong, either remove it or short it.

Show all the code, something between the Serial.println("Reached and the start may be a problem but we have to see the code.

I have merged your cross-posts @KimBrussow.

Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting can result in a suspension from the forum.

In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

which specific ESP32 are you using?
I have found to get serial monitor output on some ESP32C3 and ESP32C6 modules under Tools select USB CDC on Boot 'Enabled'

can you give a web link to the ST7796 320x480 display?

this is what I have

I have a Lonely Binary ESP32 WiFi Bluetooth Development Board 8MB Flash – Dual-Core 240MHz Microcontroller Lonely Binary ESP32 WiFi Bluetooth Development Board 8MB Flash – Dual-Core 240MHz Microcontroller, Compatible with Arduino IDE & MicroPython for IoT, Robotics, and Smart Devices : Amazon.com.au: Computers

this is my display https://www.temu.com/au/1-44--8-3-2-inch-spi-tft-lcd-display-module-128x128-240-480-tft-lcd-screen-with-touch-pen-for---five-sizes--g-601101339961401.html?_oak_mp_inf=ELnQ3v6s1ogBGiAyN2VkZGNhZGFhNDQ0N2UzYjQyZjAwM2NhMWI4Yzk1YyDjwuzr9TI%3D&top_gallery_url=https%3A%2F%2Fimg.kwcdn.com%2Fproduct%2Ffancy%2F7964cbc4-6575-4607-9f66-4347fc99ceb9.jpg&spec_gallery_id=9259966414&refer_page_sn=10009&refer_source=0&freesia_scene=2&_oak_freesia_scene=2&_oak_rec_ext_1=NjIy&_oak_gallery_order=385786322%2C1901446396%2C1967286814&search_key=spi%20480x320%204%20inch&refer_page_el_sn=200049&refer_page_name=search_result&refer_page_id=10009_1749620011186_hm23d0p68m&_x_sessn_id=pxojx6yi84

I deleted the original post and moved it to where I thought it belonged. Thank you for your input