Added information to constructor and implemented it.
This commit is contained in:
parent
452b1fba57
commit
31ee4359ee
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
||||||
class DisplayAdapter (object):
|
class DisplayAdapter (object):
|
||||||
"""Interface for CalendarDesign output channels"""
|
"""Interface for CalendarDesign output channels.
|
||||||
|
Needs implementation of width and height properties."""
|
||||||
def render (self, design):
|
def render (self, design):
|
||||||
raise NotImplementedError("Functions needs to be implemented")
|
raise NotImplementedError("Functions needs to be implemented")
|
||||||
|
|
||||||
|
|
|
@ -51,8 +51,7 @@ VCM_DC_SETTING = 0x82
|
||||||
class EpdAdapter (DisplayAdapter):
|
class EpdAdapter (DisplayAdapter):
|
||||||
"""Generalized adapter for epd7in5 and epd7in5b"""
|
"""Generalized adapter for epd7in5 and epd7in5b"""
|
||||||
def __init__ (self, width, height):
|
def __init__ (self, width, height):
|
||||||
self.width = width
|
super(EpdAdapter, self).__init__(width, height)
|
||||||
self.height = height
|
|
||||||
|
|
||||||
self.reset_pin = RST_PIN
|
self.reset_pin = RST_PIN
|
||||||
self.dc_pin = DC_PIN
|
self.dc_pin = DC_PIN
|
||||||
|
|
Loading…
Reference in a new issue