Button press automation phat input

I’m hoping to use a button as an input to one of the three inputs on the automation phat to trigger a python script on/off.

Is there an elegant way of doing this without constantly polling the input pin for a high signal?

I know gpiozero module uses interrupts instead of polling but I’d need direct access to one of the GPIO pins.

Is there any interrupts in the automation hat library or can one get direct access to a GPIO pin through the automation phat?

Many thanks,


Can anyone help here please?


Anybody out there…?