mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 02:02:51 +00:00
Co-authored-by: Pierre <pierre@mysweethome.ch> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
320 lines
8.4 KiB
YAML
320 lines
8.4 KiB
YAML
packages:
|
|
spi: !include ../../test_build_components/common/spi/esp32-s3-idf.yaml
|
|
|
|
psram:
|
|
mode: octal
|
|
|
|
esphome:
|
|
on_boot:
|
|
then:
|
|
- epaper_spi.full_update_next: epaper_partial
|
|
|
|
display:
|
|
- platform: epaper_spi
|
|
spi_id: spi_bus
|
|
model: spectra-e6
|
|
dimensions:
|
|
width: 800
|
|
height: 480
|
|
cs_pin:
|
|
allow_other_uses: true
|
|
number: GPIO5
|
|
dc_pin:
|
|
allow_other_uses: true
|
|
number: GPIO17
|
|
reset_pin:
|
|
allow_other_uses: true
|
|
number: GPIO16
|
|
busy_pin:
|
|
allow_other_uses: true
|
|
number: GPIO4
|
|
rotation: 0
|
|
update_interval: 60s
|
|
lambda: |-
|
|
it.circle(64, 64, 50, Color::BLACK);
|
|
|
|
- platform: epaper_spi
|
|
spi_id: spi_bus
|
|
model: waveshare-1.54in-G
|
|
cs_pin:
|
|
allow_other_uses: true
|
|
number: GPIO5
|
|
dc_pin:
|
|
allow_other_uses: true
|
|
number: GPIO17
|
|
reset_pin:
|
|
allow_other_uses: true
|
|
number: GPIO16
|
|
busy_pin:
|
|
allow_other_uses: true
|
|
number: GPIO4
|
|
|
|
- platform: epaper_spi
|
|
spi_id: spi_bus
|
|
model: waveshare-2.13in-v3
|
|
cs_pin:
|
|
allow_other_uses: true
|
|
number: GPIO5
|
|
dc_pin:
|
|
allow_other_uses: true
|
|
number: GPIO17
|
|
reset_pin:
|
|
allow_other_uses: true
|
|
number: GPIO16
|
|
busy_pin:
|
|
allow_other_uses: true
|
|
number: GPIO4
|
|
|
|
- platform: epaper_spi
|
|
spi_id: spi_bus
|
|
model: waveshare-7.5in-H
|
|
cs_pin:
|
|
allow_other_uses: true
|
|
number: GPIO5
|
|
dc_pin:
|
|
allow_other_uses: true
|
|
number: GPIO17
|
|
reset_pin:
|
|
allow_other_uses: true
|
|
number: GPIO16
|
|
busy_pin:
|
|
allow_other_uses: true
|
|
number: GPIO4
|
|
inverted: true
|
|
|
|
- platform: epaper_spi
|
|
model: seeed-reterminal-e1002
|
|
- platform: epaper_spi
|
|
model: seeed-reterminal-e1004
|
|
cs_pin: 33
|
|
cs1_pin: 34
|
|
dc_pin: 35
|
|
reset_pin: 36
|
|
busy_pin: 37
|
|
enable_pin: 39
|
|
- platform: epaper_spi
|
|
id: epaper_partial
|
|
model: seeed-ee04-mono-4.26
|
|
full_update_every: 10
|
|
# Override pins to avoid conflict with other display configs
|
|
busy_pin: 43
|
|
dc_pin: 42
|
|
|
|
# Seeed reTerminal Sticky, four-level grayscale (800x480, SSD1677)
|
|
# dc_pin/reset_pin overridden to avoid conflict with other display configs
|
|
# full_update_every is not supported by this model, so left at its default of 1
|
|
- platform: epaper_spi
|
|
model: seeed-reterminal-sticky-gray4
|
|
dc_pin: 45
|
|
reset_pin: 9
|
|
lambda: |-
|
|
it.filled_rectangle(0, 0, it.get_width(), it.get_height(), Color(170, 170, 170));
|
|
it.circle(it.get_width() / 2, it.get_height() / 2, 100, Color::BLACK);
|
|
|
|
# WeAct 2.13" 3-color e-paper (122x250, SSD1680)
|
|
- platform: epaper_spi
|
|
spi_id: spi_bus
|
|
model: weact-2.13in-3c
|
|
cs_pin:
|
|
allow_other_uses: true
|
|
number: GPIO5
|
|
dc_pin:
|
|
allow_other_uses: true
|
|
number: GPIO17
|
|
reset_pin:
|
|
allow_other_uses: true
|
|
number: GPIO16
|
|
busy_pin:
|
|
allow_other_uses: true
|
|
number: GPIO4
|
|
lambda: |-
|
|
it.filled_rectangle(0, 0, it.get_width(), it.get_height(), Color::WHITE);
|
|
it.circle(it.get_width() / 2, it.get_height() / 2, 20, Color::BLACK);
|
|
it.circle(it.get_width() / 2, it.get_height() / 2, 15, Color(255, 0, 0));
|
|
|
|
# WeAct 2.9" 3-color e-paper (128x296, SSD1683)
|
|
- platform: epaper_spi
|
|
spi_id: spi_bus
|
|
model: weact-2.9in-3c
|
|
cs_pin:
|
|
allow_other_uses: true
|
|
number: GPIO5
|
|
dc_pin:
|
|
allow_other_uses: true
|
|
number: GPIO17
|
|
reset_pin:
|
|
allow_other_uses: true
|
|
number: GPIO16
|
|
busy_pin:
|
|
allow_other_uses: true
|
|
number: GPIO4
|
|
lambda: |-
|
|
it.filled_rectangle(0, 0, it.get_width(), it.get_height(), Color::WHITE);
|
|
it.circle(it.get_width() / 2, it.get_height() / 2, 20, Color::BLACK);
|
|
it.circle(it.get_width() / 2, it.get_height() / 2, 15, Color(255, 0, 0));
|
|
|
|
# WeAct 4.2" 3-color e-paper (400x300, SSD1683)
|
|
- platform: epaper_spi
|
|
spi_id: spi_bus
|
|
model: weact-4.2in-3c
|
|
cs_pin:
|
|
allow_other_uses: true
|
|
number: GPIO5
|
|
dc_pin:
|
|
allow_other_uses: true
|
|
number: GPIO17
|
|
reset_pin:
|
|
allow_other_uses: true
|
|
number: GPIO16
|
|
busy_pin:
|
|
allow_other_uses: true
|
|
number: GPIO4
|
|
lambda: |-
|
|
it.filled_rectangle(0, 0, it.get_width(), it.get_height(), Color::WHITE);
|
|
it.circle(it.get_width() / 2, it.get_height() / 2, 30, Color::BLACK);
|
|
it.circle(it.get_width() / 2, it.get_height() / 2, 20, Color(255, 0, 0));
|
|
|
|
- platform: epaper_spi
|
|
spi_id: spi_bus
|
|
model: goodisplay-gdey042t81-4.2
|
|
cs_pin:
|
|
allow_other_uses: true
|
|
number: GPIO5
|
|
dc_pin:
|
|
allow_other_uses: true
|
|
number: GPIO17
|
|
reset_pin:
|
|
allow_other_uses: true
|
|
number: GPIO16
|
|
busy_pin:
|
|
allow_other_uses: true
|
|
number: GPIO4
|
|
|
|
# Waveshare 2.13" V4 B series 3-color e-paper (122x250, BWR, SSD1680)
|
|
- platform: epaper_spi
|
|
spi_id: spi_bus
|
|
model: waveshare-2.13in-bv4
|
|
cs_pin:
|
|
allow_other_uses: true
|
|
number: GPIO5
|
|
dc_pin:
|
|
allow_other_uses: true
|
|
number: GPIO17
|
|
reset_pin:
|
|
allow_other_uses: true
|
|
number: GPIO16
|
|
busy_pin:
|
|
allow_other_uses: true
|
|
number: GPIO4
|
|
lambda: |-
|
|
it.filled_rectangle(0, 0, it.get_width(), it.get_height(), Color::WHITE);
|
|
it.circle(it.get_width() / 2, it.get_height() / 2, 20, Color::BLACK);
|
|
it.circle(it.get_width() / 2, it.get_height() / 2, 15, Color(255, 0, 0));
|
|
|
|
# Soldered Inkplate 2 3-color e-paper (104x212, BWR)
|
|
- platform: epaper_spi
|
|
spi_id: spi_bus
|
|
model: inkplate2
|
|
cs_pin:
|
|
allow_other_uses: true
|
|
number: GPIO5
|
|
dc_pin:
|
|
allow_other_uses: true
|
|
number: GPIO17
|
|
reset_pin:
|
|
allow_other_uses: true
|
|
number: GPIO16
|
|
busy_pin:
|
|
allow_other_uses: true
|
|
number: GPIO4
|
|
lambda: |-
|
|
it.filled_rectangle(0, 0, it.get_width(), it.get_height(), Color::WHITE);
|
|
it.circle(it.get_width() / 2, it.get_height() / 2, 20, Color::BLACK);
|
|
it.circle(it.get_width() / 2, it.get_height() / 2, 15, Color(255, 0, 0));
|
|
|
|
# Soldered Inkplate 6COLOR 7-color e-paper (600x448, UC8159-family)
|
|
- platform: epaper_spi
|
|
spi_id: spi_bus
|
|
model: inkplate6color
|
|
cs_pin:
|
|
allow_other_uses: true
|
|
number: GPIO5
|
|
dc_pin:
|
|
allow_other_uses: true
|
|
number: GPIO17
|
|
reset_pin:
|
|
allow_other_uses: true
|
|
number: GPIO16
|
|
busy_pin:
|
|
allow_other_uses: true
|
|
number: GPIO4
|
|
inverted: true
|
|
lambda: |-
|
|
it.filled_rectangle(0, 0, it.get_width(), it.get_height(), Color::WHITE);
|
|
it.circle(it.get_width() / 2, it.get_height() / 2, 30, Color::BLACK);
|
|
it.circle(it.get_width() / 2, it.get_height() / 2, 20, Color(255, 0, 0));
|
|
it.circle(it.get_width() / 2, it.get_height() / 2, 10, Color(255, 165, 0));
|
|
|
|
# Waveshare 7.5" V2 BWR (800x480, UC8179 controller, EDP_7in5b_V2)
|
|
- platform: epaper_spi
|
|
spi_id: spi_bus
|
|
model: waveshare-7.5in-bv2-bwr
|
|
cs_pin:
|
|
allow_other_uses: true
|
|
number: GPIO5
|
|
dc_pin:
|
|
allow_other_uses: true
|
|
number: GPIO17
|
|
reset_pin:
|
|
allow_other_uses: true
|
|
number: GPIO16
|
|
busy_pin:
|
|
allow_other_uses: true
|
|
number: GPIO4
|
|
lambda: |-
|
|
it.filled_rectangle(0, 0, it.get_width(), it.get_height(), Color::WHITE);
|
|
it.circle(it.get_width() / 2, it.get_height() / 2, 100, Color::BLACK);
|
|
it.circle(it.get_width() / 2, it.get_height() / 2, 60, Color(255, 0, 0));
|
|
|
|
# Waveshare 7.5" V2 mono (800x480, UC8179 controller, EPD_7in5_V2)
|
|
# full_update_every > 1 exercises the fast/partial refresh paths
|
|
- platform: epaper_spi
|
|
spi_id: spi_bus
|
|
model: waveshare-7.5in-v2
|
|
full_update_every: 4
|
|
cs_pin:
|
|
allow_other_uses: true
|
|
number: GPIO5
|
|
dc_pin:
|
|
allow_other_uses: true
|
|
number: GPIO17
|
|
reset_pin:
|
|
allow_other_uses: true
|
|
number: GPIO16
|
|
busy_pin:
|
|
allow_other_uses: true
|
|
number: GPIO4
|
|
inverted: true
|
|
lambda: |-
|
|
it.filled_rectangle(0, 0, it.get_width(), it.get_height(), Color::WHITE);
|
|
it.circle(it.get_width() / 2, it.get_height() / 2, 100, Color::BLACK);
|
|
|
|
# Seeed reTerminal E1001 - 7.5" mono e-paper (800x480, UC8179)
|
|
# Pins overridden to avoid conflicts with the E1002 defaults above
|
|
- platform: epaper_spi
|
|
spi_id: spi_bus
|
|
model: seeed-reterminal-e1001
|
|
cs_pin:
|
|
allow_other_uses: true
|
|
number: GPIO5
|
|
dc_pin:
|
|
allow_other_uses: true
|
|
number: GPIO17
|
|
reset_pin:
|
|
allow_other_uses: true
|
|
number: GPIO16
|
|
busy_pin:
|
|
allow_other_uses: true
|
|
number: GPIO4
|
|
inverted: true
|