We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9d76f0 commit ab8a4ddCopy full SHA for ab8a4dd
CircuitPython_RGBMatrix/simple_scroller.py
@@ -67,9 +67,18 @@ def scroll(line):
67
if line.x < -line_width:
68
line.x = display.width
69
70
+# This function scrolls lines backwards. Try switching which function is
71
+# called for line2 below!
72
+def reverse_scroll(line):
73
+ line.x = line.x + 1
74
+ line_width = line.bounding_box[2]
75
+ if line.x >= display.width:
76
+ line.x = -line_width
77
+
78
# You can add more effects in this loop. For instance, maybe you want to set the
-# color of each label to a different value
79
+# color of each label to a different value.
80
while True:
81
scroll(line1)
82
scroll(line2)
83
+ #reverse_scroll(line2)
84
display.refresh(minimum_frames_per_second=0)
0 commit comments