changed pin for spi, variable argument length for ploting, include the 3rd channel