[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

@@ -18,7 +18,7 @@ class ADXL345SimTest {
void testInitI2C(ADXL345_I2C.Range range) {
HAL.initialize(500, 0);
try (ADXL345_I2C accel = new ADXL345_I2C(I2C.Port.kMXP, range)) {
try (ADXL345_I2C accel = new ADXL345_I2C(I2C.Port.kPort0, range)) {
ADXL345Sim sim = new ADXL345Sim(accel);
sim.setX(1.91);