Skip to content

Commit 8a34177

Browse files
2 parents 763f960 + e3360e3 commit 8a34177

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,33 @@ The maven repository is located at: https://nexus.otake.pw/repository/maven-publ
2121

2222
Add `maven { url 'https://nexus.otake.pw/repository/maven-public/' }` under `repositories`
2323

24-
Add `compile 'pw.otake.pseudoresonance:pixy2-java-api:1.3.4'` under `dependencies` Replace `1.3.4` with the current version of the API.
24+
Add `implementation 'pw.otake.pseudoresonance:pixy2-java-api:1.3.5'` under `dependencies` Replace `1.3.5` with the current version of the API.
2525

2626
Your `build.gradle` should resemble this:
2727

2828
```gradle
2929
// Maven central needed for JUnit
3030
repositories {
31-
mavenCentral()
3231
maven { url 'https://nexus.otake.pw/repository/maven-public/' }
3332
}
3433
3534
// Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries.
3635
// Also defines JUnit 4.
3736
dependencies {
38-
compile 'pw.otake.pseudoresonance:pixy2-java-api:1.3.4'
39-
compile wpi.deps.wpilib()
40-
compile wpi.deps.vendor.java()
37+
implementation 'pw.otake.pseudoresonance:pixy2-java-api:1.3.5'
38+
implementation wpi.deps.wpilib()
39+
nativeZip wpi.deps.wpilibJni(wpi.platforms.roborio)
40+
nativeDesktopZip wpi.deps.wpilibJni(wpi.platforms.desktop)
41+
implementation wpi.deps.vendor.java()
4142
nativeZip wpi.deps.vendor.jni(wpi.platforms.roborio)
4243
nativeDesktopZip wpi.deps.vendor.jni(wpi.platforms.desktop)
43-
testCompile 'junit:junit:4.12'
44+
testImplementation 'junit:junit:4.12'
45+
simulation wpi.deps.sim.gui(wpi.platforms.desktop, false)
4446
}
4547
```
4648

49+
If there are issues using the repository, or you don't want to use it, the files can also be copied directly into the project and used, however I ask that you leave the file headers intact, so that others can find the project.
50+
4751
---
4852
## Using the API
4953
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.

0 commit comments

Comments
 (0)