mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[hal,wpilib] Rename I2C constants to all caps
This commit is contained in:
@@ -27,7 +27,7 @@ class Robot : public wpi::TimedRobot {
|
||||
private:
|
||||
// Creates an ADXL345 accelerometer object on the MXP I2C port
|
||||
// with a measurement range from -8 to 8 G's
|
||||
wpi::ADXL345_I2C m_accelerometer{wpi::I2C::Port::kPort0,
|
||||
wpi::ADXL345_I2C m_accelerometer{wpi::I2C::Port::PORT_0,
|
||||
wpi::ADXL345_I2C::Range::kRange_8G};
|
||||
};
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ class Robot : public wpi::TimedRobot {
|
||||
public:
|
||||
void RobotPeriodic() override;
|
||||
|
||||
static constexpr wpi::I2C::Port kPort = wpi::I2C::Port::kPort0;
|
||||
static constexpr wpi::I2C::Port kPort = wpi::I2C::Port::PORT_0;
|
||||
|
||||
private:
|
||||
static constexpr int deviceAddress = 4;
|
||||
|
||||
Reference in New Issue
Block a user