]>
Commit | Line | Data |
---|---|---|
673c0f35 | 1 | import Printer, time |
c350c4fa | 2 | from utils import Gcode |
5d2f6093 MR |
3 | |
4 | testPoints = [ | |
c350c4fa MR |
5 | (176, 204), |
6 | (306, 208), | |
7 | (176, 204) | |
5d2f6093 MR |
8 | ] |
9 | ||
c350c4fa | 10 | start_time = time.time() |
673c0f35 | 11 | p = Printer.Printer('COM4', (200,200)) |
16703c8e | 12 | |
c350c4fa | 13 | cum = False |
673c0f35 | 14 | while 1: |
c350c4fa MR |
15 | if time.time() - start_time > 8: |
16 | if not cum: | |
17 | cum = True | |
18 | p.sendPackage(testPoints) | |
19 | ||
20 | res = p.packageIsExecuting() | |
21 | if not res: | |
22 | print('Is HOmed: ' + str(time.time())) | |
23 | p.sendPackage(testPoints) |