Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed May 11, 2023
1 parent 7ca7223 commit 6ec737a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions examples/asyncio_displayio_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
label_color=BUTTON_LABEL_COLOR,
)


# Button state data object. Will hold either true of false whether button is currently pressed
class ButtonState:
# pylint: disable=too-few-public-methods
Expand Down Expand Up @@ -146,7 +147,6 @@ async def blink(palette, interval, count, button_state): # Don't forget the asy
:param ButtonState button_state: The ButtonState data object for the invert color button
"""
while count < 0 or count > 0:

# if the color button is pressed
if button_state.state:
# if the color is still on default
Expand Down Expand Up @@ -187,7 +187,6 @@ def handle_color_button(touch_event, color_button, button_state):

# if there is a touch event
if touch_event:

# if the color button is being touched
if color_button.contains(touch_event):
# set selected to change button color
Expand Down
2 changes: 0 additions & 2 deletions examples/serial_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import usb_cdc

async def usb_client():

usb_cdc.data.timeout = 0
s = asyncio.StreamReader(usb_cdc.data)
while True:
Expand All @@ -34,7 +33,6 @@ async def usb_client():
import board

async def uart_client():

uart = board.UART()
uart.timeout = 0
s = asyncio.StreamReader(board.UART())
Expand Down

0 comments on commit 6ec737a

Please sign in to comment.