micropython/ports
robert-hh c02da6d81d rp2/machine_pin: Factor out pin-find code from machine_pin_make_new.
And use it in mp_hal_get_pin_obj() and machine_pin_make_new().  That way,
mp_hal_get_pin_obj() accepts both int and str objects as argument, allowing
use of a pin specifier instead of a pin object in the constructor of
devices which need a pin as parameter.

E.g. instead of

    uart = UART(0, tx=Pin(0), rx=Pin(1))

one can write:

    uart = UART(0, tx=0, rx=1)

Signed-off-by: robert-hh <robert@hammelrath.com>
2023-07-20 17:30:17 +10:00
..
bare-arm bare-arm/mpconfigport.h: Disable remaining optional features. 2021-11-01 14:23:06 +11:00
cc3200 all: Use MP_REGISTER_EXTENSIBLE_MODULE for overrideable built-ins. 2023-06-08 17:54:21 +10:00
embed all: Rename *umodule*.c to remove the "u" prefix. 2023-06-08 17:54:17 +10:00
esp32 esp32/machine_timer: Switch from legacy driver to timer HAL. 2023-07-14 10:02:42 +10:00
esp8266 extmod/asyncio: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
mimxrt ports: In machine_i2s.c, rename uasyncio to asyncio. 2023-06-19 18:36:54 +10:00
minimal all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
nrf extmod/asyncio: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
pic16bit ports: Implement simple write polling for stdout. 2023-03-23 13:51:17 +11:00
powerpc all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
qemu-arm py/mkrules.mk: Automatically configure frozen options when manifest set. 2023-06-08 23:12:56 +10:00
renesas-ra renesas-ra,stm32: Remove duplicate machine module from constants list. 2023-07-13 13:18:09 +10:00
rp2 rp2/machine_pin: Factor out pin-find code from machine_pin_make_new. 2023-07-20 17:30:17 +10:00
samd samd/mpconfigport: Provide the platform module. 2023-06-27 14:58:44 +10:00
stm32 renesas-ra,stm32: Remove duplicate machine module from constants list. 2023-07-13 13:18:09 +10:00
teensy ports: Standardise docs link in help text. 2023-06-02 11:48:46 +10:00
unix extmod/asyncio: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
webassembly webassembly: Replace typeof window check with ENVIRONMENT_IS_NODE flag. 2023-07-13 13:24:35 +10:00
windows extmod/asyncio: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
zephyr py/mkrules.mk: Automatically configure frozen options when manifest set. 2023-06-08 23:12:56 +10:00