|
楼主 |
发表于 2020-3-28 10:12
|
显示全部楼层
#尝试搭建K210的Micropython开发环境(Win10)
#实验程序之七:图形与hello maixpy
[mw_shl_code=python,true]#尝试搭建K210的Micropython开发环境(Win10)
#实验程序之七:图形与hello maixpy
import lcd, time
import image
bg = (236,36,36)
lcd.init(freq=15000000)
lcd.direction(lcd.YX_RLDU)
img = image.Image()
img.draw_string(60, 100, "hello maixpy", scale=2)
img.draw_rectangle((120,120,30,30))
img.draw_circle((150,140, 80))
img.draw_cross((250,40))
img.draw_arrow((250,200,20,200), color=(236,36,36))
lcd.display(img) [/mw_shl_code]
|
|