I'm after a little help. I'm new to this and i want to use Quarks G4p slider.
However i need the slider in the vertical plane, not the horizontal. I've tried searching and playing with the code but cannot get the slider vertical.
IM fairly new to Processing and im sure this is a simple one line fix for your Pro's but im struggling to find a solution.
I have an arduino sketch sending serial data which i can read in the Serial Monitor.
Arduino Sketch:
int data0; //,data1, data2, data3;
void setup() {
Serial.begin(9600);
}
void loop() {
data0 = analogRead(0); // read sensor in analog input 0
// data1 = analogRead(1); // read sensor in analog input 1
// data2 = analogRead(2); // read sensor in analog input 2
// data3 = analogRead(3); // read sensor in analog input 3
Serial.println(data0, DEC); // print sensor 1
// Serial.print(","); // print ',' // print ','
// Serial.print(data1, DEC); // print sensor 2
// Serial.print(","); // print ','
// Serial.print(data2, DEC); // print sensor 3
// Serial.print(","); // print ','
// Serial.println(data3, DEC); // print sensor 4 and newline (println)
delay(1000); // wait 200ms for next reading
}
Im just trying to read one sensor data at the moment, then ill move on once i have that code working.
Im my Processing Sketch the data will not update in the Rectangle. It will show the first data value it read, then not update with the latest value in the "TANK oC" Rectangle.
void mousePressed(){ //this function has to be named "mousePressed" **************************/
//it's a Processing function that control the function of the pressed button
//Mix Start Button:
//the area in which the mouse needs to click in order to caracterize a button press
//Sends 34 to the Arduino ****************************************
if ( mouseX> b1X1 && mouseX< b1X2 && mouseY> b1Y1 && mouseY< b1Y2 ){ //select the area of a valid press -- note that it has to mach with the button size =]
//the area in which the mouse needs to click in order to caracterize a button press
//Sends 35 to the Arduino ****************************************
if ( mouseX> b2X1 && mouseX< b2X2 && mouseY> b2Y1 && mouseY< b2Y2 ){ //select the area of a valid press -- note that it has to mach with the button size =]
//the area in which the mouse needs to click in order to caracterize a button press
//Sends 36 to the Arduino ****************************************
if ( mouseX> b3X1 && mouseX< b3X2 && mouseY> b3Y1 && mouseY< b3Y2 ){ //select the area of a valid press -- note that it has to mach with the button size =]
//the area in which the mouse needs to click in order to caracterize a button press
//Sends 37 to the Arduino ****************************************
if ( mouseX> b4X1 && mouseX< b4X2 && mouseY> b4Y1 && mouseY< b4Y2 ){ //select the area of a valid press -- note that it has to mach with the button size =]
//the area in which the mouse needs to click in order to caracterize a button press
//Sends 38 to the Arduino ****************************************
if ( mouseX> b5X1 && mouseX< b5X2 && mouseY> b5Y1 && mouseY< b5Y2 ){ //select the area of a valid press -- note that it has to mach with the button size =]
//the area in which the mouse needs to click in order to caracterize a button press
//Sends 39 to the Arduino ****************************************
if ( mouseX> b6X1 && mouseX< b6X2 && mouseY> b6Y1 && mouseY< b6Y2 ){ //select the area of a valid press -- note that it has to mach with the button size =]