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