diff py/lcd.py @ 453:0af7b38a1847

back to random words on the lcd
author Matt Johnston <matt@ucc.asn.au>
date Thu, 20 Dec 2012 22:26:33 +0800
parents cea8ec101c6b
children
line wrap: on
line diff
--- a/py/lcd.py	Thu Dec 20 22:26:18 2012 +0800
+++ b/py/lcd.py	Thu Dec 20 22:26:33 2012 +0800
@@ -60,9 +60,9 @@
 l.put(1, 'b')
 l.put(4, 'b')
 
-#words = [word.strip() for word in file('/usr/share/dict/words', 'r')]
-#random.shuffle(words)
-words = file(sys.argv[1], 'r').read().split()
+words = [word.strip() for word in file('/usr/share/dict/words', 'r')]
+random.shuffle(words)
+#words = file(sys.argv[1], 'r').read().split()
 
 pos = 0
 last = ''
@@ -74,4 +74,4 @@
     l.put(0, last)
     l.put(16, word)
     last = word
-    time.sleep(0.1)
+    time.sleep(0.3)