Skip to content

Commit 28dc4ae

Browse files
author
Margaret Matocha
committed
Ran black on examples
1 parent 0a70198 commit 28dc4ae

3 files changed

+7
-8
lines changed

examples/display_shapes_sparkline_simpletest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
display_bus,
7272
width=DISPLAY_WIDTH,
7373
height=DISPLAY_HEIGHT,
74-
rotation=180, # The rotation can be adjusted to match your configuration.
74+
rotation=180, # The rotation can be adjusted to match your configuration.
7575
auto_refresh=True,
7676
native_frames_per_second=90,
7777
)
@@ -105,7 +105,7 @@
105105
myGroup.append(mySparkline1)
106106

107107

108-
# Add myGroup (containing the sparkline) to the display
108+
# Add myGroup (containing the sparkline) to the display
109109
display.show(myGroup)
110110

111111
# Start the main loop
@@ -119,7 +119,7 @@
119119
# values (between 0 and 10) will fit within the visible range of this sparkline
120120
mySparkline1.add_value(random.uniform(0, 10))
121121

122-
# turn the display auto_refresh back on
122+
# turn the display auto_refresh back on
123123
display.auto_refresh = True
124124

125125
# The display seems to be less jittery if a small sleep time is provided

examples/display_shapes_sparkline_ticks.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
display_bus,
7676
width=DISPLAY_WIDTH,
7777
height=DISPLAY_HEIGHT,
78-
rotation=180, # The rotation can be adjusted to match your configuration.
78+
rotation=180, # The rotation can be adjusted to match your configuration.
7979
auto_refresh=True,
8080
native_frames_per_second=90,
8181
)
@@ -91,8 +91,8 @@
9191
##########################################
9292

9393
# Baseline size of the sparkline chart, in pixels.
94-
chartWidth = display.width-50
95-
chartHeight = display.height-50
94+
chartWidth = display.width - 50
95+
chartHeight = display.height - 50
9696

9797
font = terminalio.FONT
9898

@@ -190,4 +190,3 @@
190190
# The display seems to be less jittery if a small sleep time is provided
191191
# You can adjust this to see if it has any effect
192192
time.sleep(0.01)
193-

examples/display_shapes_sparkline_triple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
display_bus,
7676
width=DISPLAY_WIDTH,
7777
height=DISPLAY_HEIGHT,
78-
rotation=180, # The rotation can be adjusted to match your configuration.
78+
rotation=180, # The rotation can be adjusted to match your configuration.
7979
auto_refresh=True,
8080
native_frames_per_second=90,
8181
)

0 commit comments

Comments
 (0)