This file contains hidden or 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
#pragma once | |
#include "ofMain.h" | |
#include "ofxOpenCv.h" | |
#define _USE_LIVE_VIDEO // uncomment this to use a live camera | |
// otherwise, we'll use a movie file | |
class ofApp : public ofBaseApp{ |
This file contains hidden or 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" | |
ofSerial serial; | |
//-------------------------------------------------------------- | |
void ofApp::setup(){ | |
#ifdef _USE_LIVE_VIDEO | |
vidGrabber.setVerbose(true); |
This file contains hidden or 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 "ofMain.h" | |
#include "ofApp.h" | |
//======================================================================== | |
int main( ){ | |
ofSetupOpenGL(768,768,OF_WINDOW); // <-------- setup the GL context | |
// this kicks off the running of my app | |
// can be OF_WINDOW or OF_FULLSCREEN | |
// pass in width and height too: |
This file contains hidden or 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 <Adafruit_NeoPixel.h> | |
#include <CapacitiveSensor.h> | |
CapacitiveSensor cs_13_12 = CapacitiveSensor(13, 12); | |
CapacitiveSensor cs_11_10 = CapacitiveSensor(11, 10); | |
CapacitiveSensor cs_9_8 = CapacitiveSensor(9, 8); | |
CapacitiveSensor cs_7_6 = CapacitiveSensor(7, 6); | |
long start = millis(); | |
long total1 = cs_13_12.capacitiveSensor(30); | |
long total2 = cs_11_10.capacitiveSensor(30); |
This file contains hidden or 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
#pragma once | |
#include "ofMain.h" | |
#include "ofxOpenCv.h" | |
#define _USE_LIVE_VIDEO // uncomment this to use a live camera | |
// otherwise, we'll use a movie file | |
class ofApp : public ofBaseApp{ |
This file contains hidden or 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" | |
ofSerial serial; | |
//-------------------------------------------------------------- | |
void ofApp::setup(){ | |
#ifdef _USE_LIVE_VIDEO | |
vidGrabber.setVerbose(true); | |
vidGrabber.setup(320,240); |
This file contains hidden or 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 "ofMain.h" | |
#include "ofApp.h" | |
//======================================================================== | |
int main( ){ | |
ofSetupOpenGL(768,768,OF_WINDOW); // <-------- setup the GL context | |
// this kicks off the running of my app | |
// can be OF_WINDOW or OF_FULLSCREEN | |
// pass in width and height too: |
This file contains hidden or 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
// | |
// page10.cpp | |
// HaroldFinal | |
// | |
// Created by Tyler Stroh on 4/28/16. | |
// | |
// | |
#include "page10.hpp" | |
#include "ofApp.h" |
This file contains hidden or 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
// | |
// page9.cpp | |
// HaroldFinal | |
// | |
// Created by Tyler Stroh on 4/28/16. | |
// | |
// | |
#include "page9.hpp" | |
#include "ofApp.h" |
This file contains hidden or 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
// | |
// page8.cpp | |
// HaroldFinal | |
// | |
// Created by Tyler Stroh on 4/28/16. | |
// | |
// | |
#include "page8.hpp" | |
#include "ofApp.h" |
NewerOlder