mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-24 13:21:23 +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
|