mindsensors / PiStorms

PiStorms code, libraries and setup.
http://www.mindsensors.com/content/78-pistorms-lego-interface
29 stars 17 forks source link

mindsensorsUI Improvements #27

Closed seth10 closed 7 years ago

seth10 commented 7 years ago
seth10 commented 7 years ago

Snippet for testing new termPrint... methods:

from PiStorms import PiStorms
import random

words = open('/usr/share/dict/words').readlines()
words = [word.rstrip() for word in words]

psm = PiStorms()

while not psm.isKeyPressed():
    psm.screen.termPrintln(random.choice(words))
    psm.screen.termReplaceLastLine(str(random.random()))