add 2.7 b V2

This commit is contained in:
SSYYL 2021-02-22 15:59:14 +08:00
commit 9edbace6e9
59 changed files with 25054 additions and 250 deletions

View file

@ -19,6 +19,7 @@ try:
logging.info("epd2in7b_V2 Demo")
epd = epd2in7b_V2.EPD()
logging.info("init and Clear")
epd.init()
epd.Clear()
@ -60,7 +61,7 @@ try:
drawred = ImageDraw.Draw(LRedimage)
drawblack.text((2, 0), 'hello world', font = font18, fill = 0)
drawblack.text((2, 20), '2.9inch epd', font = font18, fill = 0)
drawblack.text((2, 20), '2.7inch epd', font = font18, fill = 0)
drawblack.text((20, 50), u'微雪电子', font = font18, fill = 0)
drawblack.line((10, 90, 60, 140), fill = 0)
drawblack.line((60, 90, 10, 140), fill = 0)

View file

@ -74,6 +74,7 @@ try:
epd.display(epd.getbuffer(Himage2))
time.sleep(2)
# partial update
logging.info("5.show time")
time_image = Image.new('1', (epd.height, epd.width), 255)