Skip to content

Commit 3c6a060

Browse files
committed
Update style for examples (black)
1 parent e99ef3b commit 3c6a060

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

digitalio/digitalio_blink_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212

1313
while True:
1414
led.value = not led.value
15-
time.sleep(0.25)
15+
time.sleep(0.25)

displayio/displayio_colored_screen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Create a two color palette
1010
palette = displayio.Palette(2)
1111

12-
palette[0] = 0xbb33bb # screen color
12+
palette[0] = 0xBB33BB # screen color
1313

1414
# Create a TileGrid using the Bitmap and Palette
1515
tile_grid = displayio.TileGrid(bitmap, pixel_shader=palette)
@@ -25,4 +25,4 @@
2525

2626
# Loop forever so you can enjoy your image
2727
while True:
28-
pass
28+
pass

displayio/displayio_shape_corners.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import board
22
import displayio
3+
34
"""
45
Illustrate usage of displayio.Shape with boundary and mirror.
56
"""
@@ -15,7 +16,7 @@
1516

1617
# set corner pixels out of bounds
1718
for i in range(CORNER_SIZE):
18-
shape.set_boundary(i, CORNER_SIZE-1-i, SHAPE_WIDTH//2-1)
19+
shape.set_boundary(i, CORNER_SIZE - 1 - i, SHAPE_WIDTH // 2 - 1)
1920

2021
palette[0] = 0x0000FF # out of bounds color
2122
palette[1] = 0x00FFFF # shape color

0 commit comments

Comments
 (0)