LedLight

com.rscja.deviceapi

## Class LedLight

- java.lang.Object
- - com.rscja.deviceapi.LedLight

-     public class LedLight
      extends java.lang.Object

  手柄LED灯控制类
  Handdeld LED control type
  Author:
    liuruifeng

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LedLight()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `close()` 关闭LED灯 Switch off LED
    `static LedLight` | `getInstance()` 获取LED灯操作实例 Acquire LED operation example
    `boolean` | `isPowerOn()` 判断设备是否上电 Judge the device is powered on or not.
    `boolean` | `open()` 打开LED灯 Switch on LED

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### LedLight

          public LedLight()

  - ### Method Detail

    - #### getInstance

          public static LedLight getInstance()

      获取LED灯操作实例
      Acquire LED operation example
      Returns:
        LED灯操作实例

    - #### open

          public boolean open()

      打开LED灯
      Switch on LED
      Returns:
        成功true，失败false

    - #### close

          public boolean close()

      关闭LED灯
      Switch off LED
      Returns:
        成功true，失败false

    - #### isPowerOn

          public boolean isPowerOn()

      判断设备是否上电
      Judge the device is powered on or not.
      Returns: