Skip to content

Commit 1446806

Browse files
committed
"Reformatted per new black version"
1 parent 81b1508 commit 1446806

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

adafruit_circuitplayground/circuit_playground_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(self, pin):
4747
@property
4848
def light(self):
4949
"""Light level."""
50-
return self._photocell.value * 330 // (2 ** 16)
50+
return self._photocell.value * 330 // (2**16)
5151

5252

5353
class CircuitPlaygroundBase: # pylint: disable=too-many-public-methods
@@ -683,8 +683,8 @@ def red_led(self, value):
683683

684684
@staticmethod
685685
def _sine_sample(length):
686-
tone_volume = (2 ** 15) - 1
687-
shift = 2 ** 15
686+
tone_volume = (2**15) - 1
687+
shift = 2**15
688688
for i in range(length):
689689
yield int(tone_volume * math.sin(2 * math.pi * (i / length)) + shift)
690690

examples/circuitplayground_ir_transmit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Create a 'pwmio' output, to send infrared signals from the IR transmitter
2020
try:
21-
pwm = pwmio.PWMOut(board.IR_TX, frequency=38000, duty_cycle=2 ** 15)
21+
pwm = pwmio.PWMOut(board.IR_TX, frequency=38000, duty_cycle=2**15)
2222
except AttributeError as err:
2323
raise NotImplementedError(
2424
"This example does not work with Circuit Playground Bluefruit!"

0 commit comments

Comments
 (0)