Created
May 10, 2017 21:21
-
-
Save seth10/e149c557982d420b4799569c7d48a1b0 to your computer and use it in GitHub Desktop.
Testing drawAutoText and its parameter align
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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