July 16, 2013 at 7:53 pm #21392
Oh– I see –I have made a mistake here, and I do apologize.
I had mistaken the source of the “does not name a type” error, which almost always indicates that one of the Arduino libraries is not installed. However, that’s not what’s going on here. What’s actually going on is that you’ve opened up the Processing application itself (PeggyDraw 2)– not the output file that it created. When you save a file in PeggyDraw 2, it shows up in the data/PeggyProgram folder– and *that* is the output that you should open with Arduino.