MCPcopy Create free account
hub / github.com/XCSoar/XCSoar / BMP085

Method BMP085

android/src/BMP085.java:95–109  ·  view source on GitHub ↗
(IOIO ioio, int twiNum, int eocPin, int _oversampling,
                SensorListener _listener)

Source from the content-addressed store, hash-verified

93 private int ac5, ac6, mc, md;
94
95 public BMP085(IOIO ioio, int twiNum, int eocPin, int _oversampling,
96 SensorListener _listener)
97 throws ConnectionLostException {
98 super("BMP085");
99
100 twi = ioio.openTwiMaster(twiNum, TwiMaster.Rate.RATE_1MHz, false);
101 eoc = ioio.openDigitalInput(eocPin);
102
103 oversampling = _oversampling;
104 readPressure[1] += oversampling << 6;
105
106 listener = _listener;
107
108 start();
109 }
110
111 public void close() {
112 if (twi != null)

Callers

nothing calls this directly

Calls 1

startMethod · 0.80

Tested by

no test coverage detected