#pragma once

// LovyanGFX configuration for the ESP32-2432S028R "Cheap Yellow Display".
//
// We use LovyanGFX's built-in autodetection for the CYD board. The autodetect
// table knows the correct SPI buses, pins, panel driver, and touch controller
// for the common ILI9341 and ST7789 variants.
//
// Reference:
//   https://github.com/embedded-kiddie/Arduino-CYD-2432S028R
//   https://github.com/lovyan03/LovyanGFX/issues/693

#define LGFX_USE_V1
#define LGFX_AUTODETECT
#include <LovyanGFX.hpp>
#include <LGFX_AUTODETECT.hpp>

namespace cyd {

// With LGFX_AUTODETECT we can simply use the stock LGFX class.
using CYD_Display = lgfx::LGFX;

} // namespace cyd
