diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2020-09-25 11:07:22 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2020-09-25 11:07:22 -0700 |
| commit | b9d68bc5a6b7b63f52da6c7034d379d6de51be7e (patch) | |
| tree | 0c326d78ac2aeb3b8946bca836030741f195a152 /shared-module | |
| parent | dd86cb00adb2ecb1e0cdf256d9a4e0f96a0c6de1 (diff) | |
Change I2C default to 100khz
Greater that 100khz is technically out of the original spec.
Background here: https://github.com/adafruit/Adafruit_CircuitPython_CLUE/issues/36
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/board/__init__.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-module/board/__init__.c b/shared-module/board/__init__.c index 7d99f2d4e..fb4f731b8 100644 --- a/shared-module/board/__init__.c +++ b/shared-module/board/__init__.c @@ -61,7 +61,7 @@ mp_obj_t common_hal_board_create_i2c(void) { busio_i2c_obj_t *self = &i2c_obj; self->base.type = &busio_i2c_type; - common_hal_busio_i2c_construct(self, DEFAULT_I2C_BUS_SCL, DEFAULT_I2C_BUS_SDA, 400000, 0); + common_hal_busio_i2c_construct(self, DEFAULT_I2C_BUS_SCL, DEFAULT_I2C_BUS_SDA, 100000, 0); i2c_singleton = (mp_obj_t)self; return i2c_singleton; } |
