This post is aimed at giving an example for communication between Arduino and Processing using the bundled Serial Library for both packages.
In this example, LEDs are connected to pins 2-9 of the Arduino board, and Processing control it through sending ASCII code of number 2-9 (Relative ASCII code 50 to 57).
Arduino Code
[link]
Processing Code
[link]
No comments:
Post a Comment