Strobo fix
This commit is contained in:
@ -14,20 +14,12 @@ try:
|
||||
except:
|
||||
pass
|
||||
|
||||
a = True
|
||||
counter = 0
|
||||
buffera = bytearray(b"\x00" * (3 * Nx * Ny))
|
||||
bufferb = bytearray(b"\xFF" * (3 * Nx * Ny))
|
||||
|
||||
while True:
|
||||
|
||||
if a:
|
||||
os.write(1, buffera)
|
||||
else:
|
||||
time.sleep(param*0.01)
|
||||
os.write(1, bufferb)
|
||||
|
||||
if param == counter:
|
||||
a = not a
|
||||
counter = 0
|
||||
|
||||
counter+=1
|
||||
time.sleep(param*0.01)
|
||||
|
Reference in New Issue
Block a user