Fix analogue pin numbering and SPI compile error