mirror of
https://github.com/esphome/esphome.git
synced 2025-02-15 01:18:16 +00:00
[waveshare_epaper] Rationalise and complete tests (#8221)
This commit is contained in:
parent
45b8810ab8
commit
66c35a9432
@ -120,7 +120,7 @@ MODELS = {
|
|||||||
"2.13in-ttgo-b74": ("a", WaveshareEPaperTypeAModel.TTGO_EPAPER_2_13_IN_B74),
|
"2.13in-ttgo-b74": ("a", WaveshareEPaperTypeAModel.TTGO_EPAPER_2_13_IN_B74),
|
||||||
"2.90in": ("a", WaveshareEPaperTypeAModel.WAVESHARE_EPAPER_2_9_IN),
|
"2.90in": ("a", WaveshareEPaperTypeAModel.WAVESHARE_EPAPER_2_9_IN),
|
||||||
"2.90inv2": ("a", WaveshareEPaperTypeAModel.WAVESHARE_EPAPER_2_9_IN_V2),
|
"2.90inv2": ("a", WaveshareEPaperTypeAModel.WAVESHARE_EPAPER_2_9_IN_V2),
|
||||||
"gdew029t5": ("c", GDEW029T5),
|
"gdew029t5": ("b", GDEW029T5),
|
||||||
"2.70in": ("b", WaveshareEPaper2P7In),
|
"2.70in": ("b", WaveshareEPaper2P7In),
|
||||||
"2.70in-b": ("b", WaveshareEPaper2P7InB),
|
"2.70in-b": ("b", WaveshareEPaper2P7InB),
|
||||||
"2.70in-bv2": ("b", WaveshareEPaper2P7InBV2),
|
"2.70in-bv2": ("b", WaveshareEPaper2P7InBV2),
|
||||||
@ -143,7 +143,7 @@ MODELS = {
|
|||||||
"7.50in-hd-b": ("b", WaveshareEPaper7P5InHDB),
|
"7.50in-hd-b": ("b", WaveshareEPaper7P5InHDB),
|
||||||
"2.13in-ttgo-dke": ("c", WaveshareEPaper2P13InDKE),
|
"2.13in-ttgo-dke": ("c", WaveshareEPaper2P13InDKE),
|
||||||
"2.13inv3": ("c", WaveshareEPaper2P13InV3),
|
"2.13inv3": ("c", WaveshareEPaper2P13InV3),
|
||||||
"1.54in-m5coreink-m09": ("c", GDEW0154M09),
|
"1.54in-m5coreink-m09": ("b", GDEW0154M09),
|
||||||
"13.3in-k": ("b", WaveshareEPaper13P3InK),
|
"13.3in-k": ("b", WaveshareEPaper13P3InK),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,8 +4,150 @@ spi:
|
|||||||
mosi_pin: ${mosi_pin}
|
mosi_pin: ${mosi_pin}
|
||||||
|
|
||||||
display:
|
display:
|
||||||
|
# 1.54 inch displays
|
||||||
- platform: waveshare_epaper
|
- platform: waveshare_epaper
|
||||||
|
id: epd_1_54
|
||||||
|
model: 1.54in
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_1_54v2
|
||||||
|
model: 1.54inv2
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_1_54v2b
|
||||||
|
model: 1.54inv2-b
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_1_54m09
|
||||||
|
model: 1.54in-m5coreink-m09
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
# 2.13 inch displays
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_13
|
||||||
|
model: 2.13in
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_13v2
|
||||||
|
model: 2.13inv2
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_13ttgo
|
||||||
|
model: 2.13in-ttgo
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_13ttgo_b1
|
||||||
model: 2.13in-ttgo-b1
|
model: 2.13in-ttgo-b1
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
cs_pin:
|
cs_pin:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
number: ${cs_pin}
|
number: ${cs_pin}
|
||||||
@ -21,8 +163,31 @@ display:
|
|||||||
full_update_every: 30
|
full_update_every: 30
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
- platform: waveshare_epaper
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_13ttgo_b73
|
||||||
|
model: 2.13in-ttgo-b73
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_13ttgo_b74
|
||||||
model: 2.13in-ttgo-b74
|
model: 2.13in-ttgo-b74
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
cs_pin:
|
cs_pin:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
number: ${cs_pin}
|
number: ${cs_pin}
|
||||||
@ -38,8 +203,129 @@ display:
|
|||||||
full_update_every: 30
|
full_update_every: 30
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
- platform: waveshare_epaper
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_13dke
|
||||||
|
model: 2.13in-ttgo-dke
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_13v3
|
||||||
|
model: 2.13inv3
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
# 2.7 inch displays
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_70
|
||||||
|
model: 2.70in
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_70b
|
||||||
|
model: 2.70in-b
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_70bv2
|
||||||
|
model: 2.70in-bv2
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_70v2
|
||||||
|
model: 2.70inv2
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
# 2.9 inch displays
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_90
|
||||||
model: 2.90in
|
model: 2.90in
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
cs_pin:
|
cs_pin:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
number: ${cs_pin}
|
number: ${cs_pin}
|
||||||
@ -56,8 +342,400 @@ display:
|
|||||||
reset_duration: 200ms
|
reset_duration: 200ms
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_90v2
|
||||||
|
model: 2.90inv2
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
full_update_every: 30
|
||||||
|
reset_duration: 200ms
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_90b
|
||||||
|
model: 2.90in-b
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_90bv3
|
||||||
|
model: 2.90in-bv3
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_90v2r2
|
||||||
|
model: 2.90inv2-r2
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
full_update_every: 30
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_2_90dke
|
||||||
|
model: 2.90in-dke
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
full_update_every: 30
|
||||||
|
reset_duration: 200ms
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_gdew029t5
|
||||||
|
model: gdew029t5
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
# 4.2 inch displays
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_4_20
|
||||||
|
model: 4.20in
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_4_20bv2
|
||||||
|
model: 4.20in-bv2
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
# 5.83 inch displays
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_5_83
|
||||||
|
model: 5.83in
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_5_83v2
|
||||||
|
model: 5.83inv2
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
# 7.5 inch displays
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_7_50
|
||||||
|
model: 7.50in
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_7_50bv2
|
||||||
|
model: 7.50in-bv2
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_7_50bv3
|
||||||
|
model: 7.50in-bv3
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_7_50bv3_bwr
|
||||||
|
model: 7.50in-bv3-bwr
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_7_50bc
|
||||||
|
model: 7.50in-bc
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_7_50v2
|
||||||
|
model: 7.50inv2
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_7_50v2alt
|
||||||
|
model: 7.50inv2alt
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_7_50hdb
|
||||||
|
model: 7.50in-hd-b
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
# 13.3 inch displays
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
id: epd_13_3k
|
||||||
|
model: 13.3in-k
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
|
- platform: waveshare_epaper
|
||||||
|
model: 2.90in
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
|
cs_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${cs_pin}
|
||||||
|
dc_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${dc_pin}
|
||||||
|
busy_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${busy_pin}
|
||||||
|
reset_pin:
|
||||||
|
allow_other_uses: true
|
||||||
|
number: ${reset_pin}
|
||||||
|
full_update_every: 30
|
||||||
|
reset_duration: 200ms
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
- platform: waveshare_epaper
|
- platform: waveshare_epaper
|
||||||
model: 2.90inv2
|
model: 2.90inv2
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
cs_pin:
|
cs_pin:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
number: ${cs_pin}
|
number: ${cs_pin}
|
||||||
@ -73,25 +751,10 @@ display:
|
|||||||
full_update_every: 30
|
full_update_every: 30
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- platform: waveshare_epaper
|
|
||||||
model: 2.90in-dke
|
|
||||||
cs_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${cs_pin}
|
|
||||||
dc_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${dc_pin}
|
|
||||||
busy_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${busy_pin}
|
|
||||||
reset_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${reset_pin}
|
|
||||||
full_update_every: 1
|
|
||||||
lambda: |-
|
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
||||||
- platform: waveshare_epaper
|
- platform: waveshare_epaper
|
||||||
model: 2.70in-b
|
model: 2.70in-b
|
||||||
|
spi_id: spi_waveshare_epaper
|
||||||
cs_pin:
|
cs_pin:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
number: ${cs_pin}
|
number: ${cs_pin}
|
||||||
@ -106,74 +769,10 @@ display:
|
|||||||
number: ${reset_pin}
|
number: ${reset_pin}
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
|
|
||||||
- platform: waveshare_epaper
|
- platform: waveshare_epaper
|
||||||
model: 2.70in-bv2
|
model: 2.70in-bv2
|
||||||
cs_pin:
|
spi_id: spi_waveshare_epaper
|
||||||
allow_other_uses: true
|
|
||||||
number: ${cs_pin}
|
|
||||||
dc_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${dc_pin}
|
|
||||||
busy_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${busy_pin}
|
|
||||||
reset_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${reset_pin}
|
|
||||||
lambda: |-
|
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
||||||
- platform: waveshare_epaper
|
|
||||||
model: 1.54in-m5coreink-m09
|
|
||||||
cs_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${cs_pin}
|
|
||||||
dc_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${dc_pin}
|
|
||||||
busy_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${busy_pin}
|
|
||||||
reset_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${reset_pin}
|
|
||||||
lambda: |-
|
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
||||||
- platform: waveshare_epaper
|
|
||||||
model: 2.13inv3
|
|
||||||
cs_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${cs_pin}
|
|
||||||
dc_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${dc_pin}
|
|
||||||
busy_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${busy_pin}
|
|
||||||
reset_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${reset_pin}
|
|
||||||
full_update_every: 30
|
|
||||||
lambda: |-
|
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
||||||
- platform: waveshare_epaper
|
|
||||||
model: 2.13inv2
|
|
||||||
cs_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${cs_pin}
|
|
||||||
dc_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${dc_pin}
|
|
||||||
busy_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${busy_pin}
|
|
||||||
reset_pin:
|
|
||||||
allow_other_uses: true
|
|
||||||
number: ${reset_pin}
|
|
||||||
full_update_every: 30
|
|
||||||
lambda: |-
|
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
||||||
- platform: waveshare_epaper
|
|
||||||
model: 7.50in-bv3-bwr
|
|
||||||
cs_pin:
|
cs_pin:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
number: ${cs_pin}
|
number: ${cs_pin}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
clk_pin: GPIO16
|
clk_pin: GPIO18
|
||||||
mosi_pin: GPIO17
|
mosi_pin: GPIO23
|
||||||
cs_pin: GPIO18
|
cs_pin: GPIO25
|
||||||
dc_pin: GPIO19
|
dc_pin: GPIO26
|
||||||
busy_pin: GPIO13
|
busy_pin: GPIO27
|
||||||
reset_pin: GPIO14
|
reset_pin: GPIO32
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
clk_pin: GPIO6
|
clk_pin: GPIO6
|
||||||
mosi_pin: GPIO7
|
mosi_pin: GPIO7
|
||||||
cs_pin: GPIO0
|
cs_pin: GPIO4
|
||||||
dc_pin: GPIO5
|
dc_pin: GPIO1
|
||||||
busy_pin: GPIO3
|
busy_pin: GPIO2
|
||||||
reset_pin: GPIO4
|
reset_pin: GPIO3
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
clk_pin: GPIO6
|
clk_pin: GPIO6
|
||||||
mosi_pin: GPIO7
|
mosi_pin: GPIO7
|
||||||
cs_pin: GPIO0
|
cs_pin: GPIO4
|
||||||
dc_pin: GPIO5
|
dc_pin: GPIO1
|
||||||
busy_pin: GPIO3
|
busy_pin: GPIO2
|
||||||
reset_pin: GPIO4
|
reset_pin: GPIO3
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
clk_pin: GPIO16
|
clk_pin: GPIO16
|
||||||
mosi_pin: GPIO17
|
mosi_pin: GPIO17
|
||||||
cs_pin: GPIO18
|
cs_pin: GPIO4
|
||||||
dc_pin: GPIO19
|
dc_pin: GPIO5
|
||||||
busy_pin: GPIO13
|
busy_pin: GPIO18
|
||||||
reset_pin: GPIO14
|
reset_pin: GPIO19
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
clk_pin: GPIO14
|
clk_pin: GPIO14
|
||||||
mosi_pin: GPIO13
|
mosi_pin: GPIO13
|
||||||
cs_pin: GPIO15
|
cs_pin: GPIO4
|
||||||
dc_pin: GPIO12
|
dc_pin: GPIO5
|
||||||
busy_pin: GPIO5
|
busy_pin: GPIO15
|
||||||
reset_pin: GPIO4
|
reset_pin: GPIO16
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
@ -2,8 +2,8 @@ substitutions:
|
|||||||
clk_pin: GPIO2
|
clk_pin: GPIO2
|
||||||
mosi_pin: GPIO3
|
mosi_pin: GPIO3
|
||||||
cs_pin: GPIO5
|
cs_pin: GPIO5
|
||||||
dc_pin: GPIO4
|
dc_pin: GPIO6
|
||||||
busy_pin: GPIO0
|
busy_pin: GPIO7
|
||||||
reset_pin: GPIO1
|
reset_pin: GPIO8
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user