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)

View File

@ -23,6 +23,8 @@ Apps = [
{"guiname": "IDLE", "name": "pixelflut", "cmd": "apps/idle.py", "persistent": False},
{"guiname": "IDLE2", "name": "idlec", "cmd": "apps/idle2"},
{"guiname": "YoutubeDL", "name": "youtubedl", "cmd": "apps/youtubedl.sh"},
{"guiname": "Snake", "name": "snake", "cmd": "apps/snake.py"},
{"guiname": "Strobo", "name": "strobo", "cmd": "apps/strobo.py"},
{"name": "pong", "cmd": "apps/pong.py"},
{"name": "framebuffer", "cmd": ["apps/fbcp", "/dev/fb0"]},
]