Skip to content

Instantly share code, notes, and snippets.

View garethfoote's full-sized avatar

Gareth Foote garethfoote

View GitHub Profile
@garethfoote
garethfoote / auto-arduino.pde
Created November 25, 2016 11:54 — forked from unknowndomain/auto-arduino.pde
This is an example of how to connect to an Arduino automatically in Processing
import processing.serial.*;
Serial arduino;
void setup() {
// Create a canvas
size( 800, 600 );
// Get a list of serial ports
String ports[] = Serial.list();
int id = 0;