Skip to content

Commit

Permalink
fix: demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Pintman committed Dec 18, 2024
1 parent 0e913ff commit 7dfef45
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions flipdotsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,13 @@ def test_flipdot_sim():
if __name__ == '__main__':
import flipdotfont
import configuration
import time
fds = FlipDotSim(
width=configuration.WIDTH,
height=configuration.HEIGHT,
fps=configuration.simulator["fps"])
fdw = flipdotfont.TextScroller(fds)
fdw.scrolltext('Test 12345!', flipdotfont.big_font(), 1)
fdw = flipdotfont.TextScroller(fds, "Test 12345!", flipdotfont.big_font())
for _ in range(20):
fdw.scrolltext()
fds.show()
time.sleep(0.1)

0 comments on commit 7dfef45

Please sign in to comment.