Files
ESPEasy/docs/source/Plugin/P143_commands.repl
T
2022-11-23 22:41:15 +01:00

37 lines
1.2 KiB
Plaintext

.. csv-table::
:header: "Command Syntax", "Extra information"
:widths: 20, 30
"
| ``i2cencoder,bright,<brightness>``
| ``<brightness>``: Range 1..255.
","
| Set the brightness of the Led(s). NeoPixel leds can be quite bright, to reduce the amount of light, and current used, the brightness can be adjusted.
| NB: Not applicable for DFRobot.
"
"
| ``i2cencoder,led1,<red>,<green>,<blue>``
","
| Set the color of the first led to the provided RGB color, with ``brightness`` applied.
| NB: Not applicable for DFRobot encoder.
"
"
| ``i2cencoder,led2,<red>,<green>,<blue>``
","
| Set the color of the second led to the provided RGB color, with ``brightness`` applied.
| NB: **ONLY** available for M5Stack encoder.
"
"
| ``i2cencoder,gain,<gain>``
| ``<gain>``: Range 1..51.
","
| Set the Led vs. rotation gain, the relation between the number of detents the encoder is rotated, and the number of leds lighting up. It can be configured between 51: 1 led/detent (1 rotation lights up all leds) and 1: ~2.5 rotation lighting up 1 additional led (or reducing the number of leds when turning counter-clockwise).
| NB: **ONLY** available for DFRobot encoder.
"