@gavin67890 in case you're still interested, I have resumed my work on the M5StickC plus and the KY-022 IR receiver.
So far I am able to load the external IR library and use the REPL to scan and get information about my IR remote buttons.
Means that it works and I can now code the UI stuff !