Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Pixy.h
00001 #include <mbed.h> 00002 00003 class Pixy 00004 { 00005 public: 00006 Pixy(Serial& cam); 00007 00008 struct pixy_s { 00009 uint16_t checksum; 00010 uint16_t signature; 00011 uint16_t x; 00012 uint16_t y; 00013 uint16_t width; 00014 uint16_t height; 00015 }; 00016 00017 int getX(); 00018 int getY(); 00019 int getSignature(); 00020 int getHeight(); 00021 int getWidth(); 00022 bool objectDetected(); 00023 00024 private: 00025 void rxCallback(); 00026 00027 bool startFound; 00028 int detects; 00029 00030 Serial& cam; 00031 pixy_s pixy; 00032 };
Generated on Wed Jul 13 2022 21:19:49 by
1.7.2