Skip to content

Instantly share code, notes, and snippets.

#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{
#include "ofApp.h"
ofSerial serial;
//--------------------------------------------------------------
void ofApp::setup(){
#ifdef _USE_LIVE_VIDEO
vidGrabber.setVerbose(true);
#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:
#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);
#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{
#include "ofApp.h"
ofSerial serial;
//--------------------------------------------------------------
void ofApp::setup(){
#ifdef _USE_LIVE_VIDEO
vidGrabber.setVerbose(true);
vidGrabber.setup(320,240);
#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:
//
// page10.cpp
// HaroldFinal
//
// Created by Tyler Stroh on 4/28/16.
//
//
#include "page10.hpp"
#include "ofApp.h"
//
// page9.cpp
// HaroldFinal
//
// Created by Tyler Stroh on 4/28/16.
//
//
#include "page9.hpp"
#include "ofApp.h"
//
// page8.cpp
// HaroldFinal
//
// Created by Tyler Stroh on 4/28/16.
//
//
#include "page8.hpp"
#include "ofApp.h"