Strobo fix
This commit is contained in:
parent
d542f1249e
commit
ec65360443
@ -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)
|
||||
|
@ -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"]},
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user