A library for the TPH board