Pin Example Error

Hey all,

I went to run this example model from this documentation:
http://docs.openmv.io/library/machine.Pin.html?highlight=read%20signal

but when I do I get an error “TypeError: Can’t convert ‘int’ object to str implicitly”

Am I doing something wrong here? I’m trying to read in a 3.3 volt singal from the main board.

Hi, use strings for pin names/numbers ex: “P0”, “P2” etc…

When trying this it still throws the same error.

I tried:
X = Pin(0, Pin.OUT)

No luck =/

Pin(“P0”, …)

That fixed it! Thank you!