Fix bug. Line misplaced in the code to init the display.

This commit is contained in:
Administrator 2019-10-14 18:19:53 +02:00
parent b66f1b66e5
commit 748dbea13e

View File

@ -10,6 +10,8 @@ from PIL import Image,ImageDraw,ImageFont
EPD_WIDTH = 64 EPD_WIDTH = 64
EPD_HEIGHT = 128 EPD_HEIGHT = 128
disp = SH1106.SH1106()
class EPD(object): class EPD(object):
def __init__(self): def __init__(self):
@ -19,7 +21,6 @@ class EPD(object):
self.cs_pin = config.CS_PIN self.cs_pin = config.CS_PIN
self.width = EPD_WIDTH self.width = EPD_WIDTH
self.height = EPD_HEIGHT self.height = EPD_HEIGHT
disp = SH1106.SH1106()
def init(self): def init(self):
disp.Init() disp.Init()