Axiohm A758 helper library for Python
Jacek Kowalski
2016-05-03 bd81c147c5fcdcbddc70d2e768df6f19d781ad58
axiohm.py
@@ -232,7 +232,7 @@
   
   # 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):
@@ -250,6 +250,7 @@
   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):
@@ -264,6 +265,9 @@
      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=""):