provide dummy defs for PROGMEM, PSTR, F which are not available on Due
remove trailing whitespace
set select pin to output mode before initializing SPI