diff --git a/examples/asyncio_displayio_button.py b/examples/asyncio_displayio_button.py index 22cf633..18903c0 100644 --- a/examples/asyncio_displayio_button.py +++ b/examples/asyncio_displayio_button.py @@ -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 @@ -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 @@ -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 diff --git a/examples/serial_examples.py b/examples/serial_examples.py index 8e8648e..d342f33 100644 --- a/examples/serial_examples.py +++ b/examples/serial_examples.py @@ -22,7 +22,6 @@ import usb_cdc async def usb_client(): - usb_cdc.data.timeout = 0 s = asyncio.StreamReader(usb_cdc.data) while True: @@ -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())