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.
Diff: pixy2.h
- Revision:
- 28:f1dd68d07aec
- Parent:
- 26:a56cc5d715e9
diff -r bee63ac9b70b -r f1dd68d07aec pixy2.h --- a/pixy2.h Tue Jan 21 12:59:37 2020 +0000 +++ b/pixy2.h Mon Feb 03 09:33:58 2020 +0000 @@ -73,6 +73,11 @@ #define PIXY2_BARCODE 4 #define PIXY2_MAX_INT_LINE 6 +// setMode +#define LINE_MODE_TURN_DELAYED 0x01 +#define LINE_MODE_MANUAL_SELECT_VECTOR 0x02 +#define LINE_MODE_WHITE_LINE 0x80 + /**************** ERRORS ****************/ /** @@ -408,6 +413,10 @@ */ ~PIXY2(); +// POUR DEBUG // +T_Pixy2State getEtat(); +void affDataSize(); + // Fonctions publiques /** @@ -447,7 +456,7 @@ * @param s1 (Word - passed by value) : value between 0 and 511 * @return T_pixy2ErrorCode : error code. */ -T_pixy2ErrorCode pixy2_setServos (Word s0, Word s1); +T_pixy2ErrorCode pixy2_setServos (Word s0, Word s1); /** * Sets Pixy2's RGB LED value. The three arguments sets the brightness of the red, green and blue sections of the LED. @@ -482,7 +491,7 @@ * @param framerate (T_pixy2ReturnCode - passed by reference) : number of frame per second (between 2 and 62) * @return T_pixy2ErrorCode : error code. */ -T_pixy2ErrorCode pixy2_getFPS (T_pixy2ReturnCode *framerate); +T_pixy2ErrorCode pixy2_getFPS (T_pixy2ReturnCode **framerate); /** * Gets all detected color blocks in the most recent frame. @@ -602,7 +611,7 @@ * @param pixel (T_pixy2Pixel - passed by reference) : RGB pixel. * @return T_pixy2ErrorCode : error code. */ -T_pixy2ErrorCode pixy2_getRGB (Word x, Word y, Byte saturate, T_pixy2Pixel *pixel); +T_pixy2ErrorCode pixy2_getRGB (Word x, Word y, Byte saturate, T_pixy2Pixel **pixel); // Variables globales Publiques /** @@ -625,7 +634,7 @@ Byte Pixy2_numBarcodes; T_pixy2BarCode *Pixy2_barcodes; -//private : +private : // Variables globales Privées /** * @var etat (T_Pixy2State) state of the pixy2 cam (idle = No action, messageSent = Query or Set message sent, receivingHeader = Camera is respondig to the query/set, receivingData = Header received, dataReceived = All data has been recovered)