mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-30 03:26:13 +01:00
d7b2cf3d76
* LCN * Prevent deprecated compiler warning * Implement huge function numbers * new commands <! [cab]> forget locos. <9> ESTOP ALL. <D RESET> reboot arduino * Waveform accuracy msg * Drop post-write verify * UNUSED_PIN current measure and callback -2 for cv actions. * Correct diags * ESTOP a forget loco * ESTOP loco on forget * Avoid compiler warning * current sensor offset * Restore <1 JOIN> after prog track operation * <!> ESTOP <-> FORGET * Auto current offset detection * manage current offset and diagnostics * neater msg at startup * Add startup message to LCN master * DCC::setJoinRelayPin Co-authored-by: Asbelos <asbelos@btinternet.com>
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
|