Skip to content

Commit 64bcf8e

Browse files
author
caternuson
committed
of course pylint, whatever you say pylint
1 parent 895c2dd commit 64bcf8e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

examples/bicolor24.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@
1616
i2c = busio.I2C(board.SCL, board.SDA)
1717

1818
# Create the LED bargraph class.
19-
bar = Bicolor24(i2c)
19+
bc24 = Bicolor24(i2c)
2020

2121
# Set individual segments of bargraph
22-
bar[0] = bar.LED_RED
23-
bar[1] = bar.LED_GREEN
24-
bar[2] = bar.LED_YELLOW
22+
bc24[0] = bc24.LED_RED
23+
bc24[1] = bc24.LED_GREEN
24+
bc24[2] = bc24.LED_YELLOW
2525

2626
time.sleep(2)
2727

2828
# Turn them all off
29-
bar.fill(bar.LED_OFF)
29+
bc24.fill(bc24.LED_OFF)
3030

3131
# Turn them on in a loop
3232
for i in range(24):
33-
bar[i] = bar.LED_RED
33+
bc24[i] = bc24.LED_RED
3434
time.sleep(0.1)
35-
bar[i] = bar.LED_OFF
35+
bc24[i] = bc24.LED_OFF
3636

3737
time.sleep(1)
3838

3939
# Fill the entrire bargraph
40-
bar.fill(bar.LED_GREEN)
40+
bc24.fill(bc24.LED_GREEN)

0 commit comments

Comments
 (0)