{"id":155720,"date":"2024-06-05T17:07:30","date_gmt":"2024-06-05T17:07:30","guid":{"rendered":"https:\/\/randomnerdtutorials.com\/?p=155720"},"modified":"2024-12-06T11:00:50","modified_gmt":"2024-12-06T11:00:50","slug":"esp32-cheap-yellow-display-cyd-pinout-esp32-2432s028r","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/esp32-cheap-yellow-display-cyd-pinout-esp32-2432s028r\/","title":{"rendered":"ESP32 Cheap Yellow Display (CYD) Pinout (ESP32-2432S028R)"},"content":{"rendered":"\n<p>In this guide, we&#8217;ll take a look at the ESP32 Cheap Yellow Display Pinout. We&#8217;ll see which pins are used to control the display, touchscreen, and microSD card, and which pins you have available to connect external peripherals.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/05\/cheap-yellow-display-pinout-thumbnail.jpg?resize=1200%2C675&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP32 Cheap Yellow Display (CYD) Pinout (ESP32-2432S028R)\" class=\"wp-image-155764\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/05\/cheap-yellow-display-pinout-thumbnail.jpg?w=1920&amp;quality=100&amp;strip=all&amp;ssl=1 1920w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/05\/cheap-yellow-display-pinout-thumbnail.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/05\/cheap-yellow-display-pinout-thumbnail.jpg?resize=1024%2C576&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/05\/cheap-yellow-display-pinout-thumbnail.jpg?resize=768%2C432&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/05\/cheap-yellow-display-pinout-thumbnail.jpg?resize=1536%2C864&amp;quality=100&amp;strip=all&amp;ssl=1 1536w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure><\/div>\n\n\n<p>The ESP32 Cheap Yellow Display (ESP32-2432S028R) is a TFT Touchscreen display LCD with an ESP32 development board included, which is great to build graphical user interfaces for your IoT projects.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Table of Contents<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#intro-cyd\" title=\"\">Introducing the CYD<\/a><\/li>\n\n\n\n<li><a href=\"#display-pins\" title=\"\">Display Pins<\/a><\/li>\n\n\n\n<li><a href=\"#touchscreen-pins\" title=\"\">Touchscreen Pins<\/a><\/li>\n\n\n\n<li><a href=\"#rgb-led\" title=\"\">RGB LED<\/a><\/li>\n\n\n\n<li><a href=\"#microsd-card-pins\" title=\"\">MicroSD Card Pins<\/a><\/li>\n\n\n\n<li><a href=\"#ldr\" title=\"LDR (Light Dependent Resistor - Light Sensor)\">LDR (Light Dependent Resistor &#8211; Light Sensor)<\/a><\/li>\n\n\n\n<li><a href=\"#speaker\" title=\"\">Speaker<\/a><\/li>\n\n\n\n<li><a href=\"#boot-button\" title=\"\">BOOT Button<\/a><\/li>\n\n\n\n<li><a href=\"#extended-io\" title=\"\">Extended IO<\/a>\n<ul class=\"wp-block-list\">\n<li><a href=\"#p3\" title=\"\">P3 Extended IO<\/a><\/li>\n\n\n\n<li><a href=\"#cn1\" title=\"\">CN1 Extended IO<\/a><\/li>\n\n\n\n<li><a href=\"#available-pins\" title=\"\">Available Pins to Connect Peripherals<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"#tx-rx\" title=\"\">TX\/RX Connector<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"intro-cyd\">Introducing the ESP32 Cheap Yellow Display &#8211; CYD (ESP32-2432S028R)<\/h2>\n\n\n\n<p>The <a href=\"https:\/\/makeradvisor.com\/tools\/cyd-cheap-yellow-display-esp32-2432s028r\/\" target=\"_blank\" rel=\"noopener\" title=\"\">ESP32-2432S028R<\/a> development board has become known in the maker community as the &#8220;<em>Cheap Yellow Display<\/em>&#8221; or CYD for short. This development board, whose main chip is an ESP32-WROOM-32 module, comes with<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>2.8-inch TFT touchscreen LCD<\/li>\n\n\n\n<li>microSD card interface<\/li>\n\n\n\n<li>RGB LED<\/li>\n\n\n\n<li>built-in LDR (light-dependent resistor)<\/li>\n\n\n\n<li>all the required circuitry to program and apply power to the board.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/makeradvisor.com\/tools\/cyd-cheap-yellow-display-esp32-2432s028r\/\" target=\"_blank\" rel=\"noreferrer noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"750\" height=\"421\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/ESP32-Cheap-Yellow-Display-CYD-Board-ESP32-2432S028R-front.jpg?resize=750%2C421&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP32 Cheap Yellow Display CYD Board ESP32-2432S028R front\" class=\"wp-image-149592\" style=\"width:750px;height:auto\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/ESP32-Cheap-Yellow-Display-CYD-Board-ESP32-2432S028R-front.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/ESP32-Cheap-Yellow-Display-CYD-Board-ESP32-2432S028R-front.jpg?resize=300%2C168&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/a><\/figure><\/div>\n\n\n<p>This is a very versatile board to build GUIs for your IoT projects and is much more convenient and practical than using a separate ESP32 board with a TFT screen.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"1200\" height=\"609\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/ESP32-Cheap-Yellow-Display-CYD-Board-ESP32-2432S028R-back-labeled.jpg?resize=1200%2C609&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP32 Cheap Yellow Display CYD Board ESP32-2432S028R back labeled\" class=\"wp-image-149597\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/ESP32-Cheap-Yellow-Display-CYD-Board-ESP32-2432S028R-back-labeled.jpg?w=1280&amp;quality=100&amp;strip=all&amp;ssl=1 1280w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/ESP32-Cheap-Yellow-Display-CYD-Board-ESP32-2432S028R-back-labeled.jpg?resize=300%2C152&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/ESP32-Cheap-Yellow-Display-CYD-Board-ESP32-2432S028R-back-labeled.jpg?resize=1024%2C520&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/ESP32-Cheap-Yellow-Display-CYD-Board-ESP32-2432S028R-back-labeled.jpg?resize=768%2C390&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure><\/div>\n\n\n<p><strong>New to the ESP32 CYD board?<\/strong> Read our detailed getting-started guide: <a href=\"https:\/\/randomnerdtutorials.com\/cheap-yellow-display-esp32-2432s028r\/\" title=\"\">Getting Started with ESP32 Cheap Yellow Display Board \u2013 CYD (ESP32-2432S028R)<\/a>.<\/p>\n\n\n\n<p><strong>Where to buy?<\/strong><\/p>\n\n\n\n<p>You can click on the link below to check where to buy the ESP32 Cheap Yellow display and its price on different stores.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/cyd-cheap-yellow-display-esp32-2432s028r\/\" target=\"_blank\" rel=\"noopener\" title=\"\">ESP32-2432S028R \u2013 2.8 inch 240\u00d7320 Smart Display TFT with Touchscreen &#8211; Maker Advisor<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"display-pins\">Display Pins<\/h2>\n\n\n\n<p>The TFT display communicates with the board using SPI communication protocol (HSPI). In our guides, we use the following pin assignment for the TFT display (<a href=\"https:\/\/randomnerdtutorials.com\/cheap-yellow-display-esp32-2432s028r\/\">set up in the <em>User_Setup.h<\/em> of the <strong>TFT_eSPI<\/strong> library<\/a>).<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>SPI Pin<\/strong><\/td><td><strong>GPIO<\/strong><\/td><\/tr><tr><td><strong>MISO<\/strong> (<span class=\"rnthl rntliteral\">TFT_MISO<\/span>)<\/td><td>GPIO 12<\/td><\/tr><tr><td><strong>MOSI<\/strong> (<span class=\"rnthl rntliteral\">TFT_MOSI<\/span>)<\/td><td>GPIO 13<\/td><\/tr><tr><td><strong>SCKL<\/strong> (<span class=\"rnthl rntliteral\">TFT_SCLK<\/span>)<\/td><td>GPIO 14<\/td><\/tr><tr><td><strong>CS<\/strong> (<span class=\"rnthl rntliteral\">TFT_CS<\/span>)<\/td><td>GPIO 15<\/td><\/tr><tr><td><strong>DC<\/strong> (<span class=\"rnthl rntliteral\">TFT_DC<\/span>)<\/td><td>GPIO 2<\/td><\/tr><tr><td><strong>RST<\/strong> (<span class=\"rnthl rntliteral\">TFT_RST<\/span>)<\/td><td>-1<\/td><\/tr><tr><td><strong>Backlight Pin<\/strong><\/td><td>GPIO 21<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"rntbox rntclblue\">Learn more about ESP32 SPI communication: <a href=\"https:\/\/randomnerdtutorials.com\/esp32-spi-communication-arduino\/\" title=\"\">ESP32 SPI Guide with Arduino IDE<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"touchscreen-pins\">Touchscreen Pins<\/h2>\n\n\n\n<p>The touchscreen also uses SPI protocol to communicate with the ESP32. These are the VSPI pins for the touchscreen:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>SPI Pin<\/strong><\/td><td><strong>GPIO<\/strong><\/td><\/tr><tr><td><strong>IRQ <\/strong>(<span class=\"rnthl rntliteral\">XPT2046_IRQ<\/span>)<\/td><td>GPIO 36<\/td><\/tr><tr><td><strong>MOSI<\/strong> (<span class=\"rnthl rntliteral\">XPT2046_MOSI<\/span>)<\/td><td>GPIO 32<\/td><\/tr><tr><td><strong>MISO <\/strong>(<span class=\"rnthl rntliteral\">XPT2046_MISO<\/span>)<\/td><td>GPIO 39<\/td><\/tr><tr><td><strong>CLK <\/strong>(<span class=\"rnthl rntliteral\">XPT2046_CLK<\/span>)<\/td><td>GPIO 25<\/td><\/tr><tr><td><strong>CS <\/strong>(<span class=\"rnthl rntliteral\">XPT2046_CS<\/span>)<\/td><td>GPIO 33<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"rgb-led\">RGB LED<\/h2>\n\n\n\n<p>The board comes with an RGB LED at the back that might be useful for debugging.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"421\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/Cheap-Yellow-Display-ESP32-RGB-LED-pinout.jpg?resize=750%2C421&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP32 Cheap Yellow Display RGB LED\" class=\"wp-image-159206\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/Cheap-Yellow-Display-ESP32-RGB-LED-pinout.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/Cheap-Yellow-Display-ESP32-RGB-LED-pinout.jpg?resize=300%2C168&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<p>Here&#8217;s the RGB LED pinout:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>RGB LED<\/strong><\/td><td><strong>GPIO<\/strong><\/td><\/tr><tr><td><strong>Red LED<\/strong><\/td><td>GPIO 4<\/td><\/tr><tr><td><strong>Green LED<\/strong><\/td><td>GPIO 16<\/td><\/tr><tr><td><strong>Blue LED<\/strong><\/td><td>GPIO 17<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Important:<\/strong> The RGB LEDs work with inverted logic, because they are active low. This means that if you set them to HIGH = OFF and LOW = ON.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"microsd-card-pins\">MicroSD Card Pins<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"421\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/Cheap-Yellow-Display-ESP32-microSD-card.jpg?resize=750%2C421&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP32 Cheap Yellow Display MicroSD Card\" class=\"wp-image-159208\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/Cheap-Yellow-Display-ESP32-microSD-card.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/Cheap-Yellow-Display-ESP32-microSD-card.jpg?resize=300%2C168&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<p>The microSD card uses SPI communication protocol. It uses the ESP32 default VSPI pins:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>MicroSD card SPI<\/strong><\/td><td><strong>GPIO<\/strong><\/td><\/tr><tr><td><strong>MISO<\/strong><\/td><td>GPIO 19<\/td><\/tr><tr><td><strong>MOSI<\/strong><\/td><td>GPIO 23<\/td><\/tr><tr><td><strong>SCK<\/strong><\/td><td>GPIO 18<\/td><\/tr><tr><td><strong>CS<\/strong><\/td><td>GPIO 5<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"rntbox rntclblue\">You may also like: <a href=\"https:\/\/randomnerdtutorials.com\/esp32-microsd-card-arduino\/\" title=\"\">ESP32: Guide for MicroSD Card Module using Arduino IDE<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ldr\">LDR (Light Dependent Resistor) &#8211; Light Sensor<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"423\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/ESP32-Cheap-Yellow-Display-LDR.jpg?resize=750%2C423&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP32 Cheap Yellow Display LDR (Light Dependent ResistorESP32-Cheap-Yellow-)\" class=\"wp-image-159209\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/ESP32-Cheap-Yellow-Display-LDR.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/ESP32-Cheap-Yellow-Display-LDR.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<p>The board comes with an LDR at the front, right next to the display. The LDR is connected to GPIO 34.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>LDR<\/strong><\/td><td>GPIO 34<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"speaker\">Speaker<\/h2>\n\n\n\n<p>There is a 2P 1.25mm JST connector to connect a speaker. It&#8217;s controlled with <strong>GPIO 26<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Speaker<\/strong><\/td><td>GPIO 26<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"boot-button\">BOOT and RST Buttons<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"420\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/ESP32-cheap-Yellow-Display-Boot-Button.jpg?resize=750%2C420&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP32 Cheap Yellow Display BOOT and Reset RST Button\" class=\"wp-image-159210\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/ESP32-cheap-Yellow-Display-Boot-Button.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/ESP32-cheap-Yellow-Display-Boot-Button.jpg?resize=300%2C168&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<p>It has the BOOT button which is internally connected to GPIO 0 and you also have the on-board RST (RESET) button.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>BOOT Button<\/strong><\/td><td>GPIO 0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"extended-io\">Extended IO<\/h2>\n\n\n\n<p class=\"rntbox rntclgray\">There are two extended GPIO connectors labeled <strong>P3 <\/strong>and <strong>CN1<\/strong> on the board. In the Extended GPIO connectors, there are 4 GPIOs available: <strong>GPIO 35<\/strong>, <strong>GPIO 22<\/strong>, <strong>GPIO 21<\/strong>, and <strong>GPIO 27<\/strong> that you can use to connect peripherals.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"422\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/ESP32-CYD-Extended-IO-pins.jpg?resize=750%2C422&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP32 Cheap Yellow Display Extended IO Connectors\" class=\"wp-image-159211\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/ESP32-CYD-Extended-IO-pins.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/ESP32-CYD-Extended-IO-pins.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"p3\">P3 Extended IO<\/h3>\n\n\n\n<p>In the <strong><span style=\"text-decoration: underline;\">P3 connector<\/span><\/strong>, you have a <strong>GND <\/strong>pin and <strong>GPIO 35<\/strong>, <strong>GPIO 22<\/strong>, and <strong>GPIO 21<\/strong>.<\/p>\n\n\n\n<p>Please note that GPIO 22 is also used on the CN1 connector and that GPIO 21 is used as a backlight for the display. So, as long as the backlight is on, GPIO 21 will be on.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"cn1\">CN1 Extended IO<\/h3>\n\n\n\n<p>In the <strong><span style=\"text-decoration: underline;\">CN1 connector<\/span><\/strong>, you have <strong>GND<\/strong>, <strong>GPIO 22<\/strong>, <strong>GPIO 27 <\/strong>and <strong>3V3<\/strong> pins. Please note that GPIO22 is also available on the P3 connector.<\/p>\n\n\n\n<p>The pins on the CN1 connector can be especially useful to connect I2C devices because you have two available GPIOs that can be used for the I2C bus lines, and power and GND pins.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"422\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/ESP32-Cheap-Yellow-Display-Connect-BME280-Sensor.jpg?resize=750%2C422&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP32 Cheap Yellow Display Connect BME280 Sensor\" class=\"wp-image-159213\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/ESP32-Cheap-Yellow-Display-Connect-BME280-Sensor.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/ESP32-Cheap-Yellow-Display-Connect-BME280-Sensor.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<p>If you want to use those pins to connect with I2C sensors, you need to<a href=\"https:\/\/randomnerdtutorials.com\/esp32-i2c-communication-arduino-ide\/\" title=\"\"> set custom I2C pins<\/a>. You cannot use the default SDA and SCL pins (GPIO 21 and GPIO 22) because GPIO 21 is used for the backlight).<\/p>\n\n\n\n<p class=\"rntbox rntclgray\">Learn more about I2C communication with the ESP32: <a href=\"https:\/\/randomnerdtutorials.com\/esp32-i2c-communication-arduino-ide\/\">ESP32 I2C Communication: Set Pins, Multiple Bus Interfaces and Peripherals (Arduino IDE)<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"available-pins\">Available Pins to Connect Peripherals<\/h3>\n\n\n\n<p>So, in summary, you have three pins available to connect peripherals:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>GPIO 35<\/strong> \u2014 on the P3 connector<\/li>\n\n\n\n<li><strong>GPIO 22<\/strong> \u2014 on the P3 and CN1 connector<\/li>\n\n\n\n<li><strong>GPIO 27<\/strong> \u2014 on the CN1 connector<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"tx-rx\">TX\/RX Connector<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"421\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/ESP32-Cheap-Yellow-display-RX-TX-Serial-connector.jpg?resize=750%2C421&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP32 Cheap Yellow Display RX TX Serial Connector\" class=\"wp-image-159212\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/ESP32-Cheap-Yellow-display-RX-TX-Serial-connector.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/06\/ESP32-Cheap-Yellow-display-RX-TX-Serial-connector.jpg?resize=300%2C168&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<p>It also has the TX\/RX pins available on the connector labeled <strong>P1<\/strong>. These are used for serial communication and are connected directly to the CH340 (USB to serial converter).<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>GPIO 1<\/strong> \u2014 TX<\/li>\n\n\n\n<li><strong>GPIO 3<\/strong> \u2014 RX<\/li>\n<\/ul>\n\n\n\n<p>Many of our readers mentioned they couldn\u2019t use those pins to connect peripherals (that communicate via Serial, like a GPS module), but we haven\u2019t tested that feature yet.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Wrapping Up<\/h2>\n\n\n\n<p>We hope you find this GPIO reference guide for the ESP32 Cheap Yellow Display useful. If you have more information about the CYD GPIOs, please share by writing a comment down below.<\/p>\n\n\n\n<p>If you&#8217;re getting started with the ESP32 CYD, make sure to take a look at the following tutorials:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/cheap-yellow-display-esp32-2432s028r\/\">Getting Started with ESP32 Cheap Yellow Display Board \u2013 CYD (ESP32-2432S028R)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/touchscreen-on-off-button-cheap-yellow-display-esp32-2432s028r\/\">ESP32 Touchscreen On\/Off Button \u2013 Cheap Yellow Display (ESP32-2432S028R)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/lvgl-cheap-yellow-display-esp32-2432s028r\/\">LVGL with ESP32 Cheap Yellow Display Board (ESP32-2432S028R)<\/a><\/li>\n<\/ul>\n\n\n\n<p>Learn more about the ESP32 with our resources:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/learn-esp32-with-arduino-ide\/\">Learn ESP32 with Arduino IDE (2nd Edition)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/smart-home-ebook\/\">SMART HOME with Raspberry Pi, ESP32, ESP8266<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/build-web-servers-esp32-esp8266-ebook\/\">Build Web Servers with ESP32 and ESP8266<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/firebase-esp32-esp8266-ebook\/\">Firebase Web App with the ESP32 and ESP8266<\/a><\/li>\n\n\n\n<li><strong><a href=\"https:\/\/randomnerdtutorials.com\/learn-lvgl-esp32-ebook\/\">Learn LVGL: Build GUIs for ESP32 Projects (eBook)<\/a><\/strong><\/li>\n\n\n\n<li><strong><a href=\"https:\/\/randomnerdtutorials.com\/projects-esp32\/\">Free ESP32 Projects,Tutorials and Guides<\/a><\/strong><\/li>\n<\/ul>\n\n\n\n<p>Thanks for reading.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we&#8217;ll take a look at the ESP32 Cheap Yellow Display Pinout. We&#8217;ll see which pins are used to control the display, touchscreen, and microSD card, and which &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"ESP32 Cheap Yellow Display (CYD) Pinout (ESP32-2432S028R)\" class=\"read-more button\" href=\"https:\/\/randomnerdtutorials.com\/esp32-cheap-yellow-display-cyd-pinout-esp32-2432s028r\/#more-155720\" aria-label=\"Read more about ESP32 Cheap Yellow Display (CYD) Pinout (ESP32-2432S028R)\">CONTINUE READING \u00bb<\/a><\/p>\n","protected":false},"author":5,"featured_media":155764,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[281,276,277,299,264],"tags":[],"class_list":["post-155720","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-esp32-project","category-esp32","category-esp32-arduino-ide","category-0-esp32","category-project"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/05\/cheap-yellow-display-pinout-thumbnail.jpg?fit=1920%2C1080&quality=100&strip=all&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/155720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/comments?post=155720"}],"version-history":[{"count":22,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/155720\/revisions"}],"predecessor-version":[{"id":164427,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/155720\/revisions\/164427"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/155764"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=155720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=155720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=155720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}