Im driving an Arduino Tank and require buttons from ControlP5 to perfom an action while pressing the button than stop once released. I can do this function with keyboard but cant get it to work with ControlP5 buttons
Can this be done?
Thanks Bart
import processing.serial.*; import controlP5.*;
ControlP5 cp5; import cc.arduino.*;
Arduino arduino;
int hornbeeper = 11; // piezo/beeper connected to digital pin 11
PFont fontA; PFont chalkF; PFont digital;
PImage chalk;
PImage horn; PImage horn1;
void setup() { size(1024, 683); println(Arduino.list()); arduino = new Arduino(this, Arduino.list()[0], 57600); cp5 = new ControlP5(this); chalk = loadImage("Chalk.jpg");