Strobo fix

This commit is contained in:
Aeris
2018-10-12 21:21:38 +02:00
parent d542f1249e
commit ec65360443
2 changed files with 4 additions and 10 deletions

View File

@ -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)