1、OLED屏显示心在跳动
- #MicroPython动手做(16)——掌控板之图片图像显示
- #OLED屏显示内置图像心在跳动
- from mpython import *
- import time
- image_picture = Image()
- while True:
- oled.fill(0)
- oled.blit(image_picture.load('face/2.pbm', 0), 32, 0)
- oled.show()
- time.sleep(1)
- oled.fill(0)
- oled.blit(image_picture.load('face/1.pbm', 0), 32, 0)
- oled.show()
- time.sleep(1)