Skip to content

Commit 1de6cec

Browse files
committed
Update example file with time.sleep()
1 parent a686c64 commit 1de6cec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/ht16k33_segments_7x4customchars.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99
# Import all board pins.
1010
import board
1111
import busio
12+
import time
1213
from adafruit_ht16k33 import segments
1314

1415
# Create the character dictionary
1516
# You can use the list normally referenced as a starting point
1617
custom_chars = {}
1718
typical_list_values = segments.NUMBERS
18-
typical_list_chars = list("0123456789abcdef")
19+
typical_list_chars = list("0123456789abcdef ")
1920
for char, value in zip(typical_list_chars, typical_list_values):
2021
custom_chars[char] = value
2122

@@ -37,6 +38,7 @@
3738

3839
# Now you can print custom text
3940
display.print("cool")
41+
time.sleep(3)
4042

4143
# You can also marquee custom text
4244
display.marquee("scrolling... ", 0.2)

0 commit comments

Comments
 (0)