Thank you for reporting these issues, I have released a fix for the MIDI Learn and will look into the other issue a bit later.
Anyone experiencing the MIDI Learn issue may get the fix by running:
sudo apt update && sudo apt install modep-mod-ui
Indeed, the same button pin is used on Pisound @rbn, any advices on how to get it play nice together with Pisound?
Btw, I see the fan uses BCM 18 too which is actually critical for the I2S audio interface, so if possible, any fan functionality related for that pin should not be used. This is a quote from Fan SHIM product page:
Because Fan SHIM uses pin BCM18 to control the fan, and this pin is also used by I2S audio devices, you won’t be able to use I2S DACs like pHAT DAC, pHAT BEAT, and the IQAudio boards at the same time as Fan SHIM