This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
wiki:v2:pixy_lego_block [2019/01/29 23:23] pixycam |
wiki:v2:pixy_lego_block [2020/04/30 22:25] (current) pixycam |
||
|---|---|---|---|
| Line 37: | Line 37: | ||
| 1. **Port Selector**: use this to select the sensor port 1 through 4 that Pixy2 is plugged into on your controller brick. | 1. **Port Selector**: use this to select the sensor port 1 through 4 that Pixy2 is plugged into on your controller brick. | ||
| 2. **Mode Selector**: selects between measure and compare modes. | 2. **Mode Selector**: selects between measure and compare modes. | ||
| - | 3. **Lamp**: turns the lamp on or off. | + | 3. **Signature**: selects the signature or [[wiki:v2:Using_Color_Codes|color code]] you'd like Pixy2 to search for. |
| - | 4. **Signature**: selects the signature or [[wiki:v2:Using_Color_Codes|color code]] you'd like Pixy2 to search for. | + | 4. **Lamp**: turns the lamp on or off. |
| 5. **Signature Output**: outputs the number of blocks that match the signature or [[wiki:v2:Using_Color_Codes|color code]] you specified in the Signature input. Or it outputs the signature number of the detected object if in General Mode (see the description of modes below). | 5. **Signature Output**: outputs the number of blocks that match the signature or [[wiki:v2:Using_Color_Codes|color code]] you specified in the Signature input. Or it outputs the signature number of the detected object if in General Mode (see the description of modes below). | ||
| 6. **X centroid**: outputs the X location of the center of the largest object that Pixy2 has found. The number returned ranges from 0 to 255, with 0 being the rightmost pixel if facing the camera lens. | 6. **X centroid**: outputs the X location of the center of the largest object that Pixy2 has found. The number returned ranges from 0 to 255, with 0 being the rightmost pixel if facing the camera lens. | ||
| Line 130: | Line 130: | ||
| The Pixy2 RGB sensing is shown below, with labels showing the different inputs and outputs. | The Pixy2 RGB sensing is shown below, with labels showing the different inputs and outputs. | ||
| - | {{wiki:v1:image_728.png}} | + | {{wiki:v2:image_894.png}} |
| Line 140: | Line 140: | ||
| 4. **Y**: Y location input, can range between 0 and 255 (see coordinate diagram below). | 4. **Y**: Y location input, can range between 0 and 255 (see coordinate diagram below). | ||
| 5. **Lamp**: turns the lamp on or off. | 5. **Lamp**: turns the lamp on or off. | ||
| - | 6. **Red**: outputs the red value of the pixel at the specified image location. Value can range between 0 to 255. | + | 6. **Saturation**: if true, Pixy will "saturate" the colors so they are easier to distinguish (reds are redder, blues are bluer, etc.) If false, the raw RGB values will returned. |
| - | 7. **Green**: outputs the green value of the pixel at the specified image location. Value can range between 0 to 255. | + | 7. **Red**: outputs the red value of the pixel at the specified image location. Value can range between 0 to 255. |
| - | 8. **Blue**: outputs the blue value of the pixel at the specified image location. Value can range between 0 to 255. | + | 8. **Green**: outputs the green value of the pixel at the specified image location. Value can range between 0 to 255. |
| + | 9. **Blue**: outputs the blue value of the pixel at the specified image location. Value can range between 0 to 255. | ||