finally got this to compile using software SPI and software serial.