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:building_the_libpixyusb_example_on_linux2 [2018/06/29 04:57] hohenheim [2.2.1 Download Pixy2 source code] |
wiki:v2:building_the_libpixyusb_example_on_linux2 [2018/06/29 14:37] hohenheim [3.1. hello_pixy: A Simple IO Example] |
||
---|---|---|---|
Line 41: | Line 41: | ||
==== 2.2.1 Download Pixy2 source code ==== | ==== 2.2.1 Download Pixy2 source code ==== | ||
- | |||
- | {{:wiki:v2:git_clone.png?400|}} | ||
In the terminal window type: | In the terminal window type: | ||
Line 48: | Line 46: | ||
''%%git clone https://github.com/charmedlabs/pixy2%%'' | ''%%git clone https://github.com/charmedlabs/pixy2%%'' | ||
+ | {{:wiki:v2:git_clone.png?400|}} | ||
==== 2.2.2. Build the library ==== | ==== 2.2.2. Build the library ==== | ||
In the terminal window type: | In the terminal window type: | ||
- | ''%%cd pixy/scripts%%''\\ | + | ''%%./pixy2/scripts/build_libpixyusb2.sh%%'' |
- | ''%%./build_libpixyusb.sh%%'' | + | |
- | {{wiki:img:a636c182eec2a7d020e836738a7d629fa4b5bb13.png?400}} | + | {{:undefined:build_libpixyusb2.png?400|}} |
- | ==== 2.2.3. Install the library ==== | ||
- | |||
- | Installing the library files requires root privileges. | ||
- | |||
- | In the terminal window type: | ||
- | |||
- | ''%%sudo ./install_libpixyusb.sh%%'' | ||
- | {{wiki:img:d35f59500541f5c21f6aa117ae10b1ecb6af8fba.png?400}} | ||
====== 3. Example projects ====== | ====== 3. Example projects ====== | ||
- | Before trying the examples below, connect Pixy to your Linux system using a USB Mini cable: | + | Before trying the examples below, connect Pixy2 to your Linux system using a USB Micro-B cable: |
- | {{wiki:img:e0e66b6f1b2c5231027c1d03c811e16207772021.jpg?400}} | + | {{:undefined:connect_pixy_usb.png?400|}} |
- | ===== 3.1. hello_pixy: A Simple IO Example ===== | + | ===== 3.1. Color Identification Example (GetBlocksCPPDemo) ===== |
The example does the following: | The example does the following: |