(IOIO ioio, int twiNum, int eocPin, int _oversampling,
SensorListener _listener)
| 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) |