Hi,
I’m new to Home Assistant and ESPHome so, please, be patient with me.
I’m trying to connect a ILI9488 display (Amazon.com: Fafeicy LCD Module, TFT Touch Screen Display Serial Peripheral Interface ILI9488 HD 480x320 3.5in (1 PCS) : Industrial & Scientific) to and ESP32-S3-DevKitc-1 N16R8.
When i try the show_test_card = true
i correctly have the test image, but when i try to use LVGL I have these strange results
I’ve tried reading other post but with no luck.
Does anyone have an idea of what the problem could be?
Here is my config file which can be definitely optimized:
esphome:
name: esp32-s3-tft-test
friendly_name: ESP32-S3-TFT-Test
platformio_options:
build_flags: "-DBOARD_HAS_PSRAM"
board_build.arduino.memory_type: qio_opi
board_build.flash_mode: dio
on_boot:
- light.turn_on:
id: led_strip
blue: 100%
brightness: 60%
effect: fast pulse
- delay: 500ms
- light.turn_off: led_strip
esp32:
board: esp32-s3-devkitc-1
framework:
type: esp-idf
sdkconfig_options:
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240: "y"
CONFIG_ESP32S3_DATA_CACHE_64KB: "y"
CONFIG_ESP32S3_DATA_CACHE_LINE_64B: "y"
CONFIG_AUDIO_BOARD_CUSTOM: "y"
flash_size: 16MB
psram:
mode: octal # Please change this to quad for N8R2 and octal for N16R8
speed: 80MHz
# Enable Home Assistant API
api:
encryption:
key: "******************************"
on_client_connected:
then:
- delay: 50ms
- light.turn_off: led_strip
# Enable logging
logger:
level: VERBOSE
logs:
ili9xxx: VERBOSE
ota:
- platform: esphome
password: "****************************"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
reboot_timeout: 15min
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32-S3"
password: ""
power_save_mode: none
enable_on_boot: True
fast_connect: On
output_power: 8.5
captive_portal:
# Define a PWM output on the ESP32
output:
- platform: ledc
pin: GPIO47
id: backlight_pwm
light:
- platform: esp32_rmt_led_strip
id: led_strip
rgb_order: GRB
pin: GPIO09
num_leds: 29
rmt_channel: 1
chipset: ws2812
name: "Led Strip"
effects:
- pulse:
name: "Fast Pulse"
transition_length: 0.5s
update_interval: 0.5s
min_brightness: 0%
max_brightness: 100%
- addressable_scan:
name: "Scan Effect With Custom Values"
move_interval: 5ms
scan_width: 10
- platform: monochromatic
output: backlight_pwm
name: "Display Backlight"
id: back_light
restore_mode: ALWAYS_ON
#SPI Configuration for Display
spi:
clk_pin: GPIO17 # SCK
mosi_pin: GPIO21 #SDA (SDI-MOSI)
display:
- platform: ili9xxx
model: ili9488
id: ha_display
dc_pin: GPIO16
reset_pin: GPIO48
cs_pin: GPIO5
invert_colors: true
auto_clear_enabled: false
update_interval: never
rotation: 270
dimensions:
height: 320
width: 480
offset_height: 0
offset_width: 0
data_rate: 40MHz
lvgl: