ControlP5 elements in the Draw method will be oversubscribed.
in
Integration and Hardware
•
5 months ago
I am new to this forum. I come from the Arduino community. I want to transfer a Processing sketch in Eclipse. There I use ControlP5 elements. In the Processing IDE everything is OK. In the Eclipse environment that ControlP5 elements in the Draw method will be oversubscribed.
ControlP5 Elements not visible.
- public void setup(){
size(mainWinWidth, mainWinHeight);
background(190, 190, 190);
frameRate(20);
smooth();
noStroke();
winWidth = width;
winHeight = height;
cp5 = new ControlP5(this);
// System.out.println(Serial.list()); // print all available serial ports
mainWindow = new MainWindow(this, winWidth, winHeight);
btnStart = cp5.addButton("bSTART")
.setPosition(200, 130)
.setSize(40, 20)
.setLabel("Start");
btnStart.getCaptionLabel().align(CENTER,CENTER);
}
ControlP5 Elements not visible.
- //------------------------------- draw -------------------------------------------------------------------
public void draw(){
background(190, 190, 190);
fill(255);
pa.text("MouseX ", 100, 100);
}
ControlP5 Elements are visible.
- //------------------------------- draw -------------------------------------------------------------------
public void draw(){
background(190, 190, 190);
}
Can someone please help me.
Best Regards Willi
Best Regards Willi
1