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:
name: ${name}
friendly_name: ${friendly_name}
platformio_options:
build_flags:
- "-include SPI.h"
includes:
- spi_helper.h
on_boot:
- priority: 100
then:

2
esphome/spi_helper.h Normal file
View File

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