mirror of
https://github.com/esphome/esphome.git
synced 2026-05-31 17:06:40 +08:00
[epaper_spi] Add Waveshare 7.5in e-Paper (H) (#13991)
This commit is contained in:
committed by
GitHub
parent
066419019f
commit
f2cb5db9e0
@@ -84,3 +84,35 @@ jd79660.extend(
|
|||||||
(0xA5, 0x00,),
|
(0xA5, 0x00,),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Waveshare 7.5-H
|
||||||
|
#
|
||||||
|
# Vendor init derived from vendor sample code
|
||||||
|
# <https://github.com/waveshareteam/e-Paper/blob/master/E-paper_Separate_Program/7in5_e-Paper_H/ESP32/EPD_7in5h.cpp>
|
||||||
|
# Compatible MIT license, see esphome/LICENSE file.
|
||||||
|
#
|
||||||
|
# Note: busy pin uses LOW=busy, HIGH=idle. Configure with inverted: true in YAML.
|
||||||
|
#
|
||||||
|
# fmt: off
|
||||||
|
jd79660.extend(
|
||||||
|
"Waveshare-7.5in-H",
|
||||||
|
width=800,
|
||||||
|
height=480,
|
||||||
|
|
||||||
|
initsequence=(
|
||||||
|
(0x00, 0x0F, 0x29,),
|
||||||
|
(0x06, 0x0F, 0x8B, 0x93, 0xA1,),
|
||||||
|
(0x41, 0x00,),
|
||||||
|
(0x50, 0x37,),
|
||||||
|
(0x60, 0x02, 0x02,),
|
||||||
|
(0x61, 800 // 256, 800 % 256, 480 // 256, 480 % 256,), # RES: 800x480
|
||||||
|
(0x62, 0x98, 0x98, 0x98, 0x75, 0xCA, 0xB2, 0x98, 0x7E,),
|
||||||
|
(0x65, 0x00, 0x00, 0x00, 0x00,),
|
||||||
|
(0xE7, 0x1C,),
|
||||||
|
(0xE3, 0x00,),
|
||||||
|
(0xE9, 0x01,),
|
||||||
|
(0x30, 0x08,),
|
||||||
|
# Power On (0x04): Must be early part of init seq = Disabled later!
|
||||||
|
(0x04,),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|||||||
@@ -57,6 +57,23 @@ display:
|
|||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
number: GPIO4
|
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
|
- platform: epaper_spi
|
||||||
model: seeed-reterminal-e1002
|
model: seeed-reterminal-e1002
|
||||||
- platform: epaper_spi
|
- platform: epaper_spi
|
||||||
|
|||||||
Reference in New Issue
Block a user