com.siemens.mp.m55
Class Ledcontrol

java.lang.Object
  extended bycom.siemens.mp.m55.Ledcontrol

public class Ledcontrol
extends Object

Ledcontrol Class is used to control TOP/BOTTOM LED blinking.

Note: This API is only available on M55 mobile phone!


Field Summary
static int LED_BOTTOM
          This is the unique value for the lower LED.
static int LED_TOP
          This is the unique value for the upper LED.
static int P_BEAT
          An available pattern.
static int P_CONSTANLY_LITEUP
          An available pattern.
static int P_ETERNITY
          An available pattern.
static int P_IDLE
          An available pattern.
static int P_LIGHTHOUSE
          An available pattern.
static int P_LIMELIGHT
          An available pattern.
static int P_NORMAL_BLINKING
          An available pattern.
static int P_PULSATING
          An available pattern.
static int P_RUNWAY
          An available pattern.
static int P_SPEED
          An available pattern.
static int P_STROBO
          An available pattern.
static int P_TRANCE
          An available pattern.
static int P_WAVE
          An available pattern.
 
Method Summary
static void playPattern(int pattern)
          This function can be used to play a pattern.
static void stopPattern()
          This function will switch off all the LEDs.
static void switchOFF(int led)
          This function will switch off the indicated LED.
static void switchON(int led)
          This function will switch on the indicated LED.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LED_TOP

public static final int LED_TOP
This is the unique value for the upper LED.

See Also:
Constant Field Values

LED_BOTTOM

public static final int LED_BOTTOM
This is the unique value for the lower LED.

See Also:
Constant Field Values

P_SPEED

public static final int P_SPEED
An available pattern.

See Also:
Constant Field Values

P_LIGHTHOUSE

public static final int P_LIGHTHOUSE
An available pattern.

See Also:
Constant Field Values

P_WAVE

public static final int P_WAVE
An available pattern.

See Also:
Constant Field Values

P_BEAT

public static final int P_BEAT
An available pattern.

See Also:
Constant Field Values

P_RUNWAY

public static final int P_RUNWAY
An available pattern.

See Also:
Constant Field Values

P_TRANCE

public static final int P_TRANCE
An available pattern.

See Also:
Constant Field Values

P_ETERNITY

public static final int P_ETERNITY
An available pattern.

See Also:
Constant Field Values

P_STROBO

public static final int P_STROBO
An available pattern.

See Also:
Constant Field Values

P_LIMELIGHT

public static final int P_LIMELIGHT
An available pattern.

See Also:
Constant Field Values

P_NORMAL_BLINKING

public static final int P_NORMAL_BLINKING
An available pattern.

See Also:
Constant Field Values

P_PULSATING

public static final int P_PULSATING
An available pattern.

See Also:
Constant Field Values

P_CONSTANLY_LITEUP

public static final int P_CONSTANLY_LITEUP
An available pattern.

See Also:
Constant Field Values

P_IDLE

public static final int P_IDLE
An available pattern.

See Also:
Constant Field Values
Method Detail

switchON

public static void switchON(int led)
This function will switch on the indicated LED.

Parameters:
led - is one of LED_TOP, LED_BOTTOM

playPattern

public static void playPattern(int pattern)
This function can be used to play a pattern.

Parameters:
pattern - is one of P_SPEED, P_LIGHTHOUSE, P_WAVE, P_BEAT, P_RUNWAY, P_TRANCE, P_ETERNITY, P_STROBO, P_LIMELIGHT, P_NORMAL_BLINKING, P_PULSATING, P_CONSTANLY_LITEUP, P_IDLE

stopPattern

public static void stopPattern()
This function will switch off all the LEDs.


switchOFF

public static void switchOFF(int led)
This function will switch off the indicated LED.

Parameters:
led - is one of LED_TOP, LED_BOTTOM


Generated on 2003-10-17For further information and updates, please visit Siemens mobile Developer Portal