Skip to content

Commit 5aa37e1

Browse files
committed
"Reformatted per new black version"
1 parent cac4126 commit 5aa37e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

adafruit_pioasm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def __init__(self, text_program: str, *, build_debuginfo=False) -> None:
9595
if sideset_count == 0:
9696
raise RuntimeError("No side_set count set")
9797
sideset_value = int(instruction[-1])
98-
if sideset_value >= 2 ** sideset_count:
98+
if sideset_value >= 2**sideset_count:
9999
raise RuntimeError("Sideset value too large")
100100
delay |= sideset_value << (5 - sideset_count - sideset_enable)
101101
delay |= sideset_enable << 4

examples/pioasm_i2sout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# signed 16 bit
2020
s16 = array.array("h", [0] * length)
2121
for i in range(length):
22-
s16[i] = int(math.sin(math.pi * 2 * i / length) * (2 ** 15))
22+
s16[i] = int(math.sin(math.pi * 2 * i / length) * (2**15))
2323
print(s16[i])
2424

2525
program = """

0 commit comments

Comments
 (0)