We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8696ea7 commit 8b98132Copy full SHA for 8b98132
examples/boot.py
@@ -54,7 +54,13 @@
54
# minimize latency
55
spi.init(baudrate=24_000_000)
56
57
-# Clear the display to wipe any previous content. This is optional, but it's
58
-# recommended to ensure a clean slate
59
-if hasattr(display, 'clear'):
60
- display.clear()
+# Attempt to put something on the display to clear the previous content
+try:
+ # Load and display a splash image, if it's available
+ import cv2
61
+ splash_image = cv2.imread("splash.png")
62
+ cv2.imshow(display, splash_image)
63
+except Exception:
64
+ # Clear the display, if the driver supports it
65
+ if hasattr(display, 'clear'):
66
+ display.clear()
0 commit comments