From Cycling '74 Wiki Jump to: navigation, search  Create the
Arduino Sketch  Arduino programs are called sketches, and
represent a Javascript-like language for developing on that
platform. In order to make our Max-to-Arduino connection work,
we need to make a new sketch, and load it onto the Arduino
device. The sketch we will use is as follows:  // Simple Max-
Connection Sketch // by Darwin Grosse for Cycling '74 // Note:
This sketch uses simple coding - rather than efficient coding.
No attempt is made to be clever - rather, // the goal is to make
a sketch that will be easy for people to modify regardless of
experience level.  // variable setup byte incoming;          //
this is where we will store incoming serial data byte
last_analog = -1;  // we start with a negative number so that
the first reading will give us a new value!  // the setup part
of the sketch void setup() {   // we need to set up the serial
port for communication with the computer   // we need to set up
the four digital pins for output. We w