#2117·firmware

device request: ES3C28P (2.8inch ESP32-S3 IPS LCD Display Module)

Author: xXABDOUXxCreated Jan 30, 2026Updated Sep 22, 2026
LabelsNew Board

Hello,

I would like to request help with porting the Bruce firmware to my ES3C28P device. Below is all the technical information about the hardware:

DEVICE INFORMATION:

  • Device Model: ES3C28P (2.8inch ESP32-S3 IPS LCD Display Module)
  • Main Controller: ESP32-S3R8 (Xtensa dual core 32-bit LX7)
  • Maximum Clock Frequency: 240MHz
  • Internal Memory: 348KB ROM, 512KB SRAM, 16KB RTC SRAM, 8MB OPI PSRAM
  • External Memory: 16MB QSPI Flash
  • Connectivity: 2.4G WiFi + Bluetooth V5.0 (including low-power Bluetooth)
  • Display: 2.8" IPS LCD, Resolution 240x320, RGB565 format (65K colors)
  • Display Driver IC: ILI9341V (SPI 4-wire interface)
  • Touch Screen: Capacitive touch 2.8" with FT6336G controller (I2C address: 0x38)
  • SD Card Support: MicroSD via 4-bit SDIO interface (faster than SPI mode)
  • Audio: ES8311 codec (I2C address: 0x18) with FM8002E amplifier (max 2W @ 4Ω)
  • Microphone: Downward MEMS silicon microphone
  • Battery: 3.7V lithium battery support with TP4054 charge management (max 500mA charging)
  • Voltage Regulation: ME6217C33M5G LDO (5V to 3.3V, max 800mA output)

PIN ASSIGNMENTS:

LCD DISPLAY PINS:

  • TFT_CS = GPIO10 (Chip select, active low)
  • TFT_RS (DC) = GPIO46 (Command/data select - High: data, Low: command)
  • TFT_SCK = GPIO12 (SPI clock)
  • TFT_MOSI = GPIO11 (SPI write data)
  • TFT_MISO = GPIO13 (SPI read data)
  • TFT_RST = CHIP_PU (Reset, active low - shared with ESP32-S3 main reset)
  • TFT_BL = GPIO45 (Backlight control - High: on, Low: off)

CAPACITIVE TOUCH SCREEN PINS:

  • TP_SDA = GPIO16 (I2C data line)
  • TP_SCL = GPIO15 (I2C clock line)
  • TP_RST = GPIO18 (Reset, active low)
  • TP_INT = GPIO17 (Interrupt input, active low on touch event)

RGB LED:

  • RGB_INT = GPIO42 (Single wire RGB LED control - WS2812/NeoPixel compatible)

SD CARD (SDIO Interface):

  • SD_CLK = GPIO38 (SDIO clock)
  • SD_CMD = GPIO40 (SDIO command)
  • SD_D0 = GPIO39 (Data line 0)
  • SD_D1 = GPIO41 (Data line 1)
  • SD_D2 = GPIO48 (Data line 2)
  • SD_D3 = GPIO47 (Data line 3)

BATTERY MONITORING:

  • BAT_ADC = GPIO9 (Battery voltage ADC input for 3.7V lithium battery)

AUDIO I2S:

  • Audio_EN = GPIO1 (Audio output enable - Low: enable, High: disable)
  • I2S_MCK = GPIO4 (Master clock)
  • I2S_SCK = GPIO5 (Bit clock)
  • I2S_DO = GPIO6 (Data output to speaker)
  • I2S_LRC = GPIO7 (Left/right channel select)
  • I2S_DI = GPIO8 (Data input from microphone)

BUTTONS:

  • BOOT_KEY = GPIO0 (Boot/download mode button - also used as user button)
  • RESET_KEY = EN pin (Physical reset button - shared with LCD reset)

USB:

  • USB_N = GPIO19 (USB D- differential signal)
  • USB_P = GPIO20 (USB D+ differential signal)

SERIAL PORT (UART0):

  • TX0 = GPIO43 (UART0 transmit)
  • RX0 = GPIO44 (UART0 receive)

POWER:

  • TYPE-C_POWER = 5V input via Type-C connector

IMPORTANT HARDWARE NOTES:

  1. DISPLAY CONFIGURATION:

    • The display uses 4-wire SPI interface with ILI9341V driver
    • Resolution: 240x320 pixels (GRAM size: 172,800 bytes)
    • Color Format: RGB565 (16-bit, 65K colors, also supports 262K RGB)
    • IPS panel (good viewing angles)
    • Hardware backlight control on GPIO45 (supports PWM for brightness control)
    • SPI Communication: CPOL=0, CPHA=0 (SPI Mode 0), MSB first
    • Maximum resolution supported by ILI9341V: 240×320
    • Supports rotation display, scrolling display, and video playback
    • Display method: Set address first, then color value
  2. SHARED PINS:

    • LCD reset (TFT_RST) is shared with ESP32-S3 main reset (CHIP_PU/EN pin)
    • Both LCD and main controller reset together
    • Cannot independently reset LCD without resetting ESP32-S3
  3. TOUCH SCREEN:

    • Uses FT6336G capacitive touch controller
    • I2C interface (not SPI) with slave address 0x38
    • Interrupt-driven touch detection available on GPIO17
    • I2C bus has hardware pull-up resistors (R29, R30)
    • Shares I2C bus with audio codec ES8311
  4. SD CARD:

    • Uses 4-bit SDIO interface (NOT SPI mode)
    • MUCH faster than SPI mode
    • Supports high-speed MicroSD cards of various capacities
    • Hardware pull-up resistors on all data lines (R17, R18, R34-R37)
    • Bypass filter capacitor included
  5. AUDIO SYSTEM:

    • Full I2S audio support with both speaker output and microphone input
    • ES8311 audio codec (I2C address 0x18, shares bus with touch screen)
    • FM8002E audio amplifier (1.5W @ 8Ω or 2W @ 4Ω, 5V supply)
    • Differential audio output mode
    • Audio enable pin (GPIO1) must be set LOW to enable audio output (high disables)
    • Downward MEMS silicon microphone for audio input
    • RC filtering circuit for audio quality
    • Gain adjustable via resistors R24, R25, R28 (reduce R24/R25 to increase volume)
  6. RGB LED:

    • Single WS2812/NeoPixel compatible RGB LED with internal IC
    • Uses 5V power supply
    • Single-wire protocol on GPIO42
    • Supports internal red, green, and blue light control
  7. BATTERY:

    • Supports 3.7V lithium battery with onboard TP4054 charge management
    • Maximum charging current: 500mA (adjustable via R12 resistor)
    • Battery saturation voltage: 4.2V
    • Battery voltage monitoring via ADC on GPIO9
    • Voltage divider circuit (R14, R15) - multiply ADC reading by 2 for actual voltage
    • P-channel FET (Q3) switches battery discharge
    • Auto-switching: battery powers module when Type-C not connected
    • IMPORTANT: Total current may exceed 500mA when battery charging + speaker + display active
  8. BUTTONS:

    • GPIO0 (BOOT) button can be used as user input
    • Long press GPIO0 during power-on or reset enters download mode
    • Reset button is hardware reset only (resets both ESP32-S3 and LCD)
    • Hardware pull-up resistors on both buttons
  9. BACKLIGHT CONTROL:

    • N-channel FET (Q4, BSS138) controls backlight
    • GPIO45 high = backlight ON, low = backlight OFF
    • Supports PWM for brightness adjustment
    • Current limiting resistor R33 (reduce for brighter backlight)
    • Backlight OFF by default at startup
  10. EXPANSION PINS:

    • Four unused ESP32-S3 GPIO pins available: IO2, IO3, IO14, IO21
    • Can be used as general GPIO or configured as additional SPI interface
    • I2C peripheral interface (4-pin) shares I2C0 bus with touch and audio
    • WARNING: IIC_SDA and IIC_SCL cannot be used as regular GPIO
  11. COMMUNICATION INTERFACES:

    • SPI: 4-wire mode for LCD (CPOL=0, CPHA=0, MSB first)
    • I2C: Shared bus for touch (0x38) and audio codec (0x18)
    • SDIO: 4-bit mode for SD card (faster than SPI)
    • I2S: For audio data transmission
    • USB: Internal USB-to-serial for programming and communication
    • UART0: Available on GPIO43/44 for serial communication
  12. POWER SYSTEM:

    • Dual 5V→3.3V voltage regulators (ME6217C33M5G)
    • Separate regulators for audio and non-audio circuits
    • Maximum output: 800mA per regulator
    • Input voltage range: 2V~6.5V
    • Type-C provides 5V input
    • Schottky diode (D8) prevents reverse current
    • ESD protection diodes (D5-D7) on USB lines
  13. ANTENNA:

    • PCB onboard antenna for WiFi/Bluetooth
    • Components: J1, C52, C53, R43
  14. THERMAL CONSIDERATIONS:

    • WARNING: LDO voltage regulators and TP4054 can get HOT during operation
    • Do not touch these components during use to avoid burns
    • Ensure adequate ventilation

DEVELOPMENT ENVIRONMENT:

  • Arduino IDE Version: 2.3.4
  • ESP32 Arduino Core: 3.2.0 (also compatible with 2.0.17 for BLE examples)
  • Total GPIO Available: 45 external GPIO ports
  • Required Libraries: TFT_eSPI, LVGL (v8.x ONLY, v9.x NOT compatible), FT6336-arduino, Adafruit_NeoPixel
  • Partition Scheme: Some examples require "Huge APP (3MB No OTA / 1MB SPIFFS)"

SPI COMMUNICATION DETAILS FOR LCD:

  • Protocol: 4-wire SPI
  • Mode: SPI Mode 0 (CPOL=0, CPHA=0)
  • Data Format: 8-bit, MSB first
  • CS (Chip Select): Active LOW
  • DC (Data/Command): LOW=command, HIGH=data
  • Clock Edge: Data captured on first (rising) edge
  • CS must be LOW to enable chip
  • Each SPI transmission sends 8 bits of data

I2C COMMUNICATION DETAILS:

  • Touch Screen (FT6336G): I2C address 0x38
  • Audio Codec (ES8311): I2C address 0x18
  • Both devices share same I2C bus (SDA=GPIO16, SCL=GPIO15)
  • Hardware pull-up resistors already present on bus

WHAT I NEED FOR BRUCE FIRMWARE PORT:

Please help me port the Bruce firmware to work with this ES3C28P hardware. Here are the specific requirements:

  1. Display Driver Configuration (ILI9341V)

    • 4-wire SPI interface with pins: CS=IO10, DC=IO46, SCK=IO12, MOSI=IO11, MISO=IO13
    • SPI Mode 0 (CPOL=0, CPHA=0), MSB first
    • Resolution: 240x320, RGB565 format
    • Shared reset with ESP32-S3 (CHIP_PU)
    • Backlight PWM control on GPIO45 (HIGH=on, default OFF)
  2. Touch Screen Support (FT6336G)

    • I2C interface on GPIO15 (SCL) / GPIO16 (SDA)
    • I2C slave address: 0x38
    • Touch interrupt on GPIO17 (active LOW)
    • Touch reset on GPIO18
    • Shares I2C bus with audio codec
  3. SD Card Support

    • IMPORTANT: Uses SDIO 4-bit mode (NOT SPI!)
    • Pins: CLK=IO38, CMD=IO40, D0=IO39, D1=IO41, D2=IO48, D3=IO47
    • Must use SDIO library, not SPI SD library
  4. Button Mapping

    • User button: GPIO0 (BOOT key with pull-up)
    • Note: Also triggers download mode if held during reset
  5. RGB LED Support

    • WS2812/NeoPixel on GPIO42
    • 5V powered, single-wire control
  6. Battery Monitoring

    • ADC input on GPIO9
    • Voltage divider: multiply reading by 2 for actual battery voltage
    • Range: 0V - 4.2V (3.7V nominal)
  7. Audio System (if Bruce uses it)

    • ES8311 codec on I2C address 0x18 (shares bus with touch)
    • I2S pins: MCK=IO4, SCK=IO5, DO=IO6, LRC=IO7, DI=IO8
    • Audio enable: GPIO1 (must be LOW to enable, HIGH to disable)
    • FM8002E amplifier (max 2W @ 4Ω)
  8. Additional Available GPIO

    • IO2, IO3, IO14, IO21 are available for other Bruce features
    • Serial port: TX0=IO43, RX0=IO44
    • USB: IO19 (D-), IO20 (D+) for internal USB-serial
  9. Memory Configuration

    • 16MB external Flash (QSPI)
    • 8MB PSRAM (OPI)
    • Some features may need "Huge APP" partition scheme
  10. Power/Initialization Considerations

    • Backlight defaults to OFF - must turn on in init
    • Audio defaults to DISABLED - set GPIO1 LOW to enable
    • Shared reset pin means LCD and MCU reset together
    • I2C bus shared between touch and audio - manage carefully

CRITICAL WARNINGS:

  • SD card MUST use SDIO mode, not SPI (different library needed)
  • I2C bus is shared: touch (0x38) + audio codec (0x18)
  • Reset pin is shared: cannot reset LCD independently
  • Audio enable is inverted: LOW=enable, HIGH=disable
  • Battery ADC needs 2x multiplier for actual voltage
  • Don't use IO2, IO3, IO14, IO21 for I2C (they're GPIO only)
  • Total current can exceed 500mA with all peripherals active

Let me know if you need any additional information about the hardware, schematics, or have questions about specific features or implementation details.

also here is the lcdwiki it has everything about the board https://www.lcdwiki.com/2.8inch_ESP32-S3_Display

Thank you!