请教一下,为啥运行下面这个简单代码会出现这个错误:
TypeError: can't convert 'int' object to str implicitly
不是说 openMV 里 已经 用 machine 替代 pyb 了吗?
代码:
import sensor, image, time
from machine import Pin
p0=Pin(0, Pin.OUT)
改为
import sensor, image, time
from machine import Pin
p0=Pin("P0", Pin.OUT)