diff options
| author | Dan Halbert <halbert@halwitz.org> | 2020-01-10 09:20:21 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2020-01-10 09:20:21 -0500 |
| commit | 360c876be406eb039c995e0b31d1c4ebe5e70323 (patch) | |
| tree | cf774917177cc354c14c780e74d89adb9cb0f275 | |
| parent | 189f2d5f077cd4c30e6ad0fe6033869b580ea9a6 (diff) | |
add flag to i.mx port
| -rw-r--r-- | ports/mimxrt10xx/common-hal/busio/I2C.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/mimxrt10xx/common-hal/busio/I2C.c b/ports/mimxrt10xx/common-hal/busio/I2C.c index 3c555df45..2de996f9a 100644 --- a/ports/mimxrt10xx/common-hal/busio/I2C.c +++ b/ports/mimxrt10xx/common-hal/busio/I2C.c @@ -98,11 +98,13 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self, LPI2C_MasterInit(self->i2c, &config, I2C_CLOCK_FREQ); +#if CIRCUITPY_REQUIRE_I2C_PULLUPS // if (!gpio_get_pin_level(sda->number) || !gpio_get_pin_level(scl->number)) { // reset_pin_number(sda->number); // reset_pin_number(scl->number); // mp_raise_RuntimeError(translate("SDA or SCL needs a pull up")); // } +#endif claim_pin(self->sda_pin->pin); claim_pin(self->scl_pin->pin); |
