mirror of
https://github.com/esphome/esphome.git
synced 2026-08-24 07:06:20 +00:00
35 lines
633 B
YAML
35 lines
633 B
YAML
waveshare_io_ch32v003:
|
|
- id: wave_io
|
|
i2c_id: i2c_bus
|
|
address: 0x24
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
id: wave_io_binary_sensor
|
|
pin:
|
|
waveshare_io_ch32v003: wave_io
|
|
number: 3
|
|
mode: INPUT
|
|
inverted: false
|
|
|
|
output:
|
|
- platform: gpio
|
|
id: wave_io_output
|
|
pin:
|
|
waveshare_io_ch32v003: wave_io
|
|
number: 0
|
|
mode: OUTPUT
|
|
inverted: false
|
|
|
|
- platform: waveshare_io_ch32v003
|
|
id: wave_io_pwm_output
|
|
inverted: true
|
|
zero_means_zero: true
|
|
safe_pwm_levels:
|
|
min_value: 0
|
|
max_value: 247
|
|
|
|
sensor:
|
|
- platform: waveshare_io_ch32v003
|
|
id: wave_io_adc
|