Skip to content

Commit 62d44b1

Browse files
committed
Simplify
1 parent 339619c commit 62d44b1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

examples/shifting_in_string/main.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import board
22
import dotstar_featherwing
33
import time
4+
import font3
45

5-
wing = dotstar_featherwing.DotstarFeatherwing(board.D13, board.D11)
6+
wing = dotstar_featherwing.DotstarFeatherwing(board.D13, board.D11, 0.1)
67

78
while True:
89
wing.clear()
9-
wing.shift_in_string(wing.font_3, "abcdefghijklmnopqrstuvwxyz0123456789!?.-_+/*=@", (0x00, 0x20, 0x20), 0.1)
10-
time.sleep(2)
11-
wing.clear()
12-
wing.shift_in_string(wing.font_3, "hello adafruit discord!", (0x20, 0x00, 0x20), 0.05)
10+
wing.shift_in_string(font3.font, "hello adafruit discord!", (0x20, 0x00, 0x20), 0.05)
1311
time.sleep(2)

0 commit comments

Comments
 (0)