Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test

  • Loading branch information...
commit e55040a45544d4ea975dc8c76e99397f9bc52ce7 1 parent 6003d73
@HalfdanJ HalfdanJ authored
Showing with 5 additions and 2 deletions.
  1. +4 −1 src/testApp.cpp
  2. +1 −1  src/testApp.h
View
5 src/testApp.cpp
@@ -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
2  src/testApp.h
@@ -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;
};
Please sign in to comment.
Something went wrong with that request. Please try again.