This file contains 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
// Example by Tom Igoe | |
import processing.serial.*; | |
// The serial port | |
Serial myPort; | |
// List all the available serial ports | |
println(Serial.list()); |
This file contains 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
// TODO: | |
// Add "flick" physics | |
// Break up into classes | |
// make the scroll smoother | |
//IR sensor | |
import java.awt.AWTException; | |
import java.awt.Robot; | |
import processing.serial.*; | |
import java.awt.MouseInfo; |
This file contains 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
int IRpin = 3, | |
rawDataz, | |
values[4], | |
count, | |
average; | |
void setup() | |
{ | |
Serial.begin(9600); | |
pinMode(IRpin, INPUT); |
This file contains 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 SimpleOpenNI.*; | |
SimpleOpenNI kinect; | |
//particle system | |
ParticleSystem ps; | |
PImage sprite; | |
//kinect stuff | |
int closestValue; |
This file contains 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
2.479339 | |
2.479339 | |
2.644628 | |
2.8099174 | |
2.3140495 | |
2.644628 | |
2.479339 | |
2.644628 | |
2.479339 | |
2.1487603 |
This file contains 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
int delayTime; | |
int numberTimes; | |
void setup(){ | |
pinMode(0,OUTPUT); | |
} | |
void loop(){ | |
int spacingDelay = spacingDelay + random(0,8000); | |
This file contains 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
int fastPulse = 3; | |
int slowPulse = 1; | |
int spacingDelay; | |
void setup(){ | |
pinMode(0,OUTPUT); | |
} | |
void loop(){ |
This file contains 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.opengl.*; | |
import SimpleOpenNI.*; | |
SimpleOpenNI kinect; | |
/* | |
import controlP5.*; | |
ControlP5 cp5; | |
int sliderValue = 180; | |
*/ |
This file contains 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
Lukaszs-MacBook-Pro-2:bin lukasz$ cd /Users/lukasz/Desktop/4138861 && chmod +x cproj.sh && ./cproj.sh TestProject && cd TestProject && bin/generate_module TestModule && bin/test | |
Initialized empty Git repository in /Users/lukasz/Desktop/4138861/TestProject/.git/ | |
Cloning into 'vendor/unity'... | |
remote: Counting objects: 1089, done. | |
remote: Compressing objects: 100% (425/425), done. | |
remote: Total 1089 (delta 684), reused 1038 (delta 633) | |
Receiving objects: 100% (1089/1089), 3.09 MiB | 1.08 MiB/s, done. | |
Resolving deltas: 100% (684/684), done. | |
Cloning into 'vendor/cmock'... | |
remote: Counting objects: 2628, done. |
This file contains 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
class Timer { | |
int lastTimeInSeconds; | |
int currentTimeInSeconds; | |
int timeLeft; | |
int inputTime; | |
int minutesLeft; | |
Timer(int tempTotalTime){ | |
inputTime = tempTotalTime; |