Adjusted file to use the new (merged) driver files
This commit is contained in:
parent
3343cf2f10
commit
921461507e
@ -13,14 +13,10 @@ from icon_positions_locations import black, white, red
|
|||||||
|
|
||||||
def calibration():
|
def calibration():
|
||||||
"""Function for Calibration"""
|
"""Function for Calibration"""
|
||||||
if display_colours == "bwr":
|
import e_paper_drivers
|
||||||
import epd7in5b
|
epd = e_paper_drivers.EPD()
|
||||||
epd = epd7in5b.EPD()
|
print('_________Calibration for E-Paper started_________'+'\n')
|
||||||
print('_________Calibration for 3-Colour E-Paper started_________'+'\n')
|
|
||||||
if display_colours == "bw":
|
|
||||||
import epd7in5
|
|
||||||
epd = epd7in5.EPD()
|
|
||||||
print('_________Calibration for 2-Colour E-Paper started_________'+'\n')
|
|
||||||
for i in range(2):
|
for i in range(2):
|
||||||
epd.init()
|
epd.init()
|
||||||
print('Calibrating black...')
|
print('Calibrating black...')
|
||||||
|
Loading…
Reference in New Issue
Block a user