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 ...
Get Arduino: Building exciting LED based projects and espionage devices now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.