1 parent a316352 commit e7842f1Copy full SHA for e7842f1
1 file changed
ports/raspberrypi/common-hal/busio/I2C.c
@@ -48,10 +48,12 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
48
mp_arg_validate_int_max(frequency, 1000000, MP_QSTR_frequency);
49
50
51
- #if CIRCUITPY_REQUIRE_I2C_PULLUPS && !CIRCUITPY_I2C_ALLOW_INTERNAL_PULL_UP
52
// Don't bother to check for pull-ups when the internal pull-ups are used.
+ #if CIRCUITPY_REQUIRE_I2C_PULLUPS && !CIRCUITPY_I2C_ALLOW_INTERNAL_PULL_UP
53
+
54
// TODO: maybe check the pull-up efficacy with timing scaled by frequency
55
// as is done in espressif, instead of using a fixed 3us.
56
57
// Test that the pins are in a high state. (Hopefully indicating they are pulled up.)
58
gpio_set_function(sda->number, GPIO_FUNC_SIO);
59
gpio_set_function(scl->number, GPIO_FUNC_SIO);
0 commit comments