mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Add support for ESP32 DAC (#1071)
* Add support for ESP32 onboard DAC * Newlines * Tests
This commit is contained in:
		| @@ -1030,6 +1030,9 @@ output: | ||||
|     id: dimmer1 | ||||
|     gate_pin: GPIO5 | ||||
|     zero_cross_pin: GPIO26 | ||||
|   - platform: esp32_dac | ||||
|     pin: GPIO25 | ||||
|     id: dac_output | ||||
|  | ||||
| light: | ||||
|   - platform: binary | ||||
| @@ -1358,6 +1361,12 @@ switch: | ||||
|     - output.set_level: | ||||
|         id: gpio_19 | ||||
|         level: !lambda 'return 0.5;' | ||||
|     - output.set_level: | ||||
|         id: dac_output | ||||
|         level: 50% | ||||
|     - output.set_level: | ||||
|         id: 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