Skip to content

Instantly share code, notes, and snippets.

@seth10
Created May 10, 2017 21:21
Show Gist options
  • Save seth10/e149c557982d420b4799569c7d48a1b0 to your computer and use it in GitHub Desktop.
Save seth10/e149c557982d420b4799569c7d48a1b0 to your computer and use it in GitHub Desktop.
Testing drawAutoText and its parameter align
from PiStorms import PiStorms
import time
psm = PiStorms()
s = psm.screen
for _ in range(4):
for align in ["left", "center", "right"]:
s.clearScreen(display = False)
s.drawAutoText(align+", rotation: "+str(s.currentRotation), 10 if align!="center" else 9999, 20, align=align)
time.sleep(2)
s.rotateLeft()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment