Created
October 17, 2011 02:07
-
-
Save bnferguson/1291790 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.serial.*; | |
import cc.arduino.*; | |
Arduino arduino; | |
int ledPin = 13; | |
void setup() | |
{ | |
//println(Arduino.list()); | |
arduino = new Arduino(this, Arduino.list()[0], 57600); | |
arduino.pinMode(ledPin, Arduino.OUTPUT); | |
} | |
void draw() | |
{ | |
arduino.digitalWrite(ledPin, Arduino.HIGH); | |
delay(1000); | |
arduino.digitalWrite(ledPin, Arduino.LOW); | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment