Controling HAT inputs for raspberry pi with of

How do I use any HAT inputs?

Perhaps this may be helpful: