From 3bd797bcc5e9da89fb504f7100d44518365925f1 Mon Sep 17 00:00:00 2001 From: Joshua King Date: Fri, 6 Mar 2026 21:28:10 -0500 Subject: [PATCH] Refactor ESPHome configuration to include SPI.h via spi_helper.h --- esphome/cat-medication-tracker.yaml | 5 ++--- esphome/spi_helper.h | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 esphome/spi_helper.h 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