Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (32 sloc) 616 Bytes
/*
* Omega_PHH37
* Library for communicating with the Omega PHH37
* pH/mV Temperature meter over RS232
*
* Stefan Natchev - 2013
*/
#ifndef Omega_PHH37_h
#define Omega_PHH37_h
#include "Arduino.h"
#define Omega_PHH37_DisplayMode_pH 0
#define Omega_PHH37_DisplayMode_mV 1
class Omega_PHH37
{
public:
Omega_PHH37();
void begin();
bool read();
float mV();
float temp();
char tempUnits();
float pH();
int rangeCode();
int displayMode();
private:
char _input[64];
char _range_code[3];
char _value_1[7];
char _value_2[7];
bool validInput();
};
#endif