lukeweston / artemis

Open-source (and open hardware) Arduino-based telemetry and instrumentation module for amateur rocketry

artemis / MPX4101A.cpp
100644 10 lines (7 sloc) 0.147 kb
1
2
3
4
5
6
7
8
9
10
#include "MPX4101A.h"
 
MPX4101A::MPX4101A(Aiko::Device::MCP320x &adc) {
  adc_ = &adc;
}
 
int MPX4101A::readPressure() {
  adc_->readChannel(0);
}