configs/components/ads131m08/README.md

57 lines
1.3 KiB
Markdown

# ESPHome config/components/ads131m08
This folder contains source code files and related resources for external ads131m08 component.
## Example .yaml config
---
```yaml
external_components:
- source:
type: local
path: components # Path relative to this YAML file
components: [ ads131m08 ]
ads131m08:
id: highres_adc
cs_pin: GPIO5
drdy_pin: GPIO10
vref: 1.25
sensor:
- platform: ads131m08
ads_hub_id: highres_adc
channel: 0
name: "ADS Channel 0 Voltage"
- platform: ads131m08
ads_hub_id: highres_adc
channel: 1
name: "ADS Channel 1 Voltage"
- platform: ads131m08
ads_hub_id: highres_adc
channel: 2
name: "ADS Channel 2 Voltage"
- platform: ads131m08
ads_hub_id: highres_adc
channel: 3
name: "ADS Channel 3 Voltage"
- platform: ads131m08
ads_hub_id: highres_adc
channel: 4
name: "ADS Channel 4 Voltage"
- platform: ads131m08
ads_hub_id: highres_adc
channel: 5
name: "ADS Channel 5 Voltage"
- platform: ads131m08
ads_hub_id: highres_adc
channel: 6
name: "ADS Channel 6 Voltage"
- platform: ads131m08
ads_hub_id: highres_adc
channel: 7
name: "ADS Channel 7 Voltage"
```
For more information, visit the [ESPHome documentation](https://esphome.io/).