Mercurial > templog
changeset 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 | 25bdf95f0e29 |
children | dce9f7841696 |
files | py/lcd.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
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)