|
楼主 |
发表于 2020-7-9 15:00
|
显示全部楼层
#MicroPython动手做(40)——机器视觉之图像基础 2
#绘制彩色实心圆
- #MicroPython动手做(40)——机器视觉之图像基础 2
- #绘制彩色实心圆
- import time
- import mixno
- import lcd
- import image
- lcd.init(freq=15000000,color=0)
- image = image.Image()
- lcd.display(image.draw_circle([160,120,20],59135,1,1))
- time.sleep_ms(1000)
- lcd.display(image.draw_circle([160,120,40],7936,1,1))
- time.sleep_ms(1000)
- lcd.display(image.draw_circle([160,120,60],57351,1,1))
- time.sleep_ms(1000)
- lcd.display(image.draw_circle([160,120,90],35937,1,1))
- time.sleep_ms(1000)
- lcd.display(image.draw_circle([160,120,120],248,1,1))
复制代码
|
|