You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First create a Pixy2 camera object with `Pixy2 pixy = Pixy2.createInstance(link)` and supply the link type of your choosing. Next, initialize the Pixy2 camera with `pixy.init(arg)`. You can either omit arg, your add a value based on the link type.
49
+
First create a Pixy2 camera object with `Pixy2 pixy = Pixy2.createInstance(link)` and supply the link type of your choosing. Next, initialize the Pixy2 camera with `pixy.init(arg)`. You can either omit arg, or add a value based on the link type.
50
+
51
+
The Pixy2 can now be called on with the various provided methods as outlined in the documentation included in the code and on the Pixy2 website.
52
+
53
+
Please read the [wiki](https://github.com/PseudoResonance/Pixy2JavaAPI/wiki/Using-the-API) for more information about how to use the API, including examples.
54
+
55
+
---
56
+
## Supported Links to Communicate with Pixy
57
+
SPI, I2C (Untested), UART/Serial (Untested)
44
58
45
-
The Pixy2 can now be called on with the various provided methods as outlined in the documentation and on the Pixy2 website.
59
+
New link types can be easily added to support future hardware, or other Java-based projects by implementing [Link](https://github.com/PseudoResonance/Pixy2JavaAPI/blob/master/src/main/java/io/github/pseudoresonance/pixy2api/links/Link.java)
46
60
47
61
---
48
-
## Connecting Pixy2 to RoboRIO
62
+
## Wiring Pixy2 to RoboRIO
49
63
SPI is the recommended link type due to it's higher data transfer rate as well as better implementation in the WPILib API which helps with efficiency.
50
64
51
65
### SPI
@@ -68,7 +82,7 @@ SPI is the recommended link type due to it's higher data transfer rate as well a
68
82
| 6 | ⏚ Ground |
69
83
| 9 | SDA |
70
84
71
-
**NOTE**: The RoboRIO does not have a 5V output for I2C, and thus, the 5V must be sourced elsewhere, such as from the VRM.
85
+
**NOTE**: The RoboRIO does not have a 5V output for I2C, and thus, the 5V must be sourced elsewhere, such as from the VRM, or another 5V pin.
72
86
73
87
### UART/Serial/RS-232
74
88
| Pixy2 Port | RoboRIO Port |
@@ -78,7 +92,7 @@ SPI is the recommended link type due to it's higher data transfer rate as well a
78
92
| 4 | TXD |
79
93
| 6 | ⏚ Ground |
80
94
81
-
**NOTE**: The RoboRIO does not have a 5V output for UART/Serial/RS-232, and thus, the 5V must be sourced elsewhere, such as from the VRM.
95
+
**NOTE**: The RoboRIO does not have a 5V output for UART/Serial/RS-232, and thus, the 5V must be sourced elsewhere, such as from the VRM, or another 5V pin.
0 commit comments