Correction: The <pgmspace.h> problem showed up for certain other libraries using latest RP2040 board packages, not the “original” XIAO. I’m very sorry if my previous post caused confusion.
I stand by my tests of the ezButton library. We need to know more about your error messages and what other libraries you are using, and maybe we could see, at least, the parts of your code that caused the errors.
Regards,
Dave