mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-02-26 18:46:04 +01:00
default power off for CS mode
This commit is contained in:
parent
1db0b8ab3e
commit
c8ac10e893
@ -1,11 +1,15 @@
|
|||||||
|
// Booster/CS switch automations
|
||||||
|
// uses BOOSTER_INPUT from config.h
|
||||||
|
// uses sequences BOOSTER_START, BOOSTER_CSMODE, BOOSTER_BOOSTERMODE, BOOSTER_CHANGELOGIC
|
||||||
|
// uses latches 200
|
||||||
#if defined(ARDUINO_ARCH_ESP32)
|
#if defined(ARDUINO_ARCH_ESP32)
|
||||||
|
#ifndef BOOSTER_INPUT
|
||||||
|
#error You need to define BOOSTER_INPUT in config.h
|
||||||
|
#endif
|
||||||
ALIAS(BOOSTER_START)
|
ALIAS(BOOSTER_START)
|
||||||
ALIAS(BOOSTER_CSMODE)
|
ALIAS(BOOSTER_CSMODE)
|
||||||
ALIAS(BOOSTER_BOOSTERMODE)
|
ALIAS(BOOSTER_BOOSTERMODE)
|
||||||
// Booster/CS switch automations
|
ALIAS(BOOSTER_CHANGELOGIC)
|
||||||
// uses sequences BOOSTER_START, BOOSTER_CSMODE, BOOSTER_BOOSTERMODE, BOOSTER_CHANGELOGIC
|
|
||||||
// uses latches 200
|
|
||||||
AUTOSTART // remove this if you want manual start
|
AUTOSTART // remove this if you want manual start
|
||||||
ROUTE(BOOSTER_START, "BOOSTER/CS auto START")
|
ROUTE(BOOSTER_START, "BOOSTER/CS auto START")
|
||||||
PRINT("BOOTER/CS auto mode starting for both tracks")
|
PRINT("BOOTER/CS auto mode starting for both tracks")
|
||||||
@ -14,9 +18,9 @@ FOLLOW(BOOSTER_CHANGELOGIC) // goto automatic mode
|
|||||||
|
|
||||||
ROUTE(BOOSTER_CSMODE, "RUN AS CS")
|
ROUTE(BOOSTER_CSMODE, "RUN AS CS")
|
||||||
SET_TRACK(A, MAIN)
|
SET_TRACK(A, MAIN)
|
||||||
SET_POWER(A, ON)
|
// SET_POWER(A, ON)
|
||||||
SET_TRACK(B, MAIN)
|
SET_TRACK(B, PROG)
|
||||||
SET_POWER(B, ON)
|
// SET_POWER(B, ON)
|
||||||
PRINT("CS START")
|
PRINT("CS START")
|
||||||
LATCH(200)
|
LATCH(200)
|
||||||
RETURN
|
RETURN
|
||||||
|
Loading…
Reference in New Issue
Block a user