cette librairie contient les fonctions de base permettant de detecter un objet avec la camera pixy
Pixy.h@0:a1e10abfbd19, 2020-11-18 (annotated)
- Committer:
- michelmoulin
- Date:
- Wed Nov 18 13:12:20 2020 +0000
- Revision:
- 0:a1e10abfbd19
cette version de programme permet d'afficher les coordonnees x et y d'un objet detecte par la camera pixy.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
michelmoulin | 0:a1e10abfbd19 | 1 | #ifndef _PIXY_H |
michelmoulin | 0:a1e10abfbd19 | 2 | #define _PIXY_H |
michelmoulin | 0:a1e10abfbd19 | 3 | |
michelmoulin | 0:a1e10abfbd19 | 4 | #include "TPixy.h" |
michelmoulin | 0:a1e10abfbd19 | 5 | #include "TPixyInterface.h" |
michelmoulin | 0:a1e10abfbd19 | 6 | |
michelmoulin | 0:a1e10abfbd19 | 7 | class PixySPI : public TPixy<PixyInterfaceSPI> |
michelmoulin | 0:a1e10abfbd19 | 8 | { |
michelmoulin | 0:a1e10abfbd19 | 9 | public: |
michelmoulin | 0:a1e10abfbd19 | 10 | PixySPI(SPI* spi, Serial* serialOut = NULL, uint16_t arg = PIXY_DEFAULT_ARGVAL) : |
michelmoulin | 0:a1e10abfbd19 | 11 | TPixy<PixyInterfaceSPI>((new PixyInterfaceSPI(spi)), serialOut, arg) {} |
michelmoulin | 0:a1e10abfbd19 | 12 | }; |
michelmoulin | 0:a1e10abfbd19 | 13 | |
michelmoulin | 0:a1e10abfbd19 | 14 | #endif |