Check out the app note below that presents several examples on how to use the GPIOs in SLG51000 for various applications:
Device:
Device Number:
SLG51000