fake rotaion for ssd and nju

This commit is contained in:
Bartosz Kościów 2017-05-18 18:30:47 +02:00
parent 221ee59f79
commit 3b8d87772b
3 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class ILI9325(Area, Chip):
def __init__(self, width, height, driver):
Chip.__init__(self, width, height, driver, True)
Area.__init__(self, driver)
self.rotation = 270
self.rotation = 0
def _converted_background_color(self):
"""color from 8-8-8 to 5-6-5"""

View File

@ -8,6 +8,7 @@ class NJU6450(Page, Chip):
def __init__(self, width, height, driver, auto_flush=True):
Chip.__init__(self, width, height, driver, auto_flush)
Page.__init__(self, driver)
self.rotation = 0
def init(self):
"""initialize display"""

View File

@ -8,6 +8,7 @@ class SSD1306(Page, Chip):
def __init__(self, width, height, driver, auto_flush=True):
Chip.__init__(self, width, height, driver, auto_flush)
Page.__init__(self, driver)
self.rotation = 0
def init(self):
"""inits a device"""