Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename sculpture to LEDSign

  • Loading branch information...
commit 0db544004d38a9d00ded68b64d1f56562afca625 1 parent 89a151d
@cibomahto cibomahto authored
Showing with 15 additions and 16 deletions.
  1. +3 −4 Sculpture.pde → LEDSign.pde
  2. +12 −12 domeTransmitter.pde
View
7 Sculpture.pde → LEDSign.pde
@@ -1,7 +1,7 @@
import hypermedia.net.*;
/**
- * This class can be added to your sketches to make them compatible with the sign.
+ * This class can be added to your sketches to make them compatible with an LED display.
* Use Sketch..Add File and choose this file to copy it into your sketch.
*
* void setup() {
@@ -28,7 +28,7 @@ import hypermedia.net.*;
*
**/
-public class Sculpture {
+public class LEDDisplay {
public static final int ADDRESSING_VERTICAL_NORMAL = 1;
public static final int ADDRESSING_VERTICAL_HALF = 2;
public static final int ADDRESSING_VERTICAL_FLIPFLOP = 3;
@@ -49,7 +49,7 @@ public class Sculpture {
boolean enableGammaCorrection = false;
boolean isRGB = false;
- public Sculpture(PApplet parent, int w, int h, boolean isRGB, String address, int port) {
+ public LEDDisplay(PApplet parent, int w, int h, boolean isRGB, String address, int port) {
this.parent = parent;
this.udp = new UDP(parent);
this.address = address;
@@ -140,7 +140,6 @@ public class Sculpture {
udp.send(modeBuffer, address, port);
}
- int maxSentByte = 0;
public void sendData() {
PImage image = get();
View
24 domeTransmitter.pde
@@ -26,15 +26,15 @@ Routine drop = new Seizure();
Routine pong = new Pong();
Routine[] enabledRoutines = new Routine[] {
- new Warp(new WarpSpeedMrSulu(), false, true, 0.5, 0.5),
-// new Warp(null, true, false, 0.5, 0.5),
- new Bursts(),
+// new Bursts(),
// new Chase(),
- new ColorDrop(),
+// new ColorDrop(),
// new Fire(),
-// new RGBRoutine(),
- new RainbowColors(),
- new Waves(),
+ new RGBRoutine(),
+// new RainbowColors(),
+// new Waves(),
+// new Warp(new WarpSpeedMrSulu(), false, true, 0.5, 0.5),
+// new Warp(null, true, false, 0.5, 0.5),
};
int w = 0;
@@ -50,7 +50,7 @@ int direction = 1;
int position = 0;
Routine currentRoutine = null;
-Sculpture sculpture;
+LEDDisplay sign;
PGraphics fadeLayer;
int fadeOutFrames = 0;
@@ -64,9 +64,9 @@ void setup() {
frameRate(FRAMERATE);
- sculpture = new Sculpture(this, WIDTH, HEIGHT, true, transmit_address, transmit_port);
- sculpture.setAddressingMode(Sculpture.ADDRESSING_HORIZONTAL_NORMAL);
- sculpture.setEnableGammaCorrection(true);
+ sign = new LEDDisplay(this, WIDTH, HEIGHT, true, transmit_address, transmit_port);
+ sign.setAddressingMode(LEDDisplay.ADDRESSING_HORIZONTAL_NORMAL);
+ sign.setEnableGammaCorrection(true);
setMode(0);
@@ -160,6 +160,6 @@ void draw() {
// }
// println(frameRate);
- sculpture.sendData();
+ sign.sendData();
}
Please sign in to comment.
Something went wrong with that request. Please try again.