onbon.bx06
Class Bx6GBrightnessSensorEnv

java.lang.Object
  extended by onbon.bx06.Bx6GBrightnessSensorEnv

public class Bx6GBrightnessSensorEnv
extends Object

客制化传感器亮度設定。


Constructor Summary
Bx6GBrightnessSensorEnv()
          建构子。
 
Method Summary
 byte[] generate()
          產生資料。
 void setup(int index, int envLevel, int level)
          设定亮度條件。
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bx6GBrightnessSensorEnv

public Bx6GBrightnessSensorEnv()
建构子。

Method Detail

setup

public void setup(int index,
                  int envLevel,
                  int level)
设定亮度條件。

Parameters:
index - 亮度级。0 - 15。
envLevel - 环境亮度值。0 - 65535。
level - 亮度。1 - 16。

generate

public byte[] generate()
產生資料。

Returns:
資料。


Copyright © 2020 onbon. All rights reserved.