mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 15:08:10 +01:00
add USE_SPI define (#5500)
This commit is contained in:
parent
7e7c83b3ca
commit
aba3cd557a
1 changed files with 1 additions and 0 deletions
|
@ -272,6 +272,7 @@ CONFIG_SCHEMA = cv.All(
|
|||
|
||||
@coroutine_with_priority(1.0)
|
||||
async def to_code(configs):
|
||||
cg.add_define("USE_SPI")
|
||||
cg.add_global(spi_ns.using)
|
||||
for spi in configs:
|
||||
var = cg.new_Pvariable(spi[CONF_ID])
|
||||
|
|
Loading…
Reference in a new issue