mirror of
https://github.com/esphome/esphome.git
synced 2025-01-19 12:24:05 +00:00
MULTI_CONF
This commit is contained in:
parent
3e044db9f1
commit
9231b80aa9
@ -11,6 +11,7 @@ ttp229_bsf_ns = cg.esphome_ns.namespace('ttp229_bsf')
|
|||||||
|
|
||||||
TTP229BSFComponent = ttp229_bsf_ns.class_('TTP229BSFComponent', cg.Component)
|
TTP229BSFComponent = ttp229_bsf_ns.class_('TTP229BSFComponent', cg.Component)
|
||||||
|
|
||||||
|
MULTI_CONF = True
|
||||||
CONFIG_SCHEMA = cv.Schema({
|
CONFIG_SCHEMA = cv.Schema({
|
||||||
cv.GenerateID(): cv.declare_id(TTP229BSFComponent),
|
cv.GenerateID(): cv.declare_id(TTP229BSFComponent),
|
||||||
cv.Required(CONF_SDO_PIN): pins.gpio_input_pullup_pin_schema,
|
cv.Required(CONF_SDO_PIN): pins.gpio_input_pullup_pin_schema,
|
||||||
|
@ -11,6 +11,7 @@ ttp229_lsf_ns = cg.esphome_ns.namespace('ttp229_lsf')
|
|||||||
|
|
||||||
TTP229LSFComponent = ttp229_lsf_ns.class_('TTP229LSFComponent', cg.Component, i2c.I2CDevice)
|
TTP229LSFComponent = ttp229_lsf_ns.class_('TTP229LSFComponent', cg.Component, i2c.I2CDevice)
|
||||||
|
|
||||||
|
MULTI_CONF = True
|
||||||
CONFIG_SCHEMA = cv.Schema({
|
CONFIG_SCHEMA = cv.Schema({
|
||||||
cv.GenerateID(): cv.declare_id(TTP229LSFComponent),
|
cv.GenerateID(): cv.declare_id(TTP229LSFComponent),
|
||||||
}).extend(cv.COMPONENT_SCHEMA).extend(i2c.i2c_device_schema(0x57))
|
}).extend(cv.COMPONENT_SCHEMA).extend(i2c.i2c_device_schema(0x57))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user