mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-23 08:06:13 +01:00
5ea6feb11a
commit8987d622e6
Author: Asbelos <asbelos@btinternet.com> Date: Tue Apr 9 20:44:47 2024 +0100 doc note commit8f0a5c1ec0
Author: Asbelos <asbelos@btinternet.com> Date: Thu Apr 4 09:45:58 2024 +0100 Exrail notes commit94083b9ab8
Merge:72ef199
02bf50b
Author: Asbelos <asbelos@btinternet.com> Date: Thu Apr 4 09:08:26 2024 +0100 Merge branch 'devel' into devel_chris commit72ef199315
Author: Asbelos <asbelos@btinternet.com> Date: Thu Apr 4 09:06:50 2024 +0100 TOGGLE_TURNOUT commite69b777a2f
Author: Asbelos <asbelos@btinternet.com> Date: Wed Apr 3 15:17:40 2024 +0100 BLINK command commitc7ed47400d
Author: Asbelos <asbelos@btinternet.com> Date: Tue Apr 2 10:12:45 2024 +0100 FTOGGLE,XFTOGGLE commit7a93cf7be8
Author: Asbelos <asbelos@btinternet.com> Date: Fri Mar 29 13:21:35 2024 +0000 EXRAIL STEALTH_GLOBAL
38 lines
1.0 KiB
Markdown
38 lines
1.0 KiB
Markdown
|
|
BLINK(vpin, onMs,offMs)
|
|
|
|
which will start a vpin blinking until such time as it is SET, RESET or set by a signal operation such as RED, AMBER, GREEN.
|
|
|
|
BLINK returns immediately, the blinking is autonomous.
|
|
|
|
This means a signal that always blinks amber could be done like this:
|
|
```
|
|
SIGNAL(30,31,32)
|
|
ONAMBER(30) BLINK(31,500,500) DONE
|
|
```
|
|
The RED or GREEN calls will turn off the amber blink automatically.
|
|
|
|
Alternatively a signal that has normal AMBER and flashing AMBER could be like this:
|
|
|
|
#define FLASHAMBER(signal) \
|
|
AMBER(signal) \
|
|
BLINK(signal+1,500,500)
|
|
|
|
(Caution: this issumes that the amber pin is redpin+1)
|
|
|
|
==
|
|
|
|
FTOGGLE(function)
|
|
Toggles the current loco function (see FON and FOFF)
|
|
|
|
XFTOGGLE(loco,function)
|
|
Toggles the function on given loco. (See XFON, XFOFF)
|
|
|
|
TOGGLE_TURNOUT(id)
|
|
Toggles the turnout (see CLOSE, THROW)
|
|
|
|
STEALTH_GLOBAL(code)
|
|
ADVANCED C++ users only.
|
|
Inserts code such as static variables and functions that
|
|
may be utilised by multiple STEALTH operations.
|
|
|