Skip to content

Commit 6580287

Browse files
committed
Reformatted per pre-commit
1 parent 092e3e6 commit 6580287

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

adafruit_cursorcontrol/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
"""
1212
__version__ = "0.0.0-auto.0"
1313
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_CursorControl.git"
14-

adafruit_cursorcontrol/cursorcontrol_cursormanager.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ def _init_hardware(self):
8383
"Board must have a D-Pad or Joystick for use with CursorManager!"
8484
)
8585
self._pad = ShiftRegisterKeys(
86-
clock = board.BUTTON_CLOCK,
87-
data = board.BUTTON_OUT,
88-
latch = board.BUTTON_LATCH,
86+
clock=board.BUTTON_CLOCK,
87+
data=board.BUTTON_OUT,
88+
latch=board.BUTTON_LATCH,
8989
key_count=8,
90-
value_when_pressed=True
90+
value_when_pressed=True,
9191
)
9292

9393
@property
@@ -134,12 +134,12 @@ def _read_joystick_y(self, samples=3):
134134
def _store_button_states(self, event):
135135
"""Stores the state of the PyBadge's D-Pad or the PyGamer's Joystick
136136
into a byte
137-
137+
138138
:param Event event: The latest button press transition event detected.
139139
"""
140140
if event:
141141
bit_index = event.key_number
142-
current_state = (self._pad_states >> bit_index)
142+
current_state = self._pad_states >> bit_index
143143
if current_state != event.pressed:
144144
self._pad_states = (1 << bit_index) ^ self._pad_states
145145

0 commit comments

Comments
 (0)