mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Updated Mcp3008 to support reference_voltage and voltage_sampler::VoltageSampler (#1387)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
		| @@ -197,6 +197,10 @@ wled: | ||||
|  | ||||
| adalight: | ||||
|  | ||||
| mcp3008: | ||||
|   - id: 'mcp3008_hub' | ||||
|     cs_pin: GPIO12 | ||||
|  | ||||
| mcp23s08: | ||||
|   - id: 'mcp23s08_hub' | ||||
|     cs_pin: GPIO12 | ||||
| @@ -207,6 +211,7 @@ mcp23s17: | ||||
|     cs_pin: GPIO12 | ||||
|     deviceaddress: 1 | ||||
|  | ||||
|  | ||||
| sensor: | ||||
|   - platform: adc | ||||
|     pin: A0 | ||||
| @@ -801,6 +806,12 @@ sensor: | ||||
|     id: ph_ezo | ||||
|     address: 99 | ||||
|     unit_of_measurement: 'pH' | ||||
|   - platform: mcp3008 | ||||
|     update_interval: 5s | ||||
|     mcp3008_id: 'mcp3008_hub' | ||||
|     id: freezer_temp_source | ||||
|     reference_voltage: 3.19 | ||||
|     number: 0 | ||||
|  | ||||
| esp32_touch: | ||||
|   setup_mode: False | ||||
|   | ||||
		Reference in New Issue
	
	Block a user