Skip to content

Commit 0df676a

Browse files
committed
Add optional splash image filename
1 parent a2f461f commit 0df676a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cv2_drivers/displays/cv2_display.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ def savePinModeAlt(self, pin):
138138
# Return the mode and alt as a tuple
139139
return (mode, alt)
140140

141-
def splash(self):
141+
def splash(self, filename="splash.png"):
142142
try:
143-
self.imshow(cv2.imread("splash.png"))
143+
self.imshow(cv2.imread(filename))
144144
return True
145145
except Exception:
146146
return False

0 commit comments

Comments
 (0)