コード例 #1
0
 def __init__(self, width, height, driver, auto_flush=True):
     Chip.__init__(self, width, height, driver, auto_flush)
     Page.__init__(self, driver)
     self.rotation = 0
     self.buffer = []
     self.area = {
         'start_x': 0,
         'start_y': 0,
         'end_x': width - 1,
         'end_y': height - 1
     }
コード例 #2
0
 def __init__(self, width, height, driver, auto_flush=False):
     Chip.__init__(self, width, height, driver, auto_flush)
     Page.__init__(self, driver)
     self.rotation = 0