Skip to content

Commit ab0a7a8

Browse files
authored
Merge pull request #6126 from prplz/fix-espressif-pullup-detection
Espressif: Fix i2c pullup detection
2 parents 21d84c2 + bc1dade commit ab0a7a8

File tree

1 file changed

+2
-0
lines changed
  • ports/espressif/common-hal/busio

1 file changed

+2
-0
lines changed

ports/espressif/common-hal/busio/I2C.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
5050
gpio_set_direction(sda->number, GPIO_MODE_DEF_INPUT);
5151
gpio_set_direction(scl->number, GPIO_MODE_DEF_INPUT);
5252

53+
gpio_pullup_dis(sda->number);
54+
gpio_pullup_dis(scl->number);
5355
gpio_pulldown_en(sda->number);
5456
gpio_pulldown_en(scl->number);
5557

0 commit comments

Comments
 (0)