Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
schneider42 committed May 31, 2013
1 parent be91cd9 commit d9b503b
Showing 1 changed file with 34 additions and 24 deletions.
58 changes: 34 additions & 24 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,19 @@ You can get our software on github: https://github.com/muccc/acab-streetlife
Animations are created as python scripts which run on the
computer controlling the installation.

In the multiwall setting the ACAB wall has two walls with 8x6 pixels each. They are addressed using the wall number [0,1] and their x and y coordinates.
The setup looks like this: (x,y,wall)
In the multi wall condifuration, ACAB has two walls with 8x6 pixels each. They are addressed using the wall number [0,1] and their x and y coordinates.

Wall1:
(0,0,0), (1,0,0) ... (6,0,0), (7,0,0)
(0,1,0), (1,1,0) ... (6,1,0), (7,1,0)
. . . .
. . . .
. . . .
(0,4,0), (1,4,0) ... (6,4,0), (7,4,0)
(0,5,0), (1,5,0) ... (6,5,0), (7,5,0)
In the single wall configuration, ACAB has a single wall with 16x8 pixels.

Wall2:
(0,0,1), (1,0,1) ... (6,0,1), (7,0,1)
(0,1,1), (1,1,1) ... (6,1,1), (7,1,1)
The setup looks like this: (x,y)

(0,0), (1,0) ... (15,0), (16,0)
(0,1), (1,1) ... (15,1), (16,1)
. . . .
. . . .
. . . .
(0,4,1), (1,4,1) ... (6,4,1), (7,4,1)
(0,5,1), (1,5,1) ... (6,5,1), (7,5,1)
(0,4), (1,4) ... (15,4), (16,4)
(0,5), (1,5) ... (15,5), (16,5)

Use the acabsl library from our git repository to create your own scripts.

Expand All @@ -45,21 +38,35 @@ It provides two methods:
Then use it everytime you want new commands to be executed.

Currently this command affects all walls at the same time.

It also provides the following constants:
acabsl.WALLSIZEX:
Size of a wall in X direction

acabsl.WALLSIZEY:
Size of a wall in X direction

acabsl.NOOFWALLS:
Number of walls available

Example:

import acabsl

#enable double buffering
acabsl.update()

wall1 = 0
wall2 = 1

#let every pixel fade to red
for x in range(8):
for y in range(6):
acabsl.send(x,y,255,0,0,500,wall1)
acabsl.send(x,y,255,0,0,500,wall2)
# let every pixel of the wall chosen by the server fade to red
for x in range(acabsl.WALLSIZEX):
for y in range(range.WALLSIZEY):
acabsl.send(x,y,255,0,0,500)
'''
# let every pixel of every wall fade to red
for wall in range(acabsl.NOOFWALLS):
for x in range(acabsl.WALLSIZEX):
for y in range(range.WALLSIZEY):
acabsl.send(x,y,255,0,0,500,wall)
'''

#execute all fades at once
acabsl.update()
Expand All @@ -71,12 +78,15 @@ Have a look at the scripts in the animations directory for examples. We also hav
Execute the startsimulation file to run a simulation of the walls on your computer:
./startsimulation

It will open two windows with simulated acab walls. Use your imagination to form cylinders for 29c3 ;)
It will open two windows with simulated acab walls.

Then execute the script you wrote to display it on the simulator.

Send new scripts via a pull request to our github account: https://github.com/muccc/acab-streetlife and we will put them
into rotation on the walls.

You can also directly stream your animation to the wall if you supply your script with the following
arguments: '--host=192.168.2.2 --port=5010'

Have fun :)

0 comments on commit d9b503b

Please sign in to comment.