mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-26 17:46:14 +01:00
17 lines
293 B
C
17 lines
293 B
C
|
#ifndef LCN_h
|
||
|
#define LCN_h
|
||
|
#include <Arduino.h>
|
||
|
|
||
|
class LCN {
|
||
|
public:
|
||
|
static void init(Stream & lcnstream);
|
||
|
static void loop();
|
||
|
static void send(char opcode, int id, bool state);
|
||
|
private :
|
||
|
static bool firstLoop;
|
||
|
static Stream * stream;
|
||
|
static int id;
|
||
|
};
|
||
|
|
||
|
#endif
|