X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/b671d2cb302d23f0cb457d16bf1d2300de16590e..a7f3fb9ecc5714ae247a6eea4d8ac32b8f5613fc:/src/busio.py diff --git a/src/busio.py b/src/busio.py index 2de9e60..9d9f52a 100644 --- a/src/busio.py +++ b/src/busio.py @@ -29,6 +29,8 @@ class I2C(Lockable): """ Busio I2C Class for CircuitPython Compatibility. Used for both MicroPython and Linux. + + NOTE: Frequency has no effect on Linux systems. The argument is only there for compatibility. """ def __init__(self, scl, sda, frequency=100000): @@ -136,6 +138,8 @@ class I2C(Lockable): if detector.board.any_embedded_linux: from adafruit_blinka.microcontroller.generic_linux.i2c import I2C as _I2C + if frequency == 100000: + frequency = None # Set to None if default to avoid triggering warning elif detector.board.ftdi_ft2232h: from adafruit_blinka.microcontroller.ftdi_mpsse.mpsse.i2c import I2C as _I2C else: