E-Ink
目录 |
1 Overview
电子纸采用“微胶囊电泳显示”技术进行图像显示,其基本原理是悬浮在液体中的带电纳米粒子受到电场作用而产生迁移。电子纸显示屏是靠反射环境光来显示图案的,不需要背光,在环境光下,电子纸显示屏清晰可视,可视角度几乎达到了 180°。因此,电子纸显示屏非常适合阅读。
像素与字节的关系:
对于黑白图片:
- 白色:□,对应 1
- 黑色:■,对应 0
一个点在图形上一般称之为像素点(pixel),而颜色不是 1 就是 0,也就是 1 个位就可以标识颜色:1Pixel = 1bit
一个字节里面可表示 8 个像素点!
以 16 个像素点为例,假设前 8 个像素点为黑,后 8 个像素点为白,则:像素点 1-16,对应这 0 位到 15 位,0 表示黑色,1 表示白色:
控制0x3C或0x50(具体参照数据手册)寄存器可以调节边框颜色,在例程中可以调节 Border Waveform Control 寄存器或者 VCOM AND DATA INERTVAL SETTING 进行设置\
2 Fonts
- Futura_Medium_16px: VBat
- Futura_Heavy_20px: Bar
- Futura_Medium_19px: dev_id
- Futura_Medium_55px: Pressure
- Futura_Medium_32px: MAX
- Futura_Heavy_20px: FW_VER, 1.6MP, Send
- Futura_Medium_32px: send_cnt
3 epd1in54v1
适用硬件:
- 第一批 FPC丝印: WFC0000CZ07
- Waveshare 1.54 inch V1(没有采购)
参数:
- 外形尺寸:37.32× 31.8×1.05mm
- 显示尺寸:27.6mm × 27.6mm
- 工作电压:3.3V (3.7V max)
- 通信接口:SPI
- 点距:0.138 * 0.138
- 分辨率:200*200
- 灰度等级:2
- 局部刷新 :0.3s
- 全局刷新 :2s
- 刷新功耗 : 26.4mW(typ.)
- 休眠电流 :<0.01uA(接近0)
1.54寸(1.54inch e-paper c:152×152,其他:200×200):
- epd1in54: 对应1.54inch e-paper V1(黑白)版本测试程序,购买日期早于2019-11-22为V1版本,目前已停产;
- epd1in54_V2:对应1.54inch e-paper V2(黑白)版本测试程序,购买日期晚于2019-11-22为V2版本,目前出货版本,背面贴有V2标识;
- epd1in54b: 对应1.54inch e-paper B(黑白红)测试程序;
- epd1in54c: 对应1.54inch e-paper C(黑白黄)测试程序;
SPI 时序:
由于墨水屏只需要显示,没有 MISO 数据线。
- CS:从机片选,当CS为低电平的时候,芯片使能
- DC:数据/命令控制引脚,当 DC=0 时写入命令;DC=1 时写入数据
- SCLK: SPI通信时钟
- SDIN:SPI 通信 MOSI 主机发送,从机接收
3.1 Image2Lcd
- GDEM0154E97LT图片制作及取模说明.pdf
- 扫描方式:选择“数据水平,字节垂直”
3.2 Fonts
4 GDEH0154D67 (SSD1681)
1.54寸黑白单色电子纸显示屏 200×200分辨率电子墨水屏
适用第二、三批 FPC 丝印:
- HINK-E0154A07-A1
- FPC-B001
参数:
- Resolution: 200 source outputs, 200 gate outputs, 1 VCOM and 1VBD (for border)
- Power supply:
- VCI: 2.2 to 3.7V
- VDDIO: Connect to VCI
- VDD: 1.8V, regulate from VCI supply
- On chip display RAM
- Mono B/W: 200x200 bits
- Mono Red: 200x200 bits
4.1 LUT
Waveform Look Up Table
4.2 Data Entry mode setting
- CMD: 0x11
- A[2:0]:
- A[2]: Set the direction in which the address counter is updated automatically after data are written to the RAM.
- A[2] = 0, the address counter is updated in the X direction.
- A[2] = 1, the address counter is updated in the Y direction.
- A[1:0]: The setting of incrementing or decrementing of the address counter can be made independently in each upper and lower bit of the address.
- 00 –Y decrement, X decrement,
- 01 –Y decrement, X increment,
- 10 –Y increment, X decrement,
- 11 –Y increment, X increment [POR]
4.3 Border Waveform Control
控制 0x3C 或 0x50(具体参照数据手册)寄存器可以调节边框颜色,在例程中可以调节 Border Waveform Control 寄存器或者 VCOM AND DATA INERTVAL SETTING 进行设置
4.4 Image2Lcd
先用 Gimp 做一个灰度图片,导出为 Windows bitmap (*.bmp),再用 Win10 带的画板打开后,存一下。 (Gimp 导出的 bmp,Image2Lcd 无法用)
- Output file: C array (*.c)
- 图片制作及取模说明文档,扫描方式统一为:“水平扫描”
- max width & height: 200 x 200
- Reverse color
- 其他都不用选
5 Reference
- https://www.waveshare.net/wiki/1.54inch_e-Paper_Module
- 1.54 inch e-Paper datasheet
- 佳显墨水屏
- 1.54 inch GDEH0154D67 datasheetSSD1681 datasheetHomePage