31 lines
426 B
C++
31 lines
426 B
C++
#ifndef MAIN_H
|
|
#define MAIN_H
|
|
|
|
#include <Arduino.h>
|
|
|
|
#define MAX_SRV_CLIENTS 4
|
|
|
|
namespace Main {
|
|
|
|
enum {
|
|
NOSERIAL = -1,
|
|
HWSERIAL = 0,
|
|
BTSERIAL = 1,
|
|
TCPSERIAL = 2,
|
|
NUM_CHANNELS
|
|
};
|
|
|
|
void init();
|
|
void loop();
|
|
|
|
Stream* channel(int num = -1);
|
|
|
|
extern int g_CurrentChannel;
|
|
extern bool g_Debug[NUM_CHANNELS];
|
|
extern char g_SerialBuffer[NUM_CHANNELS][255];
|
|
extern int g_SerialBufferPos[NUM_CHANNELS];
|
|
|
|
};
|
|
|
|
#endif
|