Classes which use I2C or SPI now do so via composition rather than inheritance (#72)

This commit is contained in:
Tyler Veness
2016-05-26 21:37:23 -07:00
committed by Peter Johnson
parent 9f2f301fa4
commit 51ff9e9f69
6 changed files with 29 additions and 25 deletions

View File

@@ -66,7 +66,7 @@ public class ADXL345_I2C extends SensorBase implements Accelerometer, LiveWindow
public double ZAxis;
}
private I2C m_i2c;
protected I2C m_i2c;
/**
* Constructs the ADXL345 Accelerometer with I2C address 0x1D.

View File

@@ -69,7 +69,7 @@ public class ADXL345_SPI extends SensorBase implements Accelerometer, LiveWindow
public double ZAxis;
}
private SPI m_spi;
protected SPI m_spi;
/**
* Constructor.