Skip to content

Commit 10e8b74

Browse files
author
caternuson
committed
update example
1 parent 04e7ece commit 10e8b74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/segments.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
display.show()
2929

3030
# Set the first character to '1':
31-
display.put('1', 0)
31+
display[0] = '1'
3232
# Set the second character to '2':
33-
display.put('2', 1)
33+
display[1] = '2'
3434
# Set the third character to 'A':
35-
display.put('A', 2)
35+
display[2] = 'A'
3636
# Set the forth character to 'B':
37-
display.put('B', 3)
37+
display[3] = 'B'
3838
# Make sure to call show to see the changes above on the display!
3939
display.show()

0 commit comments

Comments
 (0)