How this physical button in Arduino breadboard falls down the object?

edited April 2016 in Arduino

import processing.serial.*; import cc.arduino.*; Arduino arduino;

PShape c; PImage b; float x = 0; float y = 0;

int button = 2;

void setup() { size(1080, 720); frameRate(25);

b = loadImage("background.png"); c = loadShape("colorful.svg");

println(Arduino.list()); arduino = new Arduino(this, Arduino.list()[3], 57600); arduino.pinMode(button, Arduino.INPUT);

}

void draw() { //if (arduino.digitalRead(button) == Arduino.HIGH) { image(b, 0, 0); shape(c, button, y); button+=200; //}

}

Sign In or Register to comment.