请在这里粘贴代码
for i in range (0,t.height()):
for j in range (0,t.width()):
pix=t.get_pixel(i,j)
if pix is None:
t.set_pixel(i,j,0)
else:
if t.get_pixel(i,j)<15:
t.set_pixel(i,j,255)
else:
t.set_pixel(i,j,0)
lcd.display(t)
for i in range (0,t.height()):
for j in range (0,t.width()):
pix=t.get_pixel(i,j)
print(pix,end=',')
print()
print('the end')
需要全部代码,否则没办法测试。