This commit is contained in:
Bartosz Kościów 2017-05-18 18:35:04 +02:00
parent 3b8d87772b
commit 01aa9f2bdd

View File

@ -9,7 +9,7 @@ class ILI9325(Area, Chip):
rotations = { rotations = {
0: { 0: {
'output': 0x0100, 'output': 0x0100,
'mode': 0x1038, 'mode': 0x1030,
'output2': 0xa700 'output2': 0xa700
}, },
90: { 90: {
@ -19,7 +19,7 @@ class ILI9325(Area, Chip):
}, },
180: { 180: {
'output': 0x0000, 'output': 0x0000,
'mode': 0x1038, 'mode': 0x1030,
'output2': 0x2700 'output2': 0x2700
}, },
270: { 270: {
@ -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 = 0 self.rotation = 270
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"""