Comments on: Getting Started with ESP32 Cheap Yellow Display Board – CYD (ESP32-2432S028R) https://randomnerdtutorials.com/cheap-yellow-display-esp32-2432s028r/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Tue, 22 Jul 2025 16:18:18 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Zuke https://randomnerdtutorials.com/cheap-yellow-display-esp32-2432s028r/#comment-1073396 Tue, 22 Jul 2025 16:18:18 +0000 https://randomnerdtutorials.com/?p=149234#comment-1073396 went to load the code it compiled and then when code loaded it said connecting, showed dots and then gave an exit staus 2 error?? correct board selected with correct port and baud rate…did I miss something?

]]>
By: Stp https://randomnerdtutorials.com/cheap-yellow-display-esp32-2432s028r/#comment-1068776 Mon, 14 Jul 2025 06:39:09 +0000 https://randomnerdtutorials.com/?p=149234#comment-1068776 In reply to Stp.

Also for others having issues with screen colours, put this line after your lines where you initialise the TFT:

Tft.invertDisplay(1);

And remember to keep the case of the command exactly like this or you get compilation errors. C++ is case sensitive. The i is lower case but the D is upper.

]]>
By: Stp https://randomnerdtutorials.com/cheap-yellow-display-esp32-2432s028r/#comment-1068775 Mon, 14 Jul 2025 06:35:59 +0000 https://randomnerdtutorials.com/?p=149234#comment-1068775 In reply to Carl.

Thank you for this, excellent find. I am now pretty accomplished at programming the CYD and have several projects running but always hit the same issue when using touch and SD card together. This is a game changer.

]]>
By: Graham Toal https://randomnerdtutorials.com/cheap-yellow-display-esp32-2432s028r/#comment-1065622 Sun, 06 Jul 2025 17:44:34 +0000 https://randomnerdtutorials.com/?p=149234#comment-1065622 Has anyone worked out how to program for these displays in C from a command line, i.e. using a normal text editor and command line utilities such as cc and make, without being forced to use these GUI IDEs?

]]>
By: Christian https://randomnerdtutorials.com/cheap-yellow-display-esp32-2432s028r/#comment-1065257 Sat, 05 Jul 2025 21:29:13 +0000 https://randomnerdtutorials.com/?p=149234#comment-1065257 Just a note if your trying to connect Neopixle ended up using FastLED library instead of Adafruit_NeoPixel.

Could not get them to work.
#include <TFT_eSPI.h>
#include <Adafruit_NeoPixel.h>

Following worked out:

#include <SPI.h>
#include <TFT_eSPI.h>
#include <FastLED.h>

#define LED_PIN 22
#define LED_COUNT 50
#define BRIGHTNESS 50
#define LED_TYPE WS2812B
#define COLOR_ORDER GRB

CRGB leds[LED_COUNT];
TFT_eSPI tft = TFT_eSPI();

#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240
#define FONT_SIZE 2

void setup() {
Serial.begin(115200);

// TFT Display Init
SPI.begin();
tft.init();
tft.setRotation(1);
tft.fillScreen(TFT_WHITE);
tft.setTextColor(TFT_BLACK, TFT_WHITE);
tft.drawCentreString(“LED Sequencer”, SCREEN_WIDTH/2, 30, FONT_SIZE);

// FastLED Init
FastLED.addLeds<LED_TYPE, LED_PIN, COLOR_ORDER>(leds, LED_COUNT)
.setCorrection(TypicalLEDStrip);
FastLED.setBrightness(BRIGHTNESS);
FastLED.clear(true);
}

void safeTFT(std::function<void()> fn) {
SPI.beginTransaction(SPISettings(40000000, MSBFIRST, SPI_MODE0));
fn();
SPI.endTransaction();
}

void loop() {
for (int i = 0; i < LED_COUNT; i++) {
leds[i] = CRGB::Blue;
FastLED.show(); // RMT-driven, won’t interfere with SPI :contentReference[oaicite:1]{index=1}

safeTFT([&]() {
tft.fillScreen(TFT_WHITE);
tft.drawCentreString("LED " + String(i + 1),
SCREEN_WIDTH/2, SCREEN_HEIGHT/2, FONT_SIZE);
});

delay(2000);

leds[i] = CRGB::Black;
FastLED.show();

}

FastLED.clear(true);
delay(2000);
}

]]>
By: Soner https://randomnerdtutorials.com/cheap-yellow-display-esp32-2432s028r/#comment-1061426 Fri, 27 Jun 2025 10:23:08 +0000 https://randomnerdtutorials.com/?p=149234#comment-1061426 In reply to Jim.

Always a good idea to search before posting a question! However, I’ll give the hint anyway, reduce the port baudrate and that’ll be okay.

]]>
By: Sara Santos https://randomnerdtutorials.com/cheap-yellow-display-esp32-2432s028r/#comment-1055340 Fri, 06 Jun 2025 09:55:15 +0000 https://randomnerdtutorials.com/?p=149234#comment-1055340 In reply to Abhi.

Hi.
There’s probably something wrong with the initialization and declaration of the variables.
But, it’s hard to tell without knowing the exact example you’re following.

Regards,
Sara

]]>
By: Abhi https://randomnerdtutorials.com/cheap-yellow-display-esp32-2432s028r/#comment-1054966 Thu, 05 Jun 2025 11:41:47 +0000 https://randomnerdtutorials.com/?p=149234#comment-1054966 I have a strange issue with my CYD. I have two functions that run on my cyd depending on if I select them. When func1 is the boot function it runs fine. However if I switch to func2 and then back to func1, the text does not refresh and the characters become solid white boxes after a few seconds becuase of the new characters overlapping. The same happens when func2 is the boot function. They are both the same in terms of how they print text and get new text but its only happeneing when the second function is called. Any idea if I need to reinitialkize the screen when I change functions?

]]>
By: Sara Santos https://randomnerdtutorials.com/cheap-yellow-display-esp32-2432s028r/#comment-1039622 Sat, 10 May 2025 09:28:26 +0000 https://randomnerdtutorials.com/?p=149234#comment-1039622 In reply to Keith Mildenberger.

That’s great!
Thank you so much for your support.

Regards,
Sara

]]>
By: Keith Mildenberger https://randomnerdtutorials.com/cheap-yellow-display-esp32-2432s028r/#comment-1039418 Fri, 09 May 2025 19:42:36 +0000 https://randomnerdtutorials.com/?p=149234#comment-1039418 After many frustrating hours with this board your tutorial FINALLY helped me break through. Purchased the ebook as well. Great work n both fronts, keep up the good work it is greatly appreciated.
Thank you, Keith

]]>