|
楼主 |
发表于 2020-7-8 17:53
|
显示全部楼层
小实验之2 绘制多条彩色直线
- #MicroPython动手做(39)——机器视觉之图像基础
- #绘制多条彩色直线
- import time
- import mixno
- import lcd
- import image
- lcd.init(freq=15000000,color=0)
- image = image.Image()
- lcd.display(image.draw_line([160,0,160,240],248,5))
- time.sleep_ms(1000)
- lcd.display(image.draw_line([0,120,320,120],57351,5))
- time.sleep_ms(1000)
- lcd.display(image.draw_line([0,0,320,240],7936,5))
- time.sleep_ms(1000)
- lcd.display(image.draw_line([0,240,320,0],57599,5))
复制代码
|
|