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
var Objs = { | |
loaded: false, | |
rotating: false, | |
init: function initFn() { | |
this.createModelAtLocation(); | |
}, | |
createModelAtLocation: function createModelAtLocationFn() { |
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
#include "ofApp.h" | |
int i = 0; | |
int _i = 0; | |
int alpha; | |
float vidSpeed; | |
// resolution of live video | |
int vidX = 320; | |
int vidY = 240; |
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
#include "ofApp.h" | |
#include <string> | |
// initialize the objects we will use | |
ofTrueTypeFont myfont; | |
ofFbo fbo; | |
ofVideoPlayer mov0; | |
ofSerial serial; | |
ofImage img0; | |
ofImage img1; |
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
#include <SPI.h> | |
#include <Adafruit_DotStar.h> | |
#include "FastLED.h" | |
#define NUM_LEDS 15 | |
#define BRIGHTNESS 96 | |
#define FRAMES_PER_SECOND 120 | |
#define DATA_PIN 5 | |
#define CLOCK_PIN 6 |
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
#ifdef GL_ES | |
precision mediump float; | |
precision mediump int; | |
#endif | |
#define PROCESSING_TEXTURE_SHADER | |
varying vec4 vertTexCoord; | |
uniform sampler2D texture; | |
uniform float brightness; |
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
// get the serial lib : | |
import processing.serial.*; | |
// give port a variable : | |
Serial port; | |
// get the webcam lib : | |
import processing.video.*; | |
// give webcam a variable : |
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
// lcd | |
//#include <SPI.h> | |
//#include <Adafruit_SSD1306.h> | |
//#include <Adafruit_GFX.h> | |
//#include <Wire.h> | |
//#define OLED_RESET 4 | |
//#define SSD1306_128_64 | |
//Adafruit_SSD1306 display(OLED_RESET); | |
//#define OLED_address 0x3c |
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
// get the serial lib : | |
import processing.serial.*; | |
// give port a variable : | |
Serial port; | |
// get the webcam lib : | |
import processing.video.*; | |
// give webcam a variable : |
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
// global stuff | |
unsigned long cap1, cap2, piezo, temp, axisX, axisY, axisZ; | |
// lcd | |
//#include <SPI.h> | |
//#include <Adafruit_SSD1306.h> | |
//#include <Adafruit_GFX.h> | |
//#include <Wire.h> | |
//#define OLED_RESET 4 | |
//#define SSD1306_128_64 |
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
/* | |
Draws a 3d rotating cube on the freetronics OLED screen. | |
Original code was found at http://forum.freetronics.com/viewtopic.php?f=37&t=5495 | |
Thanks to Adafruit at http://www.adafruit.com for the great display and sensor libraries | |
*/ | |
#include <SPI.h> | |
#include <Adafruit_SSD1306.h> | |
#include <Adafruit_GFX.h> | |
#include <Wire.h> |
NewerOlder