Refactor ESPHome configuration to include SPI.h via spi_helper.h

This commit is contained in:
Joshua King
2026-03-06 21:28:10 -05:00
parent 1a486240a0
commit 3bd797bcc5
2 changed files with 4 additions and 3 deletions

View File

@@ -5,9 +5,8 @@ substitutions:
esphome: esphome:
name: ${name} name: ${name}
friendly_name: ${friendly_name} friendly_name: ${friendly_name}
platformio_options: includes:
build_flags: - spi_helper.h
- "-include SPI.h"
on_boot: on_boot:
- priority: 100 - priority: 100
then: then:

2
esphome/spi_helper.h Normal file
View File

@@ -0,0 +1,2 @@
#pragma once
#include <SPI.h>