Permalink
Browse files

Matt: update cpp host so it works with modern compilers.

  • Loading branch information...
1 parent 9ce25e5 commit 8f83a62f6754997224679d36847d55cdeda68a12 justin committed May 24, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 c++_host/host.cpp
View
@@ -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 */
@@ -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;
}
}
@@ -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];

0 comments on commit 8f83a62

Please sign in to comment.