|
本帖最后由 peter81015 于 2021-12-18 22:22 编辑
目前我是用vmware直接运行homeassistant OS的,虚拟机界面最后停在ha>界面,能够正常由浏览器打开homeassistant 界面。我添加了ESPhome插件,已实现了一些设备接入。
1、现想在nodemcu接上SSD1306的液晶屏显示,yaml文件部分如下:
-------------------------------------------------
display:
- platform: ssd1306_i2c
model: "SSD1306 128x64"
i2c_id: bus_a
address: 0x3C
# lambda: |-
# it.print(0, 0, id(my_font), "Hello World!");
------------------------------------------------------
这里的id(my_font)查了官方文档,如下
To use fonts you will need to have the python pillow package installed, as ESPHome uses that package to translate the TrueType files into an internal format. If you’re running this as a Home Assistant add-on or with the official ESPHome docker image, it should already be installed. Otherwise you need to install it using pip install pillow.
意思是要安装一个python包pillow,但是在VMware虚拟机的ha>
没有办法运行pip install pillow命令,不是说homeassistant OS是功能最全的吗,没有这个包,请问大佬们该怎么做?
我记得SSD1306好像是自己有带字库的?Arduino里直接printf就可以输出文字
|
|