| | |
| | | |
| | | # PRINT POSITION |
| | | |
| | | def moveAbsolute(self, dots): |
| | | def moveAbsolute(self, dots = 0): |
| | | self.serial.write("\x1b\x24" + chr(dots % 256) + chr(int(dots/256))) |
| | | |
| | | def moveAbsoluteInches(self, inches): |
| | |
| | | def moveRelative(self, dots): |
| | | if dots < 0: |
| | | dots = 65536 + dots |
| | | |
| | | self.serial.write("\x1b\x5c" + chr(dots % 256) + chr(int(dots/256))) |
| | | |
| | | def moveRelativeInches(self, inches): |
| | |
| | | else: |
| | | self.moveRelative(int(milimeters * 576 / 72)) |
| | | |
| | | def marginLeft(self, dots = 0): |
| | | self.serial.write("\x1d\x4c" + chr(dots % 256) + chr(int(dots/256))) |
| | | |
| | | # PRINTING |
| | | |
| | | def printUnicode(self, line=""): |