Skip to content

Instantly share code, notes, and snippets.

@scruss
Created February 21, 2014 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scruss/9142650 to your computer and use it in GitHub Desktop.
Save scruss/9142650 to your computer and use it in GitHub Desktop.
Approximation of a HP7470a driver for Chiplotle
"""
* This file is part of chiplotle.
*
* http://music.columbia.edu/cmc/chiplotle
*
* HP7470A class contributed by scruss - 2014-02-21
"""
from chiplotle.plotters.drawingplotter import _DrawingPlotter
class HP7470A(_DrawingPlotter):
def __init__(self, ser, **kwargs):
self.allowedHPGLCommands = tuple(['\x1b.', 'AA','AR','CA','CI','CP',
'CS','DC','DF','DI','DP','DR','DT','IM','IN',
'IP','IW','LB','LT','OA','OC','OD','OE','OF','OI','OO','OP',
'OS','OW','PA','PD','PR','PU','SA','SC',
'SI','SL','SM','SP','SR','SS','TL','UC','VS','XT','YT'])
_DrawingPlotter.__init__(self, ser, **kwargs)
self.type = "HP7470A"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment