mirror of
https://github.com/esphome/esphome.git
synced 2025-01-21 21:31:55 +01:00
add USE_SPI define (#5500)
This commit is contained in:
parent
7e7c83b3ca
commit
aba3cd557a
@ -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 New Issue
Block a user