mirror of
https://github.com/k3ng/k3ng_rotator_controller.git
synced 2025-02-03 01:20:42 +00:00
ba24c61885
Working on FEATURE_AZ_POSITION_ROTARY_ENCODER_USE_LIB and FEATURE_EL_POSITION_ROTARY_ENCODER_USE_LIB Fixed bug with last row of LCD display getting blanked out FEATURE_TEST_DISPLAY_AT_STARTUP Noted in various settings files that AZIMUTH_STARTING_POINT_DEFAULT and AZIMUTH_ROTATION_CAPABILITY_DEFAULT are used only for initializing EEPROM Fixed an issue with FEATURE_AZ_POSITION_HH12_AS5045_SSI and FEATURE_AZ_POSITION_INCREMENTAL_ENCODER using AZIMUTH_STARTING_POINT_DEFAULT rather than azimuth_starting_point variable
72 lines
1.4 KiB
C++
72 lines
1.4 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
|
|
|
|
// #ifdef FEATURE_ETHERNET
|
|
// #include <SPI.h>
|
|
// #include <Ethernet.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 uint8_t debug_mode;
|
|
extern HardwareSerial * control_port;
|
|
|
|
// #ifdef FEATURE_ETHERNET
|
|
// extern EthernetClient ethernetclient0;
|
|
// #endif
|
|
|
|
#endif //_ROTATOR_DEBUG_h
|
|
|