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:
59
59
SKY = (0 , 180 , 255 )
60
60
61
61
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 ,
71
71
):
72
72
"""Display lines of text on a display using displayio. Lines of text are created in order as
73
73
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
158
158
if title :
159
159
# Fail gracefully if title is longer than title_length characters. Defaults to 80.
160
160
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
+ )
163
165
164
166
title = label .Label (
165
167
self ._font ,
Original file line number Diff line number Diff line change 1
1
# SPDX-FileCopyrightText: Copyright (c) 2021 Kattni Rembor for Adafruit Industries
2
2
#
3
3
# SPDX-License-Identifier: Unlicense
4
+ # pylint: disable=no-member
4
5
"""Display the microcontroller CPU temperature in C and F on a display."""
5
6
import microcontroller
6
7
from adafruit_simple_text_display import SimpleTextDisplay
You can’t perform that action at this time.
0 commit comments