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):
|
||||
"""Interface for CalendarDesign output channels"""
|
||||
"""Interface for CalendarDesign output channels.
|
||||
Needs implementation of width and height properties."""
|
||||
def render (self, design):
|
||||
raise NotImplementedError("Functions needs to be implemented")
|
||||
|
||||
|
|
|
@ -51,8 +51,7 @@ VCM_DC_SETTING = 0x82
|
|||
class EpdAdapter (DisplayAdapter):
|
||||
"""Generalized adapter for epd7in5 and epd7in5b"""
|
||||
def __init__ (self, width, height):
|
||||
self.width = width
|
||||
self.height = height
|
||||
super(EpdAdapter, self).__init__(width, height)
|
||||
|
||||
self.reset_pin = RST_PIN
|
||||
self.dc_pin = DC_PIN
|
||||
|
|
Loading…
Reference in a new issue