mirror of
https://github.com/k3ng/k3ng_rotator_controller.git
synced 2024-12-23 15:02:27 +00:00
2150ce3397
Further work to get k3ngdisplay files to play with Arduino IDE 1.6.7 All library files should be placed in \sketchbook\libraries\some-directory\ in order to compile in Arduino IDE 1.6.7 Anything rotator_*.* should be in the ino directory!
64 lines
1.2 KiB
C++
64 lines
1.2 KiB
C++
// debug.h contributed by Matt VK5ZM
|
|
|
|
#ifndef _ROTATOR_DEBUG_h
|
|
#define _ROTATOR_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 //_ROTATOR_DEBUG_h
|
|
|