O'Reilly logo

Arduino: Building exciting LED based projects and espionage devices by Marco Schwartz, Utsav Shah, Samarth Shah, Adith Jagdish Boloor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tic-tac-toe with touch

Remember how, while using Arduino, you needed to install libraries to make certain functions work? We need to do the same with Processing because it cannot directly communicate with the Arduino. To do this, go to http://playground.arduino.cc/Interfacing/Processing and download the processing2-arduino.zip file. Processing, like Arduino also creates a directory by default in the Documents folder. Extract the downloaded ZIP file to C:\Users\<user>\Documents\Processing\libraries for Windows and Documents/Processing/libraries for Mac and Linux.

Do the same for the matrix library we will be using in the next section from http://pratt.edu/~fbitonti/pmatrix/matrix.zip. Restart Processing.

Note

If you do not have a libraries folder ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required