Skip to content

Instantly share code, notes, and snippets.

Jl9549

Block or report user

Report or block Jl9549

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View LabyrinthProc
ui//These control the Transitions from Screen to Screen
boolean god = false;
boolean god2 = true;
boolean god3 = true;
boolean god4 = true;
//Libaries
import processing.sound.*;
import processing.serial.*;
import processing.video.*;
View gist:1208adf2600a3117399bf06d8d7f362d
// IMA NYU Shanghai
// Interaction Lab
// For sending multiple values from Arduino to Processing
#define LED 13
boolean led_state = LOW;
unsigned char counter;
unsigned long temp[21];
unsigned long sub;
bool data_effect = true;
unsigned int heart_rate;
View Collision
float r,g,b;
int x, y;
void setup()
{
size(500, 500);
ellipseMode(CORNER);
}
void draw()
View ProcessingRec10
import processing.serial.*;
String myString = null;
Serial myPort;
PImage photo;
PImage photo2;
int PORT_INDEX =0;
int NUM_OF_VALUES = 2; /** YOU MUST CHANGE THIS ACCORDING TO YOUR PROJECT **/
int[] sensorValues; /** this array stores values from Arduino **/
View ArduinoRec10
import processing.serial.*;
String myString = null;
Serial myPort;
PImage photo;
PImage photo2;
int PORT_INDEX =0;
int NUM_OF_VALUES = 2; /** YOU MUST CHANGE THIS ACCORDING TO YOUR PROJECT **/
int[] sensorValues; /** this array stores values from Arduino **/
View ProcessingProject2
import processing.serial.*;
int NUM_OF_VALUES = 2; /** YOU MUST CHANGE THIS ACCORDING TO YOUR PROJECT **/
Serial myPort;
String myString;
int PORT_INDEX = 0;
// This is the array of values you might want to send to Arduino.
View ArduinoProject2
#define NUM_OF_VALUES 2 /** YOU MUST CHANGE THIS ACCORDING TO YOUR PROJECT **/
/** DO NOT REMOVE THESE **/
int tempValue = 0;
int valueIndex = 0;
/* This is the array of values storing the data from Processing. */
int values[NUM_OF_VALUES];
View ProcessingProject1
import processing.serial.*;
String myString = null;
Serial myPort;
int PORT_INDEX = 0;
int NUM_OF_VALUES = 2; /** YOU MUST CHANGE THIS ACCORDING TO YOUR PROJECT **/
int[] sensorValues; /** this array stores values from Arduino **/
View ArduinoProject1
void setup() {
Serial.begin(9600);
}
void loop() {
int sensor1 = analogRead(A0);
int sensor2 = analogRead(A1);
// int sensor3 = analogRead(A2);
// keep this format
View gist:58e8beb374a81da5f7fd64a142dca874
int z = 300;
boolean a = false;
int x = 300;
int y = 300;
int c = 0;
void setup()
{
size(600, 600);
frameRate(60);
colorMode(HSB, 100);
You can’t perform that action at this time.