aboutsummaryrefslogtreecommitdiff
path: root/ports/esp32
diff options
context:
space:
mode:
authorDamien George2020-09-16 13:30:48 +1000
committerDamien George2020-10-01 12:57:10 +1000
commitc35deb2625efc877b3a0d03d5654e27232b2d101 (patch)
treee3706c52baba2498fae9db769ea5167f321ce427 /ports/esp32
parentc711c0049e5f12cae048d2b0e77bc70e68804ea5 (diff)
extmod/machine_i2c: Rename type to SoftI2C and add custom print method.
Also rename machine_i2c_type to mp_machine_soft_i2c_type. These changes make it clear that it's a soft-I2C implementation, and match SoftSPI. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/esp32')
-rw-r--r--ports/esp32/modmachine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32/modmachine.c b/ports/esp32/modmachine.c
index 82a02522f..d56f6fcef 100644
--- a/ports/esp32/modmachine.c
+++ b/ports/esp32/modmachine.c
@@ -255,7 +255,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR_TouchPad), MP_ROM_PTR(&machine_touchpad_type) },
{ MP_ROM_QSTR(MP_QSTR_ADC), MP_ROM_PTR(&machine_adc_type) },
{ MP_ROM_QSTR(MP_QSTR_DAC), MP_ROM_PTR(&machine_dac_type) },
- { MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&machine_i2c_type) },
+ { MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&mp_machine_soft_i2c_type) },
{ MP_ROM_QSTR(MP_QSTR_PWM), MP_ROM_PTR(&machine_pwm_type) },
{ MP_ROM_QSTR(MP_QSTR_RTC), MP_ROM_PTR(&machine_rtc_type) },
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&mp_machine_soft_spi_type) },