
Educators: Earn a free Gold upgrade by joining the PBwiki Back To School Challenge.
Complete these steps BEFORE comming to the tutorial on 2/9 - we have a packed schedule and not enough time to walk everyone through the software setup. Email bjoern at stanford.edu if you are having problems with the setup.
/*
* Test Arduino library
*/
import processing.serial.*;
import cc.arduino.*;
Arduino arduino;
void setup() {
size(200, 200);
noLoop();
println(Arduino.list());
}
void draw() {
}
The output in the console window below the source code should be something like this ON A PC:Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 [0] "COM1"and something like this on a Mac:
Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 [0] "/dev/tty.Bluetooth-PDA-Sync" [1] "/dev/cu.Bluetooth-PDA-Sync" [2] "/dev/tty.Bluetooth-Modem" [3] "/dev/cu.Bluetooth-Modem"
More info on Processing is available at:
Page Information
|
Wiki Information |
Recent PBwiki Blog Posts |