mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +01:00
17 lines
268 B
YAML
17 lines
268 B
YAML
spi:
|
|
- id: spi_mcp3008
|
|
clk_pin: 16
|
|
mosi_pin: 17
|
|
miso_pin: 15
|
|
|
|
mcp3008:
|
|
- id: mcp3008_hub
|
|
cs_pin: 12
|
|
|
|
sensor:
|
|
- platform: mcp3008
|
|
id: mcp3008_sensor
|
|
mcp3008_id: mcp3008_hub
|
|
number: 0
|
|
reference_voltage: 3.19
|
|
update_interval: 5s
|