Aha but HACS does not have add-ons (or so they claim). I am a bit hesitant to add untested stuff to the default pre-built RPi image, I am reading all kinds of strange problems in the forum for adding HACS to HA.
Shame that the standard RPi image does not support the RPi hardware.
I also have a clarification note on the instructions
*1 - trying manual install as per https://github.com/thecode/ha-rpi_gpio
"Okay, removed HACS (wow, three restarts required to remove it…crazy).
I also made another discovery during this process.
The problem is the instructions are (kinda) wrong for the manual installation.
Originally, following the instructions, I downloaded the .zip file, decompressed and moved it into the custom_components folder.
Problem is, this is not the correct folder.
INSIDE the ha-rpi_gpio-main folder, which is what the zip file decompresses too, there is a custom_components/rpi-gpio folder.
THIS is the folder that needs copied to the /config/custom_components folder. "
downloaded and extracted to C:\Data\Shared_n_synced\Infrequent\HomeAssistant\ha-rpi_gpio-main
followed modified instructions and copied C:\Data\Shared_n_synced\Infrequent\HomeAssistant\ha-rpi_gpio-main\custom_components\rpi_gpio to Z:\custom_components\rpi_gpio
restarted homeassistant system
then its easy just add entries to your configuration.yaml like