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
#define NEO_PIN 2 // RedBear Blend & RFduino | |
// Import libraries (BLEPeripheral depends on SPI) | |
#include <Adafruit_NeoPixel.h> | |
#include <SPI.h> | |
#include <BLEPeripheral.h> | |
/*NEOPIXELS*/ |
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
#define NEO_PIN 2 // RedBear Blend & RFduino | |
// Import libraries (BLEPeripheral depends on SPI) | |
#include <Adafruit_NeoPixel.h> | |
#include <SPI.h> | |
#include <BLEPeripheral.h> | |
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 Lettering (variable X&Y positions, size and alpha) | |
class Lettering { | |
String text; | |
float x; | |
float y; | |
color col; | |
PFont font; | |
int fontSize; |
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
void setup_kinect(){ | |
context = new SimpleOpenNI(this); | |
if (context.isInit() == false) { | |
println("Can't Init SimpleOpenNI, maybe the camera is not connected."); | |
exit(); | |
return; | |
} |
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
String[] words; | |
IntDict concordance; | |
int counter = 0; | |
void setup () { | |
size (600, 400); | |
String [] lines = loadStrings ("statement.txt"); |
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
String[] words; | |
IntDict concordance; | |
int index = 0; | |
void setup () { | |
size (600, 400); | |
background(0); | |
String [] lines = loadStrings ("statement.txt"); |
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.video.*; | |
Capture video; | |
void setup() { | |
size (1280, 960); | |
// Define video dimensions as 1/4 of the canvas size | |
video = new Capture (this, 640, 480); | |
video.start(); | |
} |