mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 12:55:46 +01:00
Add Waveshare 1.47in 172x320 to ST7789v component (#5884)
This commit is contained in:
parent
c92715e403
commit
a784f1e691
@ -97,6 +97,19 @@ MODELS = {
|
|||||||
CONF_BACKLIGHT_PIN: "GPIO15",
|
CONF_BACKLIGHT_PIN: "GPIO15",
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
"WAVESHARE_1.47IN_172X320": model_spec(
|
||||||
|
presets={
|
||||||
|
CONF_HEIGHT: 320,
|
||||||
|
CONF_WIDTH: 172,
|
||||||
|
CONF_OFFSET_HEIGHT: 34,
|
||||||
|
CONF_OFFSET_WIDTH: 0,
|
||||||
|
CONF_ROTATION: 90,
|
||||||
|
CONF_CS_PIN: "GPIO21",
|
||||||
|
CONF_DC_PIN: "GPIO22",
|
||||||
|
CONF_RESET_PIN: "GPIO23",
|
||||||
|
CONF_BACKLIGHT_PIN: "GPIO4",
|
||||||
|
}
|
||||||
|
),
|
||||||
"CUSTOM": model_spec(),
|
"CUSTOM": model_spec(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user