Crystal Huynh
/
pixy_test
code for testing the pixy
Pixy.h
- Committer:
- huynh270
- Date:
- 2017-05-30
- Revision:
- 0:214d306295fa
File content as of revision 0:214d306295fa:
#include <mbed.h> class Pixy { public: Pixy(Serial& cam); struct pixy_s { uint16_t checksum; uint16_t signature; uint16_t x; uint16_t y; uint16_t width; uint16_t height; }; int getX(); int getY(); int getSignature(); int getHeight(); int getWidth(); bool objectDetected(); private: void rxCallback(); bool startFound; int detects; Serial& cam; pixy_s pixy; };