Refactor ESPHome configuration to include SPI.h via spi_helper.h
This commit is contained in:
@@ -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
2
esphome/spi_helper.h
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#pragma once
|
||||||
|
#include <SPI.h>
|
||||||
Reference in New Issue
Block a user