|
楼主 |
发表于 2020-7-9 11:28
|
显示全部楼层
- #MicroPython动手做(40)——机器视觉之图像基础 2
- #绘制移动的彩色箭头
- import time
- import mixno
- import lcd
- import image
- lcd.init(freq=15000000,color=0)
- image = image.Image()
- lcd.display(image.draw_arrow([30,40,155,115],248,15))
- time.sleep_ms(1000)
- lcd.display(image.draw_arrow([299,40,175,111],57351,15))
- time.sleep_ms(1000)
- lcd.display(image.draw_arrow([280,220,176,135],7936,15))
- time.sleep_ms(1000)
- lcd.display(image.draw_arrow([10,240,157,128],57599,15))
复制代码
|
|