Skip to content

Commit

Permalink
Remove test code from papirus-draw (#149)
Browse files Browse the repository at this point in the history
papirus-draw now draws the image only once.

Previously the image was drawn five times:
once at each rotation, and finally at the requested rotation
  • Loading branch information
GekoPrime authored and tvoverbeek committed Aug 24, 2017
1 parent 1fb0733 commit 6a37c7b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bin/papirus-draw
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,7 @@ def main():
papirus = Papirus(rotation = args.rotate)
if args.filepath:
print("Drawing on PaPiRus.......")
for i in range(0, 5):
print("Rotation = " + str(papirus.rotation))
draw_image(papirus, args.filepath, args.type)
time.sleep(2)
if papirus.rotation == 270:
papirus.rotation = 0
else:
papirus.rotation = papirus.rotation + 90
draw_image(papirus, args.filepath, args.type)

def draw_image(papirus, filepath, type):
message = ""
Expand Down

0 comments on commit 6a37c7b

Please sign in to comment.