Skip to content

Commit

Permalink
Matt: update cpp host so it works with modern compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
justin committed May 24, 2012
1 parent 9ce25e5 commit 8f83a62
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions c++_host/host.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

#include <iostream>
#include <String>
#include <string>
#include <cstdio>
#include <cstdlib>

// First, try to send data to the usb port
#include <fcntl.h> /* File control definitions */
Expand Down Expand Up @@ -83,7 +85,7 @@ void LedStrip::SendBytes64(char* data) {
}
while (return_code < 0);
if (count > 0) {
std::cout << "index=" << index << ", count=" << count << std::endl;
std::cout << "count=" << count << std::endl;
}

}
Expand Down Expand Up @@ -114,7 +116,8 @@ void LedStrip::Flip() {
int main( int argc, const char* argv[] ) {
std::cout << "Connecting!" << std::endl;
LedStrip test(24,160,0);
test.Connect("/dev/cu.usbmodem12341");
// test.Connect("/dev/cu.usbmodem12341");
test.Connect("/dev/ttyACM0");

// Black test frame
char data_off[24*160*3];
Expand Down

0 comments on commit 8f83a62

Please sign in to comment.