added P5 header support

I added an enum for new indices in the pin_ids array,
P5 header pins are addressed with P5_?.

Also INVALID_PIN is now defined after PIN_IDS_SIZE.