3.3.1.4 Effect Deactivation

int IndoorTouch.LedsEffectDisable(String effectName);

Removes an active effect immediately. The LED brightness values remain on the level that was valid at the time of effect removal. If a lower priority effect is active controlling similar LEDs, the values will be reset immediately. As backlight notification is active in the RGB LEDs by default, the value is reset to black or blue after notification end.
The return value is as follows:

  • IndoorTouch.RC_OK = 0;
  • IndoorTouch.RC_ERR_CONN = -1; API daemon connection error
  • IndoorTouch.RC_ERR_NOTEXIST = -4; the effect name does not exist