QUERY · ISSUE
machine.Pin doesn't have a pin() method on the ESP32 port
enhancementport-esp32
As reported in the Slack channel, the ESP32 port lacks a method to retrieve the pin number.
(It's possible to print the pin object but this is fragile and requires that the number be parsed from the string.)
The nRF and stm32 ports both have a pin() method on a Pin; the same should exist for the ESP32.
CANDIDATE · ISSUE
`AttributeError: 'Pin' object has no attribute 'on'`
port-esp32
On my ESP32, this happens:
>>> import machine
>>> p = machine.Pin(2, machine.Pin.OUT)
>>> p.on()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Pin' object has no attribute 'on'
Even though the docs say that the Pin.on method works.