fake rotaion for ssd and nju
This commit is contained in:
parent
221ee59f79
commit
3b8d87772b
@ -32,7 +32,7 @@ class ILI9325(Area, Chip):
|
|||||||
def __init__(self, width, height, driver):
|
def __init__(self, width, height, driver):
|
||||||
Chip.__init__(self, width, height, driver, True)
|
Chip.__init__(self, width, height, driver, True)
|
||||||
Area.__init__(self, driver)
|
Area.__init__(self, driver)
|
||||||
self.rotation = 270
|
self.rotation = 0
|
||||||
|
|
||||||
def _converted_background_color(self):
|
def _converted_background_color(self):
|
||||||
"""color from 8-8-8 to 5-6-5"""
|
"""color from 8-8-8 to 5-6-5"""
|
||||||
|
@ -8,6 +8,7 @@ class NJU6450(Page, Chip):
|
|||||||
def __init__(self, width, height, driver, auto_flush=True):
|
def __init__(self, width, height, driver, auto_flush=True):
|
||||||
Chip.__init__(self, width, height, driver, auto_flush)
|
Chip.__init__(self, width, height, driver, auto_flush)
|
||||||
Page.__init__(self, driver)
|
Page.__init__(self, driver)
|
||||||
|
self.rotation = 0
|
||||||
|
|
||||||
def init(self):
|
def init(self):
|
||||||
"""initialize display"""
|
"""initialize display"""
|
||||||
|
@ -8,6 +8,7 @@ class SSD1306(Page, Chip):
|
|||||||
def __init__(self, width, height, driver, auto_flush=True):
|
def __init__(self, width, height, driver, auto_flush=True):
|
||||||
Chip.__init__(self, width, height, driver, auto_flush)
|
Chip.__init__(self, width, height, driver, auto_flush)
|
||||||
Page.__init__(self, driver)
|
Page.__init__(self, driver)
|
||||||
|
self.rotation = 0
|
||||||
|
|
||||||
def init(self):
|
def init(self):
|
||||||
"""inits a device"""
|
"""inits a device"""
|
||||||
|
Loading…
Reference in New Issue
Block a user