We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 36c1e8c + 80abd2d commit 4de6c7cCopy full SHA for 4de6c7c
ports/raspberrypi/common-hal/busio/I2C.c
@@ -109,8 +109,11 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
109
// set up as GPIO by the bitbangio.I2C object.
110
//
111
// Sets pins to open drain, high, and input.
112
+ //
113
+ // Do not use the default supplied clock stretching timeout here.
114
+ // It is too short for some devices. Use the busio timeout instead.
115
shared_module_bitbangio_i2c_construct(&self->bitbangio_i2c, scl, sda,
- frequency, timeout);
116
+ frequency, BUS_TIMEOUT_US);
117
118
self->baudrate = i2c_init(self->peripheral, frequency);
119
0 commit comments