Pixy2 Quick Links
Basics
Connecting Pixy2 to…
Pixy2 Modes / Programs
Software and Support
Basics
Connecting Pixy2 to…
Pixy2 Modes / Programs
Software and Support
The libpixyusb2 library provides a software application programming interface (API) for communicating
with Pixy2 over USB. This allows you to write software that interfaces with Pixy2 like the PixyMon application.
The following procedure will outline the steps required for building the libpixyusb2 library and some example projects using the library. This procedure assumes the following:
The Mint-17 distribution of Linux can be downloaded here: http://www.linuxmint.com
Instructions for updating the Pixy2 firmware are here: Uploading New Firmware
Although this procedure uses Linux Mint-17, it should work with any Linux distribution that uses the Debian package manager (e.g. Ubuntu).
In the terminal window type:
sudo apt-get install git
Before trying the examples below, connect Pixy2 to your Linux system using a USB Mini cable.
The example does the following:
In the terminal window type:
/pixy2/scripts/build_get_blocks_cpp_demo.sh
To start the libpixyusb2 example, run 'hello_pixy' as root.
In the terminal window type:
cd /pixy2/build/hello_pixy
sudo ./hello_pixy
Block data received from Pixy2 is displayed in stdout.