Minor modification to the original library to fit into our project
Fork of pixy by
Diff: Pixy.h
- Revision:
- 1:910d941e3cc2
- Parent:
- 0:ed8dc4531ac1
diff -r ed8dc4531ac1 -r 910d941e3cc2 Pixy.h --- a/Pixy.h Sun Nov 16 11:52:55 2014 +0000 +++ b/Pixy.h Thu Mar 12 08:15:07 2015 +0000 @@ -8,9 +8,10 @@ struct Block { void print(Serial &pc) { - pc.printf("sig: %d x: %d y: %d width: %d height: %d\n", signature, x, y, width, height); + //pc.printf("sig: %d x: %d y: %d width: %d height: %d\n", signature, x, y, width, height); + pc.printf(" x: %d y: %d width: %d height: %d\n", x, y, width, height); }; - uint16_t signature; + //uint16_t signature; uint16_t x; uint16_t y; uint16_t width; @@ -31,7 +32,7 @@ Block *blocks; private: - static const uint8_t PIXY_INITIAL_ARRAYSIZE = 30; + static const uint8_t PIXY_INITIAL_ARRAYSIZE = 7; static const uint8_t PIXY_MAXIMUM_ARRAYSIZE = 130; static const uint16_t PIXY_START_WORD = 0xaa55; static const uint16_t PIXY_START_WORDX = 0x55aa;