k3ng_rotator_controller/libraries/hh12/hh12.h
2016-02-13 11:06:38 -05:00

24 lines
354 B
C++

#ifndef hh12_h
#define hh12_h
#define HH12_DELAY 100 // microseconds
//#define OPTION_HH12_10_BIT_READINGS
class hh12 {
public:
hh12();
void initialize(int _hh12_clock_pin, int _hh12_cs_pin, int _hh12_data_pin);
float heading();
private:
int hh12_clock_pin;
int hh12_cs_pin;
int hh12_data_pin;
};
#endif //hh12_h