Changed to use GPIO numbering rather than P1 header numbering.