I've made a program to communicate with my arduino via bluetooth. It works great, but sometimes the program gets to short time to get the connection up and the program goes on in the program without having the serial connection from the setup established.
So what I'm asking is if there is any way I can give a sertain line in the setup a bit more time.
Here is my setup:
void setup() {
size(200, 200);
background(0);
println(Serial.list());
arduino = new Serial(this, Serial.list()[0], 9600);
I am currentlyworking on a program to controll my arduino via bluetooth. And I've stumbled in to a problem. When I want to use a key on the keyboard as a switch one tap is interpreted as multiple taps. How does one make it read as only one?