This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:v2:general_api [2018/05/22 15:09] pixycam [Pixy2 General API] |
wiki:v2:general_api [2018/05/22 15:31] pixycam |
||
---|---|---|---|
Line 5: | Line 5: | ||
<code> | <code> | ||
Pixy2 pixy; | Pixy2 pixy; | ||
+ | |||
+ | pixy.init(); // call init() member function | ||
</code> | </code> | ||
==== Member functions ==== | ==== Member functions ==== | ||
| | ||
- | === int8_t init(uint32_t arg[optional]) === | + | === int8_t init(uint32_t arg [optional]) === |
init() should be called before your program communicates with Pixy. init() returns an [[wiki:v2:general_api#Error codes|error value]] (<0) if it fails and 0 (PIXY\_RESULT\_OK) if it succeeds. | init() should be called before your program communicates with Pixy. init() returns an [[wiki:v2:general_api#Error codes|error value]] (<0) if it fails and 0 (PIXY\_RESULT\_OK) if it succeeds. |