找回密码
 立即注册
搜索
查看: 3732|回复: 4

[求助] 请问大家有试过ESPHOME ST7920的LCD12864吗?

[复制链接]

79

主题

1386

回帖

2万

积分

元老级技术达人

积分
28664
金钱
27159
HASS币
290
发表于 2021-9-21 12:54:16 | 显示全部楼层
本帖最后由 dscao 于 2021-9-21 12:57 编辑
Configuration variables:
cs_pin (Required, Pin Schema): Sometimes also called RS. For ST7920 should be inverted.

width (Required, int): The “width” of a screen. Defaults to 128.

height (Required, int): The “height” of a screen. Defaults to 64;

rotation (Optional): Set the rotation of the display. Everything you draw in lambda: will be rotated by this option. One of 0° (default), 90°, 180°, 270°.

lambda (Optional, lambda): The lambda to use for rendering the content on the display. See Display Rendering Engine for more information.

update_interval (Optional, Time): The interval to re-draw the screen. Defaults to 60s.

pages (Optional, list): Show pages instead of a single lambda. See Display Pages.

id (Optional, ID): Manually specify the ID used for code generation.
To use fonts you first have to define a font object in your ESPHome configuration file. Just grab a .ttf file from somewhere on the internet and place it, for example, inside a fonts folder next to your configuration file.

Next, create a font: section in your configuration:

font:
  - file: "fonts/Comic Sans MS.ttf"
    id: my_font
    size: 20

display:
  # ...
ssd1306默认是:
  • update_interval (Optional, Time): The interval to re-draw the screen. Defaults to 5s.

这个默认60s
update_interval: 1s  这些设置成不起作用吗?没用过这款,只用过ssd1306,而且也没使用秒显示。不看文档也没注意这些。
回复

使用道具 举报

79

主题

1386

回帖

2万

积分

元老级技术达人

积分
28664
金钱
27159
HASS币
290
发表于 2021-9-21 13:09:39 | 显示全部楼层
看图片,这个引脚很多,屏幕面积也大不少,应该比ssd1306看着舒服一些吧。硬件上与esp32或8266接线方面会比较复杂吗?有没有接线方面的教程看看?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-6-29 14:11 , Processed in 1.197798 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表