Hello,
I want to write a 4 digit number ( say in the range 0000-1024)--- to be entered in the pc keyboard-------- and send it via serial port to an Arduino microcontroller.
I want the arduino to read this number (and set it to an integer variable).. it would be very useful if u can suggest a way for this.
i have found that
void keyPressed() {
// Send the keystroke out:
myPort.write(key);
}
is a function in processing ... which lets us access n send every key pressed in the keyboard individually. but I want a 4 digit number to be entered by the user in the keyboard and send it thro serial port.
I'd be happy if suggest a solution for my problem. I am just a novice in the Processing arena.. Hoping to receive any response for this post.. even if its remotely connected.
1