-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d779da
commit a9214de
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
import acabsl | ||
import time | ||
|
||
acabsl.update() | ||
|
||
def set_all(r,g,b): | ||
for w in range(acabsl.NOOFWALLS): | ||
for x in range(acabsl.WALLSIZEX): | ||
for y in range(acabsl.WALLSIZEY): | ||
acabsl.send(x,y,r,g,b,0,w) | ||
acabsl.update() | ||
|
||
while 1: | ||
set_all(0,0,255) | ||
time.sleep(4/144.) | ||
set_all(0,0,0) | ||
time.sleep(12/144.) | ||
set_all(0,0,255) | ||
time.sleep(4/144.) | ||
set_all(0,0,0) | ||
time.sleep(100/144.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
import acabsl | ||
import acabsl2 | ||
import time | ||
import random | ||
t = 0.1 | ||
|
||
acabsl.update() | ||
acabsl2.update() | ||
|
||
def set_all(r,g,b): | ||
for w in range(acabsl.NOOFWALLS): | ||
for x in range(acabsl.WALLSIZEX): | ||
for y in range(acabsl.WALLSIZEY): | ||
acabsl.send(x,y,r,g,b,0,w) | ||
acabsl2.send(x,y,r,g,b,0,w) | ||
acabsl.update() | ||
acabsl2.update() | ||
|
||
while 1: | ||
r = random.randrange(0, 255, 1) | ||
g = random.randrange(0, 255, 1) | ||
b = random.randrange(0, 255, 1) | ||
set_all(r,g,b) | ||
time.sleep(t) | ||
|
||
|
||
|