Skip to content

Commit

Permalink
Merge pull request #5162 from chromoxdor/colorcode-add-command
Browse files Browse the repository at this point in the history
[P049] added commands
  • Loading branch information
TD-er authored Nov 21, 2024
2 parents 35afc25 + 3161b14 commit aeb72d0
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 9 deletions.
19 changes: 14 additions & 5 deletions docs/source/Plugin/P049.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,29 @@ Used libraries: |P049_usedlibraries|
Supported hardware
------------------

|P049_usedby|
.. ..|P049_usedby|
MH-Z19B,
MH-Z19C,
MH-Z19D,
MH-Z19E

Sensor
^^^^^^

See: :ref:`SerialHelper_page`


**TODO**: Complete this documentation...
Commands available
^^^^^^^^^^^^^^^^^^

.. include:: P049_commands.repl

.. Commands available
.. ^^^^^^^^^^^^^^^^^^
Additional infos can be found here: https://emariete.com/en/sensor-co2-mh-z19b/

.. .. include:: P049_commands.repl


**TODO**: Complete this documentation...

.. Events
.. ~~~~~~
Expand Down
24 changes: 24 additions & 0 deletions docs/source/Plugin/P049_commands.repl
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.. csv-table::
:header: "Command", "Explanation"
:widths: 20, 30

"
``MHZCalibrateZero``

``MHZReset``

``MHZABCEnable``

``MHZABCDisable``

","
Sets the zero point of the sensor (in this case 400ppm)

Reset to factory defaults

Enables automatic baseline calibration

Disables automatic baseline calibration
"


6 changes: 3 additions & 3 deletions docs/source/Reference/Command.rst
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,10 @@ P048 :ref:`P048_page`
.. include:: ../Plugin/P048_commands.repl


.. P049 :ref:`P049_page`
.. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
P049 :ref:`P049_page`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. .. include:: ../Plugin/P049_commands.repl
.. include:: ../Plugin/P049_commands.repl


.. P050 :ref:`P050_page`
Expand Down
2 changes: 2 additions & 0 deletions static/espeasy.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ var commonPlugins = [
"NeoPixel", "NeoPixelAll", "NeoPixelLine", "NeoPixelHSV", "NeoPixelAllHSV", "NeoPixelLineHSV", "NeoPixelBright",
//P048
"MotorShieldCmd,DCMotor", "MotorShieldCmd,Stepper",
//P049
"MHZCalibrateZero", "MHZReset", "MHZABCEnable", "MHZABCDisable",
//P052
"Sensair_SetRelay",
//P053
Expand Down
2 changes: 1 addition & 1 deletion static/espeasy.min.js

Large diffs are not rendered by default.

0 comments on commit aeb72d0

Please sign in to comment.