An open API service indexing awesome lists of open source software.

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

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()

返回电子纸的高度