standalone user-space driver for Microdot pHAT written in C.
see my blog post about it.
user-space driver for Pimoroni Micro Dot pHAT