File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -59,15 +59,15 @@ class SimpleTextDisplay:
5959 SKY = (0 , 180 , 255 )
6060
6161 def __init__ ( # pylint: disable=too-many-arguments
62- self ,
63- title = None ,
64- title_color = 0xFFFFFF ,
65- title_scale = 1 ,
66- title_length = 80 ,
67- text_scale = 1 ,
68- font = None ,
69- colors = None ,
70- display = None ,
62+ self ,
63+ title = None ,
64+ title_color = 0xFFFFFF ,
65+ title_scale = 1 ,
66+ title_length = 80 ,
67+ text_scale = 1 ,
68+ font = None ,
69+ colors = None ,
70+ display = None ,
7171 ):
7272 """Display lines of text on a display using displayio. Lines of text are created in order as
7373 shown in the example below. If you skip a number, the line will be shown blank on the
@@ -158,8 +158,10 @@ def __init__( # pylint: disable=too-many-arguments
158158 if title :
159159 # Fail gracefully if title is longer than title_length characters. Defaults to 80.
160160 if len (title ) > title_length :
161- raise ValueError ("Title character count must be less than or equal to title_length."
162- " Default is 80." )
161+ raise ValueError (
162+ "Title character count must be less than or equal to title_length."
163+ " Default is 80."
164+ )
163165
164166 title = label .Label (
165167 self ._font ,
Original file line number Diff line number Diff line change 11# SPDX-FileCopyrightText: Copyright (c) 2021 Kattni Rembor for Adafruit Industries
22#
33# SPDX-License-Identifier: Unlicense
4+ # pylint: disable=no-member
45"""Display the microcontroller CPU temperature in C and F on a display."""
56import microcontroller
67from adafruit_simple_text_display import SimpleTextDisplay
You can’t perform that action at this time.
0 commit comments