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

Method getarray

Scan/Devices/STLcd/bitmap2Struct.py:64–77  ·  view source on GitHub ↗
( self , string=False)

Source from the content-addressed store, hash-verified

62 return self.page_data[ page ]
63
64 def getarray( self , string=False):
65 if string is not False:
66 struct = "{\n"
67
68 for page in range( 0, self.page_count ):
69 for elem in self.page_data[ page ]:
70 struct += "0x{0:02x}, ".format( elem )
71
72 if page != self.page_count - 1:
73 struct += "\n"
74
75 struct += "\n}"
76 return struct
77 return self.page_data
78
79 # Prints out what the image will look like on the display
80 def preview( self ):

Callers 2

getarrayMethod · 0.45
bitmap2Struct.pyFile · 0.45

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected