来自Waveshare Wiki
跳转至: 导航搜索
 
(未显示5个用户的79个中间版本)
第1行: 第1行:
<div class="tabber">
+
{{#tweekihide:firstHeading|sidebar-left|sidebar-right}}__NOTOC__
<!--<div class="tabbertab" title="注意事项">
 
{{e-Paper-precautions}}
 
</div>-->
 
  
<div class="tabbertab" title="说明">
+
<div style="background-color: #343434;text-align: center;color: white;padding: 20px;margin: 8px;">
+
=2.13inch e-Paper HAT文档教程=
{{外围模块|colorscheme=blue
 
|name = 2.13inch e-Paper
 
|img =<div class="tabber"><div class="tabbertab" title="裸屏">[[File:2.13inch-e-Paper-1.jpg|360px |alt=2.13inch e-Paper|link=http://{{SERVERNAME}}/shop/2.13inch-e-Paper.htm]]</div><div class="tabbertab" title="带驱动板"> [[File:2.13inch-e-Paper-HAT-intro.jpg|360px |alt=2.13inch e-Paper HAT|link=http://{{SERVERNAME}}/shop/2.13inch-e-Paper-HAT.htm | 2.13inch e-Paper HAT]]</div></div>
 
|category1=树莓派
 
|category2=树莓派扩展板
 
|category3=e-Paper
 
|category4=e-Paper模块
 
|brand=Waveshare
 
|feature =  树莓派2.13英寸墨水屏 可局部刷新
 
|feature-name1= 分辨率
 
|feature-value1= 250x122
 
|feature-name2= 显示颜色
 
|feature-value2= 黑、白
 
|interface1 = SPI
 
|interface2 = RPi
 
|Product1 = {{e-Paper-Module-HAT-Related}}
 
}}
 
 
 
==版本说明==
 
'''由于芯片升级,2.13inch e-Paper 将升级为2.13inch e-Paper v2版本。新老程序无法兼容。v2版本与老版本对比,除了芯片和驱动程序之外,其他外观和功能都兼容。如果您是老客户,需要再次采购新屏幕的话,注意更新程序。如果您是第一次采购,并且拿到的是新款屏幕,直接使用新版程序即可。新版屏幕的标签上带有v2的后缀。请注意区分'''
 
 
 
==特点==
 
*尺寸: 2.13 inch
 
*外形尺寸(裸屏):59.2mm × 29.2mm × 1.05mm
 
*外形尺寸(驱动板):65mmx30.2mm
 
*显示尺寸:48.55mm × 23.71mm
 
*工作电压:3.3V/5V
 
*通信接口:SPI
 
*点距:0.194* 0.194
 
*分辨率:250*122
 
*显示颜色:黑、白
 
*灰度等级:2
 
*局部刷新 :0.3s
 
*全局刷新 :2s
 
*刷新功耗 : 26.4mW(typ.)
 
*待机功耗 :<=0.017mW
 
【备注】:
 
刷新时间:刷新时间为实验测试数据,实际刷新时间会有误差,以实际效果为准。全局刷新过程中会有闪烁效果,这个是正常现象<br />
 
功耗:功耗数据为实验测试数据,实际功耗由于驱动板的存在和实际使用情况的不同,会有一定误差,以实际效果为准<br />
 
==SPI 通信时序==
 
[[File:e-paper-spi-timing.jpg|700px]]
 
 
 
由于墨水屏只需要显示,这里将从机发,主机收的数据线(MISO)隐藏。<br />
 
CS:从机片选,当CS为低电平的时候,芯片使能<br />
 
DC:数据/命令控制引脚,当DC=0时写入命令;DC=1时写入数据<br />
 
SCLK: SPI通信时钟<br />
 
SDIN:SPI通信主机发送,从机接收<br />
 
时序:CPHL=0, CPOL=0 (SPI0)<br />
 
【备注】具体关于SPI通信的相关信息,可以自行网上搜索资料了解
 
 
 
==墨水屏刷新原理==
 
===工作原理===
 
*本产品使用的电子纸采用“微胶囊电泳显示”技术进行图像显示,其基本原理是悬浮在液体中的带电纳米粒子受到电场作用而产生迁移。电子纸显示屏是靠反射环境光来显示图案的,不需要背光,在环境光下,电子纸显示屏清晰可视,可视角度几乎达到了 180°。因此,电子纸显示屏非常适合阅读。
 
*<font color=red>'''注意:部分型号无法在阳光直射下刷新'''</font>
 
===像素与字节的关系===
 
对于黑白图片,我们可以规定,如果如果是黑色我们定义成0,如果是白色就定义成1,那么有了表示颜色的方式:<br />
 
白色:□,对应1<br />
 
黑色:■:对应0<br />
 
*一个点在图形上一般称之为像素点(pixel),而颜色不是1就是0,也就是1个位就可以标识颜色:1Pixel = 1bit,那么一个字节里面就包含了8个像素点。<br />
 
*以16个像素点为例,我们假设前8个像素点为黑,后8个像素点为白色,那么可以这么认为,像素点1-16,对应这0位到15位,0表示黑色,1表示白色:<br />
 
[[file:e-paper_hardware_work_1.png]]<br />
 
对于计算机而言,它的数据存储方式是高位在前,低位在后,且一个字节只有8个位,因此会有一点改变:<br />
 
[[file:e-paper_hardware_work_2.png]]<br />
 
这样只需要2个字节即可表示16个像素点了。<br />
 
 
 
==<span style="color:#FF0000;">打击盗版声明</span>==
 
{{EPAPER-AGAINST-PIRACY}}
 
 
 
</div>
 
<div class="tabbertab" title="RPI使用教程">
 
<div class="sep0px"></div>
 
{{e-paper_for_rpiuse}}
 
 
</div>
 
</div>
 +
<p></p>
 +
{{ContentGrid|grid-gap=25px
 +
|content =
  
<div class="tabbertab" title="JetsonNano使用教程">
+
{{StudyCard
<div class="sep0px"></div>
+
|img=[[文件:E-Paper Introduction 4.jpg|110px|link=https://www.waveshare.net/wiki/2.13inch_e-Paper_HAT_Manual#.E8.AF.B4.E6.98.8E]]
{{e-paper_for_jetsonnano_use}}
+
|heading = '''产品说明'''
</div>
+
|content = 参数、原理和注意事项
 +
}}
  
<div class="tabbertab" title="STM32使用教程">
+
{{StudyCard
<div class="sep0px"></div>
+
|img=[[文件:E-Paper RPi 2.jpg|110px|link=https://www.waveshare.net/wiki/2.13inch_e-Paper_HAT_Manual#Raspberry_Pi]]
{{e-paper_for_stm32_use}}
+
|heading = '''从Raspberry Pi开始'''
</div>
+
|content = 使用C语言、Python开发的例程及其使用说明
 +
}}
  
<div class="tabbertab" title="Arduino使用教程">
+
{{StudyCard
<div class="sep0px"></div>
+
|img=[[文件:E-Paper Arduino 2.jpg|110px|link=https://www.waveshare.net/wiki/2.13inch_e-Paper_HAT_Manual#Arduino]]
{{e-paper_for_arduino_use}}
+
|heading = '''从Arduino开始'''
</div>
+
|content = 基于Arduino UNO R3开发的例程及其使用说明
<!--<div class="tabbertab" title="硬件连接和软件设置">
+
}}
{{e-Paper-connecting-settings}}
 
</div>-->
 
<!--<div class="tabbertab" title="程序说明">
 
{{e-Paper-codes-description}}
 
</div>-->
 
<div class="tabbertab" title="资料">
 
<div class="sep0px"></div>
 
===文档===
 
*[http://{{SERVERNAME}}/w/upload/5/57/2.13inch_e-Paper_HAT_Schematic.pdf 原理图]<br>
 
*[[E-Paper-Floyd-Steinberg|使用Photoshop制作散点图]]
 
  
==视频==
+
{{StudyCard
*[[2.13inch-e-Paper-HAT-Video|演示视频]][[File:video-logo.png|23px|link=2.13inch-e-Paper-HAT-Video]]
+
|img=[[文件:E-Paper NVDIA 2.jpg|110px|link=https://www.waveshare.net/wiki/2.13inch_e-Paper_HAT_Manual#Jetson_Nano]]
 +
|heading = '''从Jetson Nano开始'''
 +
|content = 使用C语言、Python开发的例程及其使用说明
 +
}}
  
===程序===
+
{{StudyCard
{{E-paper code}}
+
|img=[[文件:E-Paper X3Pi 1.jpg|110px|link=https://www.waveshare.net/wiki/2.13inch_e-Paper_HAT_Manual#X3]]
 +
|heading = '''从旭日X3派开始'''
 +
|content = 使用Python开发的例程及其使用说明
 +
}}
  
旧版本
+
{{StudyCard
*[http://{{SERVERNAME}}/w/upload/1/1c/2.13inch_e-Paper_HAT-code.7z 示例程序V1(2019年4月26号之前购买)]
+
|img=[[文件:E-Paper STM32 2.jpg|110px|link=https://www.waveshare.net/wiki/2.13inch_e-Paper_HAT_Manual#STM32]]
*[http://{{SERVERNAME}}/w/upload/a/a6/2.13inch_e-paper_code%28V2%29.7z 示例程序V2(2019年4月26号之后购买,屏幕后贴有V2标识)]
+
|heading = '''从STM32开始'''
 +
|content = 使用STM32CubeMX开发的例程及其使用说明
 +
}}
  
===数据手册===
+
{{StudyCard
* [http://{{SERVERNAME}}/w/upload/e/e6/2.13inch_e-Paper_Datasheet.pdf 2.13inch e-Paper Datasheet.pdf]
+
|img=[[文件:E-Paper ESP32.jpg|110px|link=https://www.waveshare.net/wiki/2.13inch_e-Paper_HAT_Manual#ESP32.2F8266]]
'''V2版本'''
+
|heading = '''从ESP32/8266开始'''
*[http://{{SERVERNAME}}/w/upload/d/d5/2.13inch_e-Paper_Specification.pdf 2.13inch e-Paper Specification]
+
|content = ESP32/8266的使用手册
 +
}}
  
===开发资料===
+
{{StudyCard
*[http://{{SERVERNAME}}/w/upload/3/36/Image2Lcd.7z Image2Lcd图片取模软件]
+
|img=[[文件:E-Paper Resources 4.jpg|110px|link=https://www.waveshare.net/wiki/2.13inch_e-Paper_HAT_Manual#.E8.B5.84.E6.96.99]]
*[http://{{SERVERNAME}}/w/upload/c/c6/Zimo221.7z 字摸提取软件]
+
|heading = '''资料'''
 +
|content = 文档、程序和数据手册等
 +
}}
  
===相关资料===
+
{{StudyCard
*[https://github.com/PiSugar/pisugar-case-pihat-cap 外壳图纸(PiSugar)]
+
|img=[[文件:E-Paper FAQ 4.jpg|110px|link=https://www.waveshare.net/wiki/2.13inch_e-Paper_HAT_Manual#FAQ]]
 +
|heading = '''FAQ'''
 +
|content = 电子纸常见问题与解答
 +
}}
  
===相关链接===
+
{{StudyCard
{{Raspberry Pi Study}}
+
|img=[[文件:E-Paper Support 4.jpg|110px|link=https://www.waveshare.net/wiki/2.13inch_e-Paper_HAT_Manual#.E6.8A.80.E6.9C.AF.E6.94.AF.E6.8C.81]]
[http://{{SERVERNAME}}/study/portal.php?mod=list&catid=40 STM32cubeMX系列教程]
+
|heading = '''售后服务'''
<br /><big>批量下载教程——请戳<big><big><big>☛</big></big></big></big>[[File:download-icon.png|link=批量下载教程]]
+
|content = 技术支持
</div>
+
}}
<div class="tabbertab" title="FAQ">
 
<div class="sep0px"></div>
 
{{FAQ|怎么区分使用的程序版本?|
 
目前2.13inch e-paper仅存在两种版本的程序,可以通过查看e-paper背面是否有V2标识
 
  
[[File:e-paper v1&v2.png|400px]]
+
}}
 
 
2.13inch e-paper HAT存在两种不同的底板,可以通过查看背面是否贴有V2:
 
 
 
[[File:2.13inch  e-paper HAT v1&v2.jpg|400px]]
 
|||}}
 
{{Two-color e-paper FAQ}}
 
{{E-Paper FAQ}}
 
</div>
 
<div class="tabbertab" title="售后">
 
<div class="sep0px"></div>
 
{{Service13}}</div>
 
</div>
 

2023年3月22日 (三) 14:52的最新版本


2.13inch e-Paper HAT文档教程

E-Paper Introduction 4.jpg

产品说明

参数、原理和注意事项
E-Paper RPi 2.jpg

从Raspberry Pi开始

使用C语言、Python开发的例程及其使用说明
E-Paper Arduino 2.jpg

从Arduino开始

基于Arduino UNO R3开发的例程及其使用说明
E-Paper NVDIA 2.jpg

从Jetson Nano开始

使用C语言、Python开发的例程及其使用说明
E-Paper X3Pi 1.jpg

从旭日X3派开始

使用Python开发的例程及其使用说明
E-Paper STM32 2.jpg

从STM32开始

使用STM32CubeMX开发的例程及其使用说明
E-Paper ESP32.jpg

从ESP32/8266开始

ESP32/8266的使用手册
E-Paper Resources 4.jpg

资料

文档、程序和数据手册等
E-Paper FAQ 4.jpg

FAQ

电子纸常见问题与解答
E-Paper Support 4.jpg

售后服务

技术支持