Update main.cpp to configure pin layout for SPI
make sure cppflags are -fpermissive when building