Dog shock collar

by Mishugana @ 10:15 pm 14 April 2010

CODE::

import processing.serial.*;

Serial myPort;
int val;

void setup() {
size(200, 200);
}

void draw() {
if(!mousePressed) {
if (myPort!=null)
myPort.stop();
myPort=null;
} else {
if (myPort==null)
myPort=new Serial(this, Serial.list()[0], 9600);

}
}

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2016 Special Topics in Interactive Art & Computational Design | powered by WordPress with Barecity