|
楼主 |
发表于 2020-7-3 18:52
|
显示全部楼层
10、变色七彩字体
- #MicroPython动手做(37)——驱动LCD与图文显示
- #变色七彩字体
- import mixno
- import lcd
- import image
- lcd.init(freq=150000,color=0x0000)
- image = image.Image()
- while True:
- lcd.display(image.draw_string(30,60,"MixPY",248,12,mono_space=0))
- lcd.display(image)
- lcd.display(image.draw_string(30,60,"MixPY",24630,12,mono_space=0))
- lcd.display(image)
- lcd.display(image.draw_string(30,60,"MixPY",7936,12,mono_space=0))
- lcd.display(image)
- lcd.display(image.draw_string(30,60,"MixPY",8443,12,mono_space=0))
- lcd.display(image)
- lcd.display(image.draw_string(30,60,"MixPY",39369,12,mono_space=0))
- lcd.display(image)
- lcd.display(image.draw_string(30,60,"MixPY",57599,12,mono_space=0))
- lcd.display(image)
- lcd.display(image.draw_string(30,60,"MixPY",4912,12,mono_space=0))
- lcd.display(image)
复制代码
|
|