Skip to content

Commit 68a5881

Browse files
committed
black
1 parent 2a22758 commit 68a5881

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

adafruit_pioasm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ def __init__(self, text_program: str) -> None:
206206
try:
207207
assembled[-1] |= SET_DESTINATIONS.index(instruction[1]) << 5
208208
except ValueError as exc:
209-
raise ValueError(f"Invalid set destination '{instruction[1]}'") from exc
209+
raise ValueError(
210+
f"Invalid set destination '{instruction[1]}'"
211+
) from exc
210212
value = int(instruction[-1])
211213
if not 0 <= value <= 31:
212214
raise RuntimeError("Set value out of range")

examples/txuart.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,16 @@
2525

2626
class TXUART:
2727
def __init__(self, *, tx, baudrate=9600):
28-
self.pio = rp2pio.StateMachine(code.assembled,
28+
self.pio = rp2pio.StateMachine(
29+
code.assembled,
2930
first_out_pin=tx,
3031
first_sideset_pin=tx,
3132
frequency=8 * baudrate,
3233
initial_sideset_pin_state=1,
3334
initial_sideset_pin_direction=1,
3435
initial_out_pin_state=1,
3536
initial_out_pin_direction=1,
36-
**code.pio_kwargs
37+
**code.pio_kwargs,
3738
)
3839

3940
@property

0 commit comments

Comments
 (0)