Exemplo n.º 1
0
  /**
   * Set the power LED's color and intensity
   *
   * @param color Set the color of the LED - 0 = green, 255 = red, and values between mix green and
   *     red
   * @param intensity Set the intensity of the LED, valid values range from 0 (off) to 255
   *     (completely on)
   */
  public void setPowerLED(int color, int intensity) {

    powerLEDColor = (byte) color;
    powerLEDIntensity = (byte) intensity;

    setLEDs();
  }
Exemplo n.º 2
0
  /**
   * Set the states of the play, advanced, and power LEDs with a single method
   *
   * @param play State to set the LED located next to the play button ('>') to - true is on, false
   *     is off
   * @param advance State to set the LED located next to the advance button ('>>|') to - true is on,
   *     false is off
   * @param color Set the color of the power LED - 0 = green, 255 = red, and values between mix
   *     green and red
   * @param intensity Set the intensity of the power LED, valid values range from 0 (off) to 255
   *     (completely on)
   */
  public void setAllLEDs(boolean play, boolean advance, int color, int intensity) {

    playLEDState = play;
    advanceLEDState = advance;
    powerLEDColor = (byte) color;
    powerLEDIntensity = (byte) intensity;

    setLEDs();
  }
Exemplo n.º 3
0
  /**
   * Set the state of the LED located next to the advance ('>>|') button
   *
   * @param state State to set the LED to - true is on, false is off
   */
  public void setAdvanceLED(boolean state) {

    advanceLEDState = state;

    setLEDs();
  }
Exemplo n.º 4
0
  /**
   * Set the state of the LED located next to the play ('>') button
   *
   * @param state State to set the LED to - true is on, false is off
   */
  public void setPlayLED(boolean state) {

    playLEDState = state;

    setLEDs();
  }