还记得去年这个时候因为能在树莓派上成功驱动一块屏幕激动不已,今年这个时候已经终于能自己搞驱动了。
这次的屏幕是1.54寸的墨水屏,屏幕这块我推荐大家直接买微雪的,不是打广告,而是确实业界大哥有保障,我手里这块是1.5inch e-Paper V2。
拿到以后参考了一下技术手册和官网的arduino代码,就直接开搞,其实更准确地说算是抄作业,并不是完全从头自己写的,但是驱动这玩意看多了都大同小异,先把技术手册中给的图拿来
在这里插入图片描述
照着抄就完了
自己p了个手表的UI,然后取模放进去试了试,效果还挺好,当然我只是初步跑了一下,没有做成驱动库的模式,也还没有研究局部刷新,先能跑起来再说,大家可以参考一下。效果如下,墨水瓶确实精致而且断电也会保持原状态,就是刷新慢一点。
在这里插入图片描述
最后还尝试网github上传了一下,不过弄得一知半解的,居然没有找到一个特别好的git教程,能把源码git下来不难,问题是真正作为项目的参与者,开发者,上传合并之类的操作我就有点蒙了。
参考代码:

from machine import Pin,SoftSPI
import utime

busy_pin=Pin(17,Pin.IN)
res_pin=Pin(16,Pin.OUT)
dc_pin=Pin(15,Pin.OUT)
cs_pin=Pin(14,Pin.OUT)
sck_pin=Pin(13,Pin.OUT)
sdi_pin=Pin(12,Pin.OUT)
miso_pin=Pin(2,Pin.OUT)

epaper=SoftSPI(baudrate=10000000,sck=sck_pin, mosi=sdi_pin,miso=miso_pin)

# with open('MY_WATCH.pbm','rb') as f:
#     f.readline()
#     width,height=[int(v) for v in f.readline().split()]
#     uidata=bytearray(f.read())
#     #print(uidata[23])
#     #print(width,height)
#     f.close()
# 
# print(len(uidata))

testdata=(0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X3F,0XFF,0XFF,0XFF,0X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FF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFC,0X3F,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFC,0X3F,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFC,0X3F,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFC,0X3F,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFC,0X3F,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,0XFF,0XFC,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00
)

#init

def readbusy():
    while busy_pin.value()==1:
        utime.sleep_ms(10)

def writecommand(data):
    utime.sleep_ms(1)
    cs_pin.value(0)                                                                                    
    dc_pin.value(0)
    epaper.write(data)
    cs_pin.value(1)
    
def writedata(data):
    utime.sleep_ms(1)
    cs_pin.value(0)
    dc_pin.value(1)
    epaper.write(data)
    cs_pin.value(1)
    
def epaperupdate():
    writecommand(b'\x22')
    writedata(b'\xf7')
    writecommand(b'\x20')
    readbusy()
    
def allscreen():
    writecommand(b'\x24')
    for i in range(0,5000):
        writedata(i)
    epaperupdate()

def epaperinit():
    res_pin.value(0)
    utime.sleep_ms(100)
    res_pin.value(1)
    utime.sleep_ms(100)
    readbusy()
    writecommand(b'\x12')
    readbusy()
    writecommand(b'\x01')
    writedata(b'\xc7')
    writedata(b'\x00')
    writedata(b'\x00')
    readbusy()
    writecommand(b'\x11')
    writedata(b'\x01')
    writecommand(b'\x44')
    writedata(b'\x00')
    writedata(b'\x18')
    writecommand(b'\x45')
    writedata(b'\xc7')
    writedata(b'\x00')
    writedata(b'\x00')
    writedata(b'\x00')
    writecommand(b'\x3c')
    writedata(b'\x05')
    writecommand(b'\x18')
    writedata(b'\x80')
    writecommand(b'\x4e')
    writedata(b'\x00')
    writecommand(b'\x4f')
    writedata(b'\xc7')
    writedata(b'\x00')
    readbusy()
    
epaperinit()

writecommand(b'\x24')
for i in range(0,5000):
    writedata(int(testdata[i]).to_bytes(1,'big',True))
epaperupdate()
















Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐