1 parent 2cf2ebd commit a316352Copy full SHA for a316352
1 file changed
ports/raspberrypi/common-hal/busio/I2C.c
@@ -48,6 +48,7 @@ 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.
53
// TODO: maybe check the pull-up efficacy with timing scaled by frequency
54
// as is done in espressif, instead of using a fixed 3us.
0 commit comments