org.kwis.msp.handset
Class LED

java.lang.Object
  |
  +--org.kwis.msp.handset.LED

public class LED
extends Object

LED(Light Emitting Diodes) 를 조절하는 클래스이다.


Method Summary
static int get()
          LED의 on/off상태를 읽어온다
static int getCount()
          시스템의 LED 개수를 리턴한다
static void set(int leds)
          LED on/off를 설정한다.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCount

public static int getCount()
시스템의 LED 개수를 리턴한다
Returns:
시스템의 LED 개수

set

public static void set(int leds)
LED on/off를 설정한다. 각bit가 1이면 on, 0이면 off를 나타낸다.
예) 외장 LED가 4개 존재한다면 LSB BIT 부터 4개를 사용한다.
                          0 bit
   +---------------------+
   |             |*|*|*|*|
   +---------------------+
   
set(0x3) led2개를 켜고, 두개를 끈다.

get

public static int get()
LED의 on/off상태를 읽어온다
Returns:
각 led의 on/off상태의 bit OR값


AromaSoft Corp. Proprietary and Confidential

(C)opyright 2003 AromaSoft Corp. All right reserved.
Contact : contact@aromasoft.com