From 79c3cd01ef47524e80bd2d242807ad60c5de1e0d Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 21 Mar 2012 23:08:28 +0000 Subject: arduino added --- src/testApp.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'src/testApp.h') diff --git a/src/testApp.h b/src/testApp.h index 32dae89..17ba87d 100644 --- a/src/testApp.h +++ b/src/testApp.h @@ -27,6 +27,7 @@ have to track how many frames each key has been pressed for #include "ofMain.h" +#include "ofEvents.h" #include "ofxXmlSettings.h" #include "ofx3DModelLoader.h" @@ -76,10 +77,16 @@ class testApp : public ofBaseApp{ bool light; ofVideoGrabber vidGrabber; - - unsigned char * videoInverted; - ofTexture videoTexture; - int camWidth; - int camHeight; + unsigned char * videoInverted; + ofTexture videoTexture; + int camWidth; + int camHeight; + bool grabberAvailable; + + void setupArduino(const int & version); + void updateArduino(); + ofArduino ard; + bool bSetupArduino; // flag variable for setting up arduino once + int bSwitchArduino; }; -- cgit v1.2.3