Skip to content

Commit b74f280

Browse files
committed
don't use SHIFTING test pattern. remove unused variable 'buf'
1 parent 95d99fd commit b74f280

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/ov7670_displayio_gcm4_tftshield18.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def deinit(self):
8383
pid = cam.product_id
8484
ver = cam.product_version
8585
print(f"Detected pid={pid:x} ver={ver:x}")
86-
cam.test_pattern = OV7670_TEST_PATTERN_SHIFTING_1
86+
# cam.test_pattern = OV7670_TEST_PATTERN_COLOR_BAR
8787

8888
g = displayio.Group(scale=1)
8989
bitmap = displayio.Bitmap(160, 120, 65536)
@@ -95,7 +95,6 @@ def deinit(self):
9595
)
9696
g.append(tg)
9797
display.show(g)
98-
buf = memoryview(bitmap)
9998

10099
t0 = time.monotonic_ns()
101100
display.auto_refresh = False

0 commit comments

Comments
 (0)