]>
Commit | Line | Data |
---|---|---|
673c0f35 | 1 | import Printer, time |
5d2f6093 MR |
2 | |
3 | testPoints = [ | |
4 | (176, 204), | |
5 | (306, 208), | |
6 | (354, 159), | |
7 | (218, 134), | |
8 | (277, 126), | |
9 | (335, 126), | |
10 | (246, 189) | |
11 | ] | |
12 | ||
673c0f35 MR |
13 | p = Printer.Printer('COM4', (200,200)) |
14 | time.sleep(8) | |
15 | p.writePoint((75, 75)) | |
16 | while 1: | |
17 | res = p.packageIsExecuting() | |
18 | if 'Count' in res: | |
19 | xy = res.split('Count')[1].split('Z')[0].strip().replace('Y:', '').split(' ')[1:] | |
20 | x, y = (xy[0], xy[1]) | |
21 | print(str(x) + ' ' + str(y)) |