AQE Sensor Interface Shield vicatcu
aqe-sensor-interface-shield / libraries / CS_MQ7 / CS_MQ7.h
/*
CS_MQ7_02.h - Library for reading the MQ-7 Carbon Monoxide Sensor
Breakout, as part of the Citizen Sensor project.
http://citizensensor.cc
Released into the public domain.
Created by J Saavedra, October 2010.
http://jos.ph
*/
#ifndef CS_MQ7_h
#define CS_MQ7_h
class CS_MQ7{
public:
CS_MQ7(int CoTogPin, int CoIndicatorPin);
CS_MQ7(int CoTogPin);
void CoPwrCycler();
boolean currentState();
unsigned long time;
unsigned long currTime;
unsigned long prevTime;
unsigned long currCoPwrTimer;
boolean CoPwrState;
boolean indicatorAttached;
private:
int _CoIndicatorPin;
int _CoTogPin;
};
#endif