M5Stack Atom Lite button press trigger

I am fairly new to home assistant and not that fluent in yaml so far but I was wondering if there is a way to add the M5Stack Atom Lite as a button press trigger in home assistant?
If yes can you please guide me to some article for a guide as I could not find any related article when I tried.
I haven’t tried anything so far as I do not have the M5Stack in my hand right now but if it is possible then I will get one and would try this out.