tweaks
This commit is contained in:
parent
3b8d87772b
commit
01aa9f2bdd
@ -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: {
|
||||||
@ -18,9 +18,9 @@ class ILI9325(Area, Chip):
|
|||||||
'output2': 0xa700
|
'output2': 0xa700
|
||||||
},
|
},
|
||||||
180: {
|
180: {
|
||||||
'output': 0x0000,
|
'output': 0x0000,
|
||||||
'mode': 0x1038,
|
'mode': 0x1030,
|
||||||
'output2': 0x2700
|
'output2': 0x2700
|
||||||
},
|
},
|
||||||
270: {
|
270: {
|
||||||
'output': 0x0100,
|
'output': 0x0100,
|
||||||
@ -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"""
|
||||||
|
Loading…
Reference in New Issue
Block a user