Skip to content

Commit

Permalink
matt made some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cibomahto committed May 20, 2012
1 parent 4eeabf2 commit b806a32
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions domeTransmitter.pde
Expand Up @@ -6,28 +6,29 @@ import java.io.*;
import ddf.minim.*; import ddf.minim.*;
import ddf.minim.analysis.*; import ddf.minim.analysis.*;


int WIDTH = 25; int WIDTH = 24;
int HEIGHT = 160; int HEIGHT = 160;
boolean VERTICAL = false; boolean VERTICAL = false;
int FRAMERATE = 30; int FRAMERATE = 30;
String hostname = "127.0.0.1"; //"192.168.1.130"; String hostname = "127.0.0.1"; //"192.168.1.130";
int TYPICAL_MODE_TIME = 30; int TYPICAL_MODE_TIME = 300;


Routine[] enabledRoutines = new Routine[] {/* Routine[] enabledRoutines = new Routine[] {
new Greetz(), // new Greetz(),
new Bursts(), // new Bursts(),
new Flash(), // new FlashColors(), /* rainbow */
new Lines(), new Flash(), /* seizure mode */
new OppositeLines(), // new Lines(), /* boring */
new Waves(), // new OppositeLines(), /* boring */
new RadialStars(), // new Waves(), /* ? */
new NightSky(), new HorizonScan(),
new TargetScanner(), // new RadialStars(),
new Waterfalls(), // new NightSky(),
new RGBRoutine(), // new TargetScanner(),
new FFTDemo(), // new Waterfalls(),
new FlashColors(), // new RGBRoutine(),
new FollowMouse() // new FFTDemo(),
// new FollowMouse()
}; };


int w = 0; int w = 0;
Expand Down Expand Up @@ -61,9 +62,9 @@ void setup() {
dacwes.setAddressingMode(Dacwes.ADDRESSING_VERTICAL_NORMAL); dacwes.setAddressingMode(Dacwes.ADDRESSING_VERTICAL_NORMAL);


setMode(0); setMode(0);

controller = new WiiController(); controller = new WiiController();

for (Routine r : enabledRoutines) { for (Routine r : enabledRoutines) {
r.setup(this); r.setup(this);
} }
Expand All @@ -86,7 +87,7 @@ void setMode(int newMode) {
modeFrameStart = frameCount; modeFrameStart = frameCount;
println("New mode " + currentRoutine.getClass().getName()); println("New mode " + currentRoutine.getClass().getName());


currentRoutine.reset(); // currentRoutine.reset();
} }


void newMode() { void newMode() {
Expand Down

0 comments on commit b806a32

Please sign in to comment.