Hello!
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);
- .....
- }
1