mirror of
https://github.com/k3ng/k3ng_rotator_controller.git
synced 2025-01-31 08:25:21 +00:00
22 lines
315 B
C++
Executable File
22 lines
315 B
C++
Executable File
#ifndef hh12_h
|
|
#define hh12_h
|
|
|
|
#define HH12_DELAY 100 // microseconds
|
|
|
|
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
|