https://github.com/lbuque/epd_binding_micropython
https://github.com/lbuque/epd_binding_micropython
eink einkdisplay epd esp32 esp32-s3 micropython
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lbuque/epd_binding_micropython
- Owner: lbuque
- Created: 2023-01-13T08:07:33.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-13T08:08:32.000Z (over 2 years ago)
- Last Synced: 2025-03-15T13:41:44.895Z (7 months ago)
- Topics: eink, einkdisplay, epd, esp32, esp32-s3, micropython
- Language: C
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EPD Driver for MicroPython
该模块为并口墨水屏提供驱动接口。目前支持的墨水屏显示器有`ED047TC1`。相关产品有[TTGO T5-4.7 Inch E-paper](https://www.aliexpress.com/item/1005002006058892.html).
## Class EPD47
### Constructors
#### class epd.EPD47()
返回EPD47的对象
### Methods
#### EPD47.power(active)
打开或者关闭电子纸的电源,并返回当前的电源状态。
在使用此类上的任何其他方法之前,必须先激活电源。
#### EPD47.bitmap(framebuffer, x, y, width, height)
显示位图数据。
- `framebuffer`: List 类型。位图数据。
- `x`: Numbers 类型。x坐标,范围为0 - 960。
- `y`: Numbers 类型。y坐标,范围为0 - 540。
- `width`: Numbers 类型。显示区域的宽度,范围为0 - 960。
- `height`: Numbers 类型。显示区域的高度,范围为0 - 540。
#### EPD47.clear([x=0, y=0, width=960, height=540])
清除屏幕
#### EPD47.width()
返回电子纸的宽度
#### EPD47.height()
返回电子纸的高度