<< return to Pixycam.com

User Tools

Site Tools


wiki:v2:general_api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
wiki:v2:general_api [2018/09/28 19:58]
jfrench Imported by DokuWiki Advanced Plugin
wiki:v2:general_api [2019/04/29 20:08]
pixycam
Line 8: Line 8:
 pixy.init();​ // call init() member function pixy.init();​ // call init() member function
 </​code>​ </​code>​
 +
 +See also the [[wiki:​v2:​ccc_api|Color Connected Components API]], [[wiki:​v2:​line_api|Line tracking API]], and [[wiki:​v2:​video_api|Video API]] for other functionality.
 +
 +For a byte-level reference to the protocol, check out the new [[wiki:​v2:​protocol_reference|Pixy2 Serial Protocol - Packet Reference]]
 +
  
 ==== Member functions ==== ==== Member functions ====
Line 28: Line 33:
 === int8_t setServos(uint16_t s0, uint16_t s1) === === int8_t setServos(uint16_t s0, uint16_t s1) ===
  
-setServos() sets the servo positions of servos plugged into Pixy2'​s two RC servo connectors. ​ It returns an [[wiki:​v2:​general_api#​Error codes|error value]] (<0) if it fails and 0 (PIXY\_RESULT\_OK) if it succeeds.+setServos() sets the servo positions of servos plugged into Pixy2'​s two RC servo connectors.  The servo values range between PIXY_RCS_MIN_POS (0) and PIXY_RCS_MAX_POS (1000).  It returns an [[wiki:​v2:​general_api#​Error codes|error value]] (<0) if it fails and 0 (PIXY\_RESULT\_OK) if it succeeds.
    
  
wiki/v2/general_api.txt ยท Last modified: 2019/04/29 20:08 by pixycam