mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[hal,wpilib] Add support for second I2C port (#7878)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user