Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
# 'sphinx.ext.ifconfig',
# 'sphinx.ext.viewcode',
# 'sphinx.ext.graphviz',
'sphinx_sitemap',
# 'sphinx_sitemap',
# 'sphinx.ext.inheritance_diagram',
'sphinxcontrib.spelling',
'sphinx_toolbox.collapse',
Expand Down
1 change: 1 addition & 0 deletions docs/exrail/cookbooks/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ The following cookbooks are currently available:
vpins
animation-sensors
estop-button
overload-messsage

.. toctree::
:maxdepth: 2
Expand Down
28 changes: 28 additions & 0 deletions docs/exrail/cookbooks/overload-messsage.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.. include:: /include/include.rst
.. include:: /include/include-l2.rst
.. include:: /include/include-ex-r.rst
|EX-R-LOGO|

**************************************
Message on Overload or Short Circuit
**************************************

|SUITABLE| |tinkerer| |engineer| |support-button|

``ONOVERLOAD(output)`` will start a sequence when an overload or short circuit is detected on the track/output. |BR|
``MESSAGE(message)`` will display a message on all throttles. |BR|
``AFTEROVERLOAD(output)`` will continute the sequence at this point after the overload or short circuit is cleared.

.. code-block:: cpp

ONOVERLOAD(A)
PRINT("Overload Detected on A")
BROADCAST("Overload Track A")
MESSAGE("Overload Track A")
AFTEROVERLOAD(A)
DELAY(2000)
BROADCAST("Overload Track A - Cleared")
MESSAGE("Overload Track A - Cleared")
DONE

For tracks/outputs B-H, duplicate the entire block above and replace 'A' with the appropriate track/output letter.
3 changes: 3 additions & 0 deletions docs/exrail/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Objects:
- Active low IR sensors connected to Mega2560 I/O pins 40 through 46
- An active low push button on Mega2560 I/O pin 30


Also see the :doc:`/exrail/cookbooks/index` for a collection of step-by-step instructions for building various |EX-R| based sequences and components for your model railroad.

----

Turn Track Power On at Startup
Expand Down
20 changes: 10 additions & 10 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ DCC-EX Model Railroading
:hidden:
:maxdepth: 4

EXRAIL & TRACK MANAGER<add-ons>
PURCHASING & MERCHANDISE<purchasing-and-merchandise>

.. toctree::
:hidden:
Expand All @@ -110,25 +110,19 @@ DCC-EX Model Railroading
:hidden:
:maxdepth: 4

SUPPORT & INFO<support-and-info>

.. toctree::
:hidden:
:maxdepth: 4

DOWNLOADS<download/index>
SUPPORT, INFO & IDEAS<support-and-info>

.. toctree::
:hidden:
:maxdepth: 4

PURCHASING & MERCHANDISE<purchasing-and-merchandise>
EXRAIL & TRACK MANAGER<add-ons>

.. toctree::
:hidden:
:maxdepth: 4

DETAILED INFORMATION<reference/index>
REFERENCE & DETAILED INFO<reference/index>

.. .. toctree::
.. :hidden:
Expand All @@ -139,6 +133,12 @@ DCC-EX Model Railroading
.. external-references/standards
.. reference/accessories/index

.. toctree::
:hidden:
:maxdepth: 4

DOWNLOADS<download/index>

.. toctree::
:hidden:
:maxdepth: 4
Expand Down
Loading