configure library for tilda lcd, use hardware spi and clean up code