Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: esphome-web-813d00
- friendly_name: ESPHomeDisplay
- min_version: 2024.11.0
- name_add_mac_suffix: false
- on_boot:
- priority: 800
- then:
- - lambda: |-
- id(disp).enable();
- id(disp).transfer_byte(0x11);
- id(disp).disable();
- esp32:
- board: esp32-s3-devkitc-1
- framework:
- type: esp-idf
- psram:
- mode: octal
- speed: 80MHz
- # Enable logging
- logger:
- font:
- - file: "gfonts://Roboto"
- id: roboto_font
- size: 20
- # Enable Home Assistant API
- api:
- # Allow Over-The-Air updates
- ota:
- - platform: esphome
- wifi:
- ssid: !secret wifi_ssid
- password: !secret wifi_password
- # Example configuration entry with 2 sensors and filter
- sensor:
- - platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB
- name: "WiFi Signal dB"
- id: wifi_signal_db
- update_interval: 60s
- entity_category: "diagnostic"
- - platform: copy # Reports the WiFi signal strength in %
- source_id: wifi_signal_db
- name: "WiFi Signal Percent"
- filters:
- - lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
- unit_of_measurement: "Signal %"
- entity_category: "diagnostic"
- device_class: ""
- spi:
- clk_pin: GPIO12 # Likely SCK (SPI Clock)
- mosi_pin: GPIO13 # Likely MOSI (SPI Data)
- display:
- - platform: ili9xxx
- model: st7789v
- dimensions:
- height: 170
- width: 320
- offset_height: 35
- offset_width: 0
- color_order: bgr
- invert_colors: true
- data_rate: 80MHz
- spi_mode: 0
- cs_pin: GPIO10 # Could be Chip Select (not confirmed)
- dc_pin: GPIO11 # Likely Data/Command (D/C)
- reset_pin: GPIO1 # Likely Reset (RST)
- update_interval: 1s
- id: disp
- rotation: 270
- show_test_card: true
- lambda: |-
- it.fill(Color::BLACK);
- delay(100);
- it.print(10, 10, id(roboto_font), Color::WHITE, TextAlign::TOP_LEFT, "Hello, World!");
- output:
- - platform: gpio
- pin:
- number: GPIO14
- allow_other_uses: true # Adjust based on your board
- id: backlight_control
- light:
- - platform: binary
- output: backlight_control
- name: "Display Backlight"
- restore_mode: ALWAYS_ON
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement