Permalink
Browse files

test

  • Loading branch information...
1 parent 6003d73 commit e55040a45544d4ea975dc8c76e99397f9bc52ce7 @HalfdanJ HalfdanJ committed Jul 18, 2011
Showing with 5 additions and 2 deletions.
  1. +4 −1 src/testApp.cpp
  2. +1 −1 src/testApp.h
View
@@ -47,6 +47,9 @@ void testApp::setup(){
//--------------------------------------------------------------
void testApp::update(){
+ serial.writeByte(n++);
+ ofSleepMillis(100);
+/*
if (bSendSerialMessage){
// (1) write the letter "a" to serial:
@@ -79,7 +82,7 @@ void testApp::update(){
bSendSerialMessage = false;
readTime = ofGetElapsedTimef();
- }
+ }*/
}
//--------------------------------------------------------------
View
@@ -29,7 +29,7 @@ class testApp : public ofBaseApp{
int nBytesRead; // how much did we read?
int nTimesRead; // how many times did we read?
float readTime; // when did we last read?
-
+ int n;
ofSerial serial;
};

0 comments on commit e55040a

Please sign in to comment.