Iam runniging some Micro Python code directy on the pyboard by using the REPL prompt.
Code: Select all
import pyb
x = pyb.Pin(pyb.Pin.board.X1, pyb.Pin.IN)
s = x.__str__()
AttributeError: 'Pin' object has no attribute '__str__'
Sorry for this stupid question, but whats wrong with this code?
Thanks for your help