mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
Add sm2135 component (#1736)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
committed by
Jesse Hills
parent
7d9c043f1d
commit
9e7acd6f75
@@ -586,6 +586,10 @@ script:
|
||||
then:
|
||||
- lambda: 'ESP_LOGD("main", "Hello World!");'
|
||||
|
||||
sm2135:
|
||||
data_pin: GPIO12
|
||||
clock_pin: GPIO14
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
name: 'mpr121_toggle'
|
||||
@@ -828,6 +832,21 @@ output:
|
||||
pin: GPIO5
|
||||
id: my_slow_pwm
|
||||
period: 15s
|
||||
- platform: sm2135
|
||||
id: sm2135_0
|
||||
channel: 0
|
||||
- platform: sm2135
|
||||
id: sm2135_1
|
||||
channel: 1
|
||||
- platform: sm2135
|
||||
id: sm2135_2
|
||||
channel: 2
|
||||
- platform: sm2135
|
||||
id: sm2135_3
|
||||
channel: 3
|
||||
- platform: sm2135
|
||||
id: sm2135_4
|
||||
channel: 4
|
||||
|
||||
mcp23017:
|
||||
id: mcp23017_hub
|
||||
|
Reference in New Issue
Block a user