"""
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):
self._pins = (clock, clock, clock) # will determine MOSI/MISO from clock
return
if detector.board.kb2040_u2if:
- from adafruit_blinka.microcontroller.rp2040_u2if.spi import SPI_KB2040 as _SPI
+ from adafruit_blinka.microcontroller.rp2040_u2if.spi import (
+ SPI_KB2040 as _SPI,
+ )
self._spi = _SPI(clock) # this is really all that's needed
self._pins = (clock, clock, clock) # will determine MOSI/MISO from clock