Port of Arduino Pixy Cmucam5 library.

Fork of pixy by Arcadie Cracan

Files at this revision

API Documentation at this revision

Comitter:
jcamero4
Date:
Tue Apr 04 18:12:00 2017 +0000
Parent:
0:ed8dc4531ac1
Commit message:
removed prints and CCs

Changed in this revision

Pixy.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r ed8dc4531ac1 -r da494f3c4412 Pixy.cpp
--- a/Pixy.cpp	Sun Nov 16 11:52:55 2014 +0000
+++ b/Pixy.cpp	Tue Apr 04 18:12:00 2017 +0000
@@ -43,7 +43,7 @@
         if (checksum == PIXY_START_WORD) { // we've reached the beginning of the next frame
             skipStart = true;
             //if (pc)
-            //  pc->printf("skip\n\r");
+              //pc->printf("skip\n\r");
             return blockCount;
         } else if (checksum == 0)
             return blockCount;
@@ -61,8 +61,8 @@
 
         if (checksum == sum)
             blockCount++;
-        else if (pc)
-            pc->printf("cs error\n\r");
+        //else if (pc)
+            //pc->printf("cs error\n\r");
 
         w = m_link->getWord();
         if (w != PIXY_START_WORD)
@@ -106,8 +106,8 @@
         } else if (w == PIXY_START_WORD && lastw == PIXY_START_WORD)
             return true;
         else if (w == PIXY_START_WORDX) {
-            if (pc)
-                pc->printf("reorder\n\r");
+            //if (pc)
+               // pc->printf("reorder\n\r");
             m_link->getByte(); // resync
         }
         lastw = w;