Skip to content

Commit 52ec1b6

Browse files
Update 1.4.1
Correct SPI clockrate
1 parent 6c7f486 commit 52ec1b6

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ 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 `implementation 'pw.otake.pseudoresonance:pixy2-java-api:1.4'` under `dependencies` Replace `1.4` with the current version of the API.
24+
Add `implementation 'pw.otake.pseudoresonance:pixy2-java-api:1.4.1'` under `dependencies` Replace `1.4.1` with the current version of the API.
2525

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

@@ -33,7 +33,7 @@ repositories {
3333
// Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries.
3434
// Also defines JUnit 4.
3535
dependencies {
36-
implementation 'pw.otake.pseudoresonance:pixy2-java-api:1.4'
36+
implementation 'pw.otake.pseudoresonance:pixy2-java-api:1.4.1'
3737
implementation wpi.deps.wpilib()
3838
nativeZip wpi.deps.wpilibJni(wpi.platforms.roborio)
3939
nativeDesktopZip wpi.deps.wpilibJni(wpi.platforms.desktop)
@@ -95,6 +95,8 @@ SPI is the recommended link type due to it's higher data transfer rate as well a
9595
| 4 | TXD |
9696
| 6 | ⏚ Ground |
9797

98+
**WARNING**: The RoboRIO RS-232 port outputs an RS-232 serial signal, which is incompatible with the Pixy2's TTL serial signal and may result in damage to the Pixy2. An RS-232 to TTL converter board can be used, or the Pixy2 can be wired to the TTL serial pins in the RoboRIO's MXP expansion port.
99+
98100
**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.
99101

100102
#### Pixy2 Pinout

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ publishing {
4949
artifact javadocJar
5050
groupId = 'pw.otake.pseudoresonance'
5151
artifactId = 'pixy2-java-api'
52-
version = '1.4'
52+
version = '1.4.1'
5353
pom {
5454
name = 'Pixy2JavaAPI'
5555
description = 'Java port of Pixy2 API for FIRST Robotics'

src/main/java/io/github/pseudoresonance/pixy2api/links/SPILink.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*/
3333

3434
public class SPILink implements Link {
35-
private final static int PIXY_SPI_CLOCKRATE = 2000;
35+
private final static int PIXY_SPI_CLOCKRATE = 2000000;
3636

3737
private SPI spi = null;
3838

0 commit comments

Comments
 (0)