Wouldn't that just work automatically in LNPoS if you connect the NFC module? Especially with M5 Stack I think it would start accepting the NFC input as soon as you are in the scan mode.
I guess we need someone to try it... :)