-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdebug.h
63 lines (49 loc) · 1.19 KB
/
debug.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// debug.h contributed by Matt VK5ZM
#ifndef _DEBUG_h
#define _DEBUG_h
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
#include "rotator.h"
#ifdef HARDWARE_EA4TX_ARS_USB
#include "rotator_features_ea4tx_ars_usb.h"
#endif
#ifdef HARDWARE_WB6KCN
#include "rotator_features_wb6kcn.h"
#endif
#ifdef HARDWARE_M0UPU
#include "rotator_features_m0upu.h"
#endif
#ifdef HARDWARE_TEST
#include "rotator_features_test.h"
#endif
#if !defined(HARDWARE_CUSTOM)
#include "rotator_features.h"
#endif
class DebugClass
{
protected:
public:
void init();
void print(const char *str);
void print(const __FlashStringHelper *str);
void print(char ch);
void print(int i);
void print(float f);
void print(float f, byte places);
void print(unsigned int i);
void print(long unsigned int i);
void print(long i);
void print(double i);
void println(double i);
void println(const char *str);
// void println (const __FlashStringHelper *str);
void write(const char *str);
void write(int i);
};
//extern DebugClass Debug;
extern uint8_t debug_mode;
extern HardwareSerial * control_port;
#endif