Skip to content

frequency kwarg has no effect #11

@PaintYourDragon

Description

@PaintYourDragon

Regardless of “frequency” setting, actual I2C frequency is always about 155 KHz.
i.e.. these all yield the same throughput:

i2c = I2C(2, frequency=100000)  # Extended bus on 22, 23 "
i2c = I2C(2, frequency=400000)  # Extended bus on 22, 23 "
i2c = I2C(2, frequency=1000000)  # Extended bus on 22, 23 "

Test system is Raspberry Pi 3 B+, configured with two extra I2C buses in /boot/config.txt:

dtoverlay=i2c-gpio,bus=2,i2c_gpio_sda=22,i2c_gpio_scl=23
dtoverlay=i2c-gpio,bus=3,i2c_gpio_sda=17,i2c_gpio_scl=27

Happens on both buses.
Not sure if this belongs here or is an underlying busio issue.
Extra peculiar that it’s a somewhat non-standard-ish 155 KHz, not defaulting to an Arduino-like 100 KHz.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions