One camera can now be accessed by two seperate pieces of code. Updated minor version.
This commit is contained in:
10
examples/looping/one_cam_two_codes.py
Normal file
10
examples/looping/one_cam_two_codes.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from displayarray import read_updates
|
||||
|
||||
with read_updates(0) as a, read_updates(0) as b:
|
||||
for i in range(1000):
|
||||
a.update()
|
||||
b.update()
|
||||
try:
|
||||
print(a.frames == b.frames)
|
||||
except ValueError:
|
||||
print(f"frame comparison: {(a.frames['0'][0] == b.frames['0'][0]).all()}")
|
||||
Reference in New Issue
Block a user