Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
caternuson committed Jul 7, 2023
1 parent a052cf3 commit ae345a4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/adafruit_blinka/board/kb2040_u2if.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@

# access u2if via pin instance to open for specifc VID/PID
# pylint:disable = protected-access
pin.GP0._u2if_open_hid(0x239A, 0x0105)
pin.GP0._u2if_open_hid(0x239A, 0x0105)
2 changes: 1 addition & 1 deletion src/adafruit_blinka/microcontroller/rp2040_u2if/i2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,4 @@ def __init__(self, scl, sda, *, frequency=100000):
raise ValueError("I2C not found on specified pins.")
self._index = index

super().__init__(index, frequency=frequency)
super().__init__(index, frequency=frequency)
2 changes: 1 addition & 1 deletion src/adafruit_blinka/microcontroller/rp2040_u2if/spi.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,4 @@ def __init__(self, clock, *, baudrate=100000):
index = 0
if index is None:
raise ValueError("No SPI port on specified pin.")
super().__init__(index, baudrate=baudrate)
super().__init__(index, baudrate=baudrate)
4 changes: 3 additions & 1 deletion src/busio.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@ def __init__(self, clock, MOSI=None, MISO=None):
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
Expand Down

0 comments on commit ae345a4

Please sign in to comment.