Skip to content

Commit a62f113

Browse files
committed
new py
1 parent c3efe97 commit a62f113

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

code/photo/bytes2img.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Untitled - By: Lithromantic - 周五 3月 5 2021
22

33
import sensor, image, time,lcd
4-
4+
lcd.init(type=5,freq=50*1000*1000,lcd_type=3)
55
def Bytes_to_img(imgdir):
66
_imgdir=imgdir
77
_jpeg_buff={}
@@ -10,5 +10,6 @@ def Bytes_to_img(imgdir):
1010
_image = image.Image(_jpeg_buff, from_bytes = True)
1111
return _image
1212
while(True):
13-
img=Bytes_to_img("back_ground.jpg")
13+
img=Bytes_to_img("图片1.jpg")
14+
1415
print(img)

0 commit comments

Comments
 (0)