diff --git a/esphome/cat-medication-tracker.yaml b/esphome/cat-medication-tracker.yaml index a513964..e3501bf 100644 --- a/esphome/cat-medication-tracker.yaml +++ b/esphome/cat-medication-tracker.yaml @@ -5,9 +5,8 @@ substitutions: esphome: name: ${name} friendly_name: ${friendly_name} - platformio_options: - build_flags: - - "-include SPI.h" + includes: + - spi_helper.h on_boot: - priority: 100 then: diff --git a/esphome/spi_helper.h b/esphome/spi_helper.h new file mode 100644 index 0000000..59d4754 --- /dev/null +++ b/esphome/spi_helper.h @@ -0,0 +1,2 @@ +#pragma once +#include