OpenStickCommunity/GP2040-CE

GPIO pins used for internal board functions are still mapable in the pin mapping page

looper1234 opened this issue · 3 comments

Problem
image
these pins are not available to end users

but the pin mapping page lead me to believe pins such as 25 and 29 can be used for extra buttons

Solution

leave only the usable/customisable pins in the mapping page, and perhaps a brief reason why some pins are missing

This would be doable by assigning e.g. pin 25 to GpioAction::RESERVED in the board config, though (because it varies from board to board) we have no consistent mechanism to explain why the pins are reserved. This was not possible before converting board configs to use GpioMappings, but it's possible now.

@looper1234 This is heavily dependant on what device you are using. If you are using a Pico those pins are reserved but if you are using a raw RP2040 you can have them used for other functions.

@bsstephan will chat with you about this one.