...
This is the pinning of the connector on the baseboard carrier board.
Extension boards use the opposite numbering scheme.
...
Check the baseboard datasheet for button IO-voltage and usage. Typically the 3 button-signals are to be used with an open-collector Output / switch to GND.