[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

@@ -15,7 +15,7 @@ import java.util.Optional;
* code using the roboRIO's I2C port.
*/
public class Robot extends TimedRobot {
static final Port kPort = Port.kOnboard;
static final Port kPort = Port.kPort0;
private static final int kDeviceAddress = 4;
private final I2C m_arduino = new I2C(kPort, kDeviceAddress);