mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 11:22:24 +01:00
Add MCP4725 DAC Component (#1418)
* Add MCP4725 DAC * Fix lint * Fix lint * Fix lint * Lint & cleanup * Lint again * One more lint * add test Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
This commit is contained in:
@@ -1192,6 +1192,8 @@ output:
|
||||
- platform: esp32_dac
|
||||
pin: GPIO25
|
||||
id: dac_output
|
||||
- platform: mcp4725
|
||||
id: mcp4725_dac_output
|
||||
|
||||
e131:
|
||||
|
||||
@@ -1561,6 +1563,9 @@ switch:
|
||||
- output.set_level:
|
||||
id: dac_output
|
||||
level: !lambda 'return 0.5;'
|
||||
- output.set_level:
|
||||
id: mcp4725_dac_output
|
||||
level: !lambda 'return 0.5;'
|
||||
turn_off_action:
|
||||
- switch.turn_on: living_room_lights_off
|
||||
restore_state: False
|
||||
|
Reference in New Issue
Block a user