<< return to Pixycam.com

User Tools

Site Tools


wiki:v2:porting_guide

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
Next revision Both sides next revision
wiki:v2:porting_guide [2018/12/19 23:22]
pixycam
wiki:v2:porting_guide [2019/02/01 15:44]
pixycam
Line 37: Line 37:
  
  
-{{wiki:v2:image_380.png}}+{{wiki:v1:image_743.png}}
  
  
Line 46: Line 46:
   * analog/​digital x - this will output the x value of the largest detected object as an analog value between 0 and 3.3V on pin 8. It also outputs whether an object is detected or not as a digital signal (pin 1 of the I/O connector).   * analog/​digital x - this will output the x value of the largest detected object as an analog value between 0 and 3.3V on pin 8. It also outputs whether an object is detected or not as a digital signal (pin 1 of the I/O connector).
   * analog/​digital y - this will output the y value of the largest detected object as an analog value between 0 and 3.3V on pin 8. It also outputs whether an object is detected or not as a digital signal (pin 1 of the I/O connector).   * analog/​digital y - this will output the y value of the largest detected object as an analog value between 0 and 3.3V on pin 8. It also outputs whether an object is detected or not as a digital signal (pin 1 of the I/O connector).
 +  * LEGO I2C - this is a special protocol for LEGO Mindstorms EV3 brick.
  
 Note, the USB interface and protocol is always enabled, while each of the interfaces above can only be enabled one at a time. Note, the USB interface and protocol is always enabled, while each of the interfaces above can only be enabled one at a time.
Line 252: Line 253:
  
  
-We have a [[wiki:​v2:​protocol_reference|complete protocol reference]].  It will be very helpful if you are porting to a platform in a language other than C++.    +We have a complete protocol reference ​below.  It will be very helpful if you are porting to a platform in a language other than C++.  But if you are using C/​C++, ​TPixy2.h ​is a good starting point. ​ It uses the LinkType class to communicate with Pixy2. ​ It assumes some member functions and an implementation of millis() and delayMicroseconds(),​ as shown in the header code below:
- +
- +
-TPixy2.h uses the LinkType class to communicate with Pixy2. ​ It assumes some member functions and an implementation of millis() and delayMicroseconds(),​ as shown in the header code below:+
  
 <​code>​ <​code>​
Line 320: Line 318:
 If you need help, post on our [[https://​forum.pixycam.com/​|forum]] or send us an email ([email protected]). ​ Happy coding! If you need help, post on our [[https://​forum.pixycam.com/​|forum]] or send us an email ([email protected]). ​ Happy coding!
  
 +
 +{{page>​wiki:​v2:​protocol_reference&​noindent}}
  
  
  
wiki/v2/porting_guide.txt · Last modified: 2020/04/27 19:08 by jfrench