diff --git a/src/tempsense.c b/src/tempsense.c --- a/src/tempsense.c +++ b/src/tempsense.c @@ -4,10 +4,16 @@ #include "tempsense.h" #include "flash.h" +#include "ssd1306/ssd1306.h" +#include "max31856/max31856.h" void tempsense_init(void) { + // TODO: Rework SPI stuff... init the port in a sharedlib then pass ref to display and tempsense + + max31856_init(spi_get(), TEMPSENSE_MAX_CS_PORT, TEMPSENSE_MAX_CS_PIN, 0); + // Maybe don't perform temp sensor setup in here, but in readtemp? // what happens if the user changes the tempsense type while running? // we need to re-init...