Hello
I am using a device called a pixel pusher. This unit is controlled by processing. I am using the following script below and for some reason the siphon code at the Bottom isn’t excepted.
The error comes when trying to call for “client.availible” in the lower end of the script. I am trying client.newframes but haven’t been able to test yet. If anyone could help that would be amazing as I am very stuck and need it to work urgently for a project.
BELOW IS THE CODE FOR PROCESSING
import codeanticode.syphon.*;
import com.heroicrobot.dropbit.registry.*;
import com.heroicrobot.dropbit.devices.pixelpusher.Pixel;
import com.heroicrobot.dropbit.devices.pixelpusher.Strip;
import processing.core.*;
import java.util.*;
DeviceRegistry registry;
SyphonClient client;
PGraphics canvas;
boolean ready_to_go = true;
int lastPosition;
int canvasW = 240 * 3;
int canvasH = 40 * 4;
TestObserver testObserver;
void setup() {
size(canvasW, canvasH, P3D);
registry = new DeviceRegistry();
testObserver = new TestObserver();
registry.addObserver(testObserver);
background(0);
client = new SyphonClient(this, “Modul8”, “Main View”);
}
void draw() {
if (client.available()) {
canvas = client.getGraphics(canvas);
image(canvas, 0, 0, width, height);
}
scrape();
}
void stop()
{
super.stop();
}