standardize EPD_HEIGHT/WIDTH constants

This commit is contained in:
txoof 2023-02-15 17:37:10 +01:00
parent bc79769c3f
commit f21acab763
1 changed files with 4 additions and 4 deletions

View File

@ -32,8 +32,8 @@ from multiprocessing.reduction import recv_handle
from . import epdconfig
# Display resolution
EPD_width = 240
EPD_height = 360
EPD_WIDTH = 240
EPD_HEIGHT = 360
logger = logging.getLogger(__name__)
@ -43,8 +43,8 @@ class EPD:
self.dc_pin = epdconfig.DC_PIN
self.busy_pin = epdconfig.BUSY_PIN
self.cs_pin = epdconfig.CS_PIN
self.width = EPD_width
self.height = EPD_height
self.width = EPD_WIDTH
self.height = EPD_HEIGHT
self.Flag = 0
self.WHITE = 0xFF
self.BLACK = 0x00