1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Implement a slow sigma-delta modulation based output (#4132)

This commit is contained in:
Valentin Ochs
2023-01-18 01:42:32 +01:00
committed by GitHub
parent 582d90ad72
commit 3aa5953cd9
5 changed files with 149 additions and 0 deletions

View File

@@ -1313,6 +1313,21 @@ output:
return {s};
outputs:
- id: custom_binary
- platform: sigma_delta_output
id: sddac
update_interval: 60s
pin: D4
turn_on_action:
then:
- logger.log: "Turned on"
turn_off_action:
then:
- logger.log: "Turned off"
state_change_action:
then:
- logger.log:
format: "Changed state: %d"
args: [ 'state' ]
- platform: custom
type: float
lambda: |-