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:
@@ -17,7 +17,7 @@ class Robot : public frc::TimedRobot {
|
||||
public:
|
||||
void RobotPeriodic() override;
|
||||
|
||||
static constexpr frc::I2C::Port kPort = frc::I2C::Port::kOnboard;
|
||||
static constexpr frc::I2C::Port kPort = frc::I2C::Port::kPort0;
|
||||
|
||||
private:
|
||||
static constexpr int deviceAddress = 4;
|
||||
|
||||
Reference in New Issue
Block a user