mirror of
https://github.com/sipeed/sipeed_wiki.git
synced 2026-09-15 06:58:26 -05:00
使用maixduino时,在例程2,缺少lcd.init(),导致图片无法显示
同时增加了自带套件LCD屏幕的推荐像素
This commit is contained in:
@@ -190,7 +190,8 @@ lcd.draw_string(100, 100, "hello maixpy", lcd.RED, lcd.BLACK)
|
||||
import lcd
|
||||
import image
|
||||
|
||||
img = image.Image("/sd/pic.bmp")
|
||||
lcd.init()
|
||||
img = image.Image("/sd/pic.bmp")#320*240
|
||||
lcd.display(img)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user