Comments on: Programming the ESP32 CYD (Cheap Yellow Display) with VS Code https://randomnerdtutorials.com/programming-esp32-cyd-cheap-yellow-display-vs-code/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Mon, 26 May 2025 17:00:44 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Martin Randall https://randomnerdtutorials.com/programming-esp32-cyd-cheap-yellow-display-vs-code/#comment-1050399 Mon, 26 May 2025 17:00:44 +0000 https://randomnerdtutorials.com/?p=161013#comment-1050399 In reply to Owen G.

Make sure you have the github library for XPT2046_Touchscreen as follows:-

lib_deps = https://github.com/PaulStoffregen/XPT2046_Touchscreen.git

Earlier versions of the library don’t have the same parameter

]]>
By: Rob https://randomnerdtutorials.com/programming-esp32-cyd-cheap-yellow-display-vs-code/#comment-1045741 Mon, 19 May 2025 10:22:30 +0000 https://randomnerdtutorials.com/?p=161013#comment-1045741 In reply to Jim McGinness.

For sure. I’m a C# dev and I find it confusing trying to get a lot of platformio projects up and running fast. I’ll go back to basics and learn referencing libdep, ini etc from scratch.

]]>
By: Jim McGinness https://randomnerdtutorials.com/programming-esp32-cyd-cheap-yellow-display-vs-code/#comment-1045737 Mon, 19 May 2025 10:11:13 +0000 https://randomnerdtutorials.com/?p=161013#comment-1045737 This is a fairly common problem people have when trying to use lvgl under platformio. For example, see:

https://forum.lvgl.io/t/need-to-understand-how-to-define-the-location-of-lv-conf-h/16296

The lvgl library makes some assumptions about the build environment that you may need to make adjustments for. My repo for CYD experiments is on a different laptop; I may be able to look at it to see how I handled this problem.

]]>
By: Rob https://randomnerdtutorials.com/programming-esp32-cyd-cheap-yellow-display-vs-code/#comment-1045735 Mon, 19 May 2025 10:04:38 +0000 https://randomnerdtutorials.com/?p=161013#comment-1045735 I had to move lvconfig.h and a couple of others, then change the .ini file. New to platformio. All a bit weird lol. I do believe you guys should make the .ini and file structure clearer for beginners. You should really start a learning platformio series. A lot of people want to move to VS Code and they’ve been following you long enough to know the need for more advanced programming. Thanks Sara.

]]>
By: Sara Santos https://randomnerdtutorials.com/programming-esp32-cyd-cheap-yellow-display-vs-code/#comment-1045728 Mon, 19 May 2025 09:43:45 +0000 https://randomnerdtutorials.com/?p=161013#comment-1045728 In reply to Rob Savage.

Hi.
What is exactly the error you’re getting?
Regards,
Sara

]]>
By: Rob Savage https://randomnerdtutorials.com/programming-esp32-cyd-cheap-yellow-display-vs-code/#comment-1045698 Mon, 19 May 2025 05:10:06 +0000 https://randomnerdtutorials.com/?p=161013#comment-1045698 I get a library reference error repeatedly for #include <lvgl.h> in main.cpp but it’s referencing lv_cong.h? Any fix? I’ve tried some Build flags but they’re not helping [{
“resource”: “/D:/PIO/CYD_UserData/src/main.cpp”,
“owner”: “C/C++: IntelliSense”,
“severity”: 8,
“message”: “cannot open source file \”../../lv_conf.h\” (dependency of \”lvgl.h\”)”,

]]>
By: Sara Santos https://randomnerdtutorials.com/programming-esp32-cyd-cheap-yellow-display-vs-code/#comment-1044005 Wed, 14 May 2025 14:04:48 +0000 https://randomnerdtutorials.com/?p=161013#comment-1044005 In reply to Owen G.

Hi.
What exactly happens?

Regards,
Sara

]]>
By: Sara Santos https://randomnerdtutorials.com/programming-esp32-cyd-cheap-yellow-display-vs-code/#comment-1044004 Wed, 14 May 2025 14:04:17 +0000 https://randomnerdtutorials.com/?p=161013#comment-1044004 In reply to Vikas.

Hi.
What exactly happens?

Regards,
Sara

]]>
By: Owen G https://randomnerdtutorials.com/programming-esp32-cyd-cheap-yellow-display-vs-code/#comment-1043889 Tue, 13 May 2025 23:36:11 +0000 https://randomnerdtutorials.com/?p=161013#comment-1043889 In reply to Andrea.

I am having the same issue. Have you found a solution?

]]>
By: Vikas https://randomnerdtutorials.com/programming-esp32-cyd-cheap-yellow-display-vs-code/#comment-1029514 Mon, 21 Apr 2025 19:53:16 +0000 https://randomnerdtutorials.com/?p=161013#comment-1029514 In reply to Andrea.

I am facing the same problem, although it is working if I am using the same code on Arduino IDE

]]>