1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-08 12:53:45 +01:00

Allow i2s microphone bits per sample to be configured (#4884)

This commit is contained in:
Jesse Hills
2023-05-26 15:50:44 +12:00
committed by GitHub
parent 9cd173ef83
commit 79abd773a2
7 changed files with 54 additions and 14 deletions

View File

@@ -41,7 +41,7 @@ async def setup_microphone_core_(var, config):
trigger = cg.new_Pvariable(conf[CONF_TRIGGER_ID], var)
await automation.build_automation(
trigger,
[(cg.std_vector.template(cg.uint8).operator("ref").operator("const"), "x")],
[(cg.std_vector.template(cg.int16).operator("ref").operator("const"), "x")],
conf,
)