Basically if all the pins are there then Espruino just works out the offset in pinInfo based on the number after D. If they're not then you can use PIN_NAMES_DIRECT and it does a search.
IMO it wouldn't be the end of the world to leave all the pins defined though?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
There's actually a special definition for it called
PIN_NAMES_DIRECT
- https://github.com/espruino/Espruino/blob/master/boards/PICO_R1_3.py#L45Basically if all the pins are there then Espruino just works out the offset in pinInfo based on the number after
D
. If they're not then you can usePIN_NAMES_DIRECT
and it does a search.IMO it wouldn't be the end of the world to leave all the pins defined though?
edit: I just saw your other post - seems like a good plan to remove them :)