mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 01:08:03 +01:00
Allow i2c on non-pullup pins (#447)
This commit is contained in:
parent
e2b1d5438d
commit
26aa399bea
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@ I2CDevice = pins.I2CDevice
|
||||||
|
|
||||||
CONFIG_SCHEMA = vol.Schema({
|
CONFIG_SCHEMA = vol.Schema({
|
||||||
cv.GenerateID(): cv.declare_variable_id(I2CComponent),
|
cv.GenerateID(): cv.declare_variable_id(I2CComponent),
|
||||||
vol.Optional(CONF_SDA, default='SDA'): pins.input_pullup_pin,
|
vol.Optional(CONF_SDA, default='SDA'): pins.input_pin,
|
||||||
vol.Optional(CONF_SCL, default='SCL'): pins.input_pullup_pin,
|
vol.Optional(CONF_SCL, default='SCL'): pins.input_pin,
|
||||||
vol.Optional(CONF_FREQUENCY): vol.All(cv.frequency, vol.Range(min=0, min_included=False)),
|
vol.Optional(CONF_FREQUENCY): vol.All(cv.frequency, vol.Range(min=0, min_included=False)),
|
||||||
vol.Optional(CONF_SCAN): cv.boolean,
|
vol.Optional(CONF_SCAN): cv.boolean,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue