Merge pull request #6126 from prplz/fix-espressif-pullup-detection

Espressif: Fix i2c pullup detection
This commit is contained in:
Dan Halbert 2022-03-08 09:28:06 -05:00 committed by GitHub
commit ab0a7a8515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,8 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
gpio_set_direction(sda->number, GPIO_MODE_DEF_INPUT);
gpio_set_direction(scl->number, GPIO_MODE_DEF_INPUT);
gpio_pullup_dis(sda->number);
gpio_pullup_dis(scl->number);
gpio_pulldown_en(sda->number);
gpio_pulldown_en(scl->number);