shabadge: Switch to polyfloyd/mpr121 patch
This commit is contained in:
parent
861dc288c2
commit
7d9b3edd97
1 changed files with 15 additions and 15 deletions
|
@ -22,10 +22,10 @@ mqtt:
|
||||||
|
|
||||||
external_components:
|
external_components:
|
||||||
- source:
|
- source:
|
||||||
type: local
|
type: git
|
||||||
path: local_components
|
url: https://github.com/polyfloyd/esphome
|
||||||
components: [ mpr121_gpio ]
|
ref: mpr-121-gpio
|
||||||
|
components: [ mpr121 ]
|
||||||
|
|
||||||
spi:
|
spi:
|
||||||
clk_pin: 18
|
clk_pin: 18
|
||||||
|
@ -42,7 +42,7 @@ uart:
|
||||||
tx_pin: 16
|
tx_pin: 16
|
||||||
baud_rate: 9600
|
baud_rate: 9600
|
||||||
|
|
||||||
mpr121_gpio:
|
mpr121:
|
||||||
id: mpr121_component
|
id: mpr121_component
|
||||||
address: 0x5A
|
address: 0x5A
|
||||||
touch_debounce: 1
|
touch_debounce: 1
|
||||||
|
@ -52,42 +52,42 @@ mpr121_gpio:
|
||||||
|
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: mpr121_gpio
|
- platform: mpr121
|
||||||
id: touch_A
|
id: touch_A
|
||||||
channel: 0
|
channel: 0
|
||||||
name: "Touch A"
|
name: "Touch A"
|
||||||
disabled_by_default: true
|
disabled_by_default: true
|
||||||
- platform: mpr121_gpio
|
- platform: mpr121
|
||||||
id: touch_B
|
id: touch_B
|
||||||
channel: 1
|
channel: 1
|
||||||
name: "Touch B"
|
name: "Touch B"
|
||||||
disabled_by_default: true
|
disabled_by_default: true
|
||||||
- platform: mpr121_gpio
|
- platform: mpr121
|
||||||
id: touch_START
|
id: touch_START
|
||||||
channel: 2
|
channel: 2
|
||||||
name: "Touch Start"
|
name: "Touch Start"
|
||||||
disabled_by_default: true
|
disabled_by_default: true
|
||||||
- platform: mpr121_gpio
|
- platform: mpr121
|
||||||
id: touch_SEL
|
id: touch_SEL
|
||||||
channel: 3
|
channel: 3
|
||||||
name: "Touch Select"
|
name: "Touch Select"
|
||||||
disabled_by_default: true
|
disabled_by_default: true
|
||||||
- platform: mpr121_gpio
|
- platform: mpr121
|
||||||
id: touch_DOWN
|
id: touch_DOWN
|
||||||
channel: 4
|
channel: 4
|
||||||
name: "Touch Down"
|
name: "Touch Down"
|
||||||
disabled_by_default: true
|
disabled_by_default: true
|
||||||
- platform: mpr121_gpio
|
- platform: mpr121
|
||||||
id: touch_RIGHT
|
id: touch_RIGHT
|
||||||
channel: 5
|
channel: 5
|
||||||
name: "Touch Right"
|
name: "Touch Right"
|
||||||
disabled_by_default: true
|
disabled_by_default: true
|
||||||
- platform: mpr121_gpio
|
- platform: mpr121
|
||||||
id: touch_UP
|
id: touch_UP
|
||||||
channel: 6
|
channel: 6
|
||||||
name: "Touch Up"
|
name: "Touch Up"
|
||||||
disabled_by_default: true
|
disabled_by_default: true
|
||||||
- platform: mpr121_gpio
|
- platform: mpr121
|
||||||
id: touch_LEFT
|
id: touch_LEFT
|
||||||
channel: 7
|
channel: 7
|
||||||
name: "Touch Left"
|
name: "Touch Left"
|
||||||
|
@ -103,8 +103,8 @@ output:
|
||||||
- id: led_and_mhz19_power
|
- id: led_and_mhz19_power
|
||||||
platform: gpio
|
platform: gpio
|
||||||
pin:
|
pin:
|
||||||
mpr121_gpio: mpr121_component
|
mpr121_id: mpr121_component
|
||||||
number: 6
|
number: 10
|
||||||
mode: OUTPUT
|
mode: OUTPUT
|
||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue