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 2c0e119 commit 1edfcecCopy full SHA for 1edfcec
Adafruit_CharLCDPlate/Adafruit_CharLCDPlate_thanks.py
@@ -16,16 +16,20 @@
16
# Calc how many spaces to move
17
move = len(message) - 16
18
19
-sleep(1)
20
-
21
-# Scroll display
22
-for x in range(0,move):
23
- lcd.scrollDisplayLeft()
24
- sleep(0.15)
25
-# Wait half a second
26
-sleep(0.5)
27
-# Scroll display back
28
-for x in range(0, move):
29
- lcd.scrollDisplayRight()
30
- sleep(0.08)
+# make infinite loop
+loop = 1
+while True:
+ # Wait one second
+ sleep(1)
+ # Scroll display
+ for x in range(0,move):
+ lcd.scrollDisplayLeft()
+ sleep(0.15)
+ # Wait half a second
+ sleep(0.5)
+ # Scroll display back
31
+ for x in range(0, move):
32
+ lcd.scrollDisplayRight()
33
+ sleep(0.08)
34
+ loop += 1
35
0 commit comments