From 3b8d87772b9b38fcf04016f784861152717bab59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Ko=C5=9Bci=C3=B3w?= Date: Thu, 18 May 2017 18:30:47 +0200 Subject: [PATCH] fake rotaion for ssd and nju --- gfxlcd/driver/ili9325/ili9325.py | 2 +- gfxlcd/driver/nju6450/nju6450.py | 1 + gfxlcd/driver/ssd1306/ssd1306.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gfxlcd/driver/ili9325/ili9325.py b/gfxlcd/driver/ili9325/ili9325.py index 7182881..fc84b9f 100644 --- a/gfxlcd/driver/ili9325/ili9325.py +++ b/gfxlcd/driver/ili9325/ili9325.py @@ -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""" diff --git a/gfxlcd/driver/nju6450/nju6450.py b/gfxlcd/driver/nju6450/nju6450.py index 200ed15..a99c77e 100644 --- a/gfxlcd/driver/nju6450/nju6450.py +++ b/gfxlcd/driver/nju6450/nju6450.py @@ -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""" diff --git a/gfxlcd/driver/ssd1306/ssd1306.py b/gfxlcd/driver/ssd1306/ssd1306.py index 4b595a1..dfe6078 100644 --- a/gfxlcd/driver/ssd1306/ssd1306.py +++ b/gfxlcd/driver/ssd1306/ssd1306.py @@ -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"""