Created
February 21, 2014 20:20
-
-
Save scruss/9142650 to your computer and use it in GitHub Desktop.
Approximation of a HP7470a driver for Chiplotle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
* 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