Fix LEDC missing frequency/bit_depth

Fixes https://github.com/esphome/issues/issues/338#issuecomment-495810954
This commit is contained in:
Otto Winter 2019-05-25 09:02:18 +02:00
parent 12ff280d3b
commit df50b95e5a
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -71,3 +71,5 @@ def to_code(config):
yield output.register_output(var, config)
if CONF_CHANNEL in config:
cg.add(var.set_channel(config[CONF_CHANNEL]))
cg.add(var.set_frequency(config[CONF_FREQUENCY]))
cg.add(var.set_bit_depth(config[CONF_BIT_DEPTH]))