MCPcopy Create free account
hub / github.com/kiibohd/controller / __init__

Method __init__

Scan/Devices/STLcd/bitmap2Struct.py:121–128  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

119class ImageToStruct(object):
120
121 def __init__(self, filename):
122 self.max_height = 32
123 self.max_width = 128
124 self.x_offset = 0
125 self.y_offset = 0
126 self.filename = filename
127 self.output_image = STLcdGraphic( self.max_height, self.max_width )
128 self.disp_test = self.prep()
129
130 def create_and_convert_image(self):
131 # Load the input filename and convert to black & white

Callers

nothing calls this directly

Calls 2

prepMethod · 0.95
STLcdGraphicClass · 0.85

Tested by

no test coverage detected