[hal,wpilib] Add support for second I2C port (#7878)

This commit is contained in:
Thad House
2025-04-28 08:29:01 -07:00
committed by GitHub
parent 85a8fc9943
commit 08297430b5
9 changed files with 54 additions and 43 deletions

View File

@@ -20,10 +20,10 @@ import java.nio.ByteBuffer;
public class I2C implements AutoCloseable {
/** I2C connection ports. */
public enum Port {
/** Onboard I2C port. */
kOnboard(0),
/** MXP (roboRIO MXP) I2C port. */
kMXP(1);
/** I2C Port 0. */
kPort0(0),
/** I2C Port 1. */
kPort1(1);
/** Port value. */
public final int value;