Does anyone know how the tuple specifier for `machine.Pin` works?
Tried:
Code: Select all
>>> machine.Pin(('A', 0))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't convert 'tuple' object to str implicitly
Similarly an int specifier:
Code: Select all
>>> machine.Pin(0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't convert 'int' object to str implicitly
Note 1: In practice `machine.Pin` appears to be an alias for `pyb.Pin`, despite the different documentation!
Anyone know how these two specifiers work?
Thanks in advance,
-- Howard.