Skip to content

Commit 6ec737a

Browse files
committed
Run pre-commit
1 parent 7ca7223 commit 6ec737a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

examples/asyncio_displayio_button.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
label_color=BUTTON_LABEL_COLOR,
9999
)
100100

101+
101102
# Button state data object. Will hold either true of false whether button is currently pressed
102103
class ButtonState:
103104
# pylint: disable=too-few-public-methods
@@ -146,7 +147,6 @@ async def blink(palette, interval, count, button_state): # Don't forget the asy
146147
:param ButtonState button_state: The ButtonState data object for the invert color button
147148
"""
148149
while count < 0 or count > 0:
149-
150150
# if the color button is pressed
151151
if button_state.state:
152152
# if the color is still on default
@@ -187,7 +187,6 @@ def handle_color_button(touch_event, color_button, button_state):
187187

188188
# if there is a touch event
189189
if touch_event:
190-
191190
# if the color button is being touched
192191
if color_button.contains(touch_event):
193192
# set selected to change button color

examples/serial_examples.py

-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import usb_cdc
2323

2424
async def usb_client():
25-
2625
usb_cdc.data.timeout = 0
2726
s = asyncio.StreamReader(usb_cdc.data)
2827
while True:
@@ -34,7 +33,6 @@ async def usb_client():
3433
import board
3534

3635
async def uart_client():
37-
3836
uart = board.UART()
3937
uart.timeout = 0
4038
s = asyncio.StreamReader(board.UART())

0 commit comments

Comments
 (0)