Hello.
I've been fooling around with an arduino Bluetooth board that I bought recently and I'm having a lot of trouble with the interruptions.
I'm trying to communicate my pocket pc with the board... The pocket pc sends information to the board and depending on what the board reads through the port it is supposed to act one way or another. (right now I'm working with leds... lets say if the board receives a 1 the leds light up following a certain function, if it receives a 2 then the function is paused ...) Ideally what I would want to do is create an interruption every time the board receives bytes through its serial port. Does anybody know if this is impossible?? Any ideas???
I'm not sure I'm explaining myself to clearly.. basically what I'm trying to do is have something like:
void loop () {
clead(0,255,0);
clead(1,0,0)
}
This look should go on forever until de board receives bytes trough the serial port?
Thanks for your time!!!