Methods
(static) isTouching(moduleIndex, channel) → {Promise.<bool>}
- Source:
获取触摸组的某通道是否被触摸
Parameters:
Name | Type | Description |
---|---|---|
moduleIndex |
int | 模块序号 |
channel |
int | 通道号:1~6 |
Returns:
True: 该通道被触摸 False: 该通道没有被触摸
- Type
- Promise.<bool>
(static) isMouseConnected(moduleIndex, channel) → {Promise.<bool>}
- Source:
获取鼠标组的某通道是否被导通
Parameters:
Name | Type | Description |
---|---|---|
moduleIndex |
int | 模块序号 |
channel |
int | 通道号:1~6 |
Returns:
True: 该通道被导通 False: 该通道没有被导通
- Type
- Promise.<bool>
(static) isKeyboardConnected(moduleIndex, channel) → {Promise.<bool>}
- Source:
获取键盘组的某通道是否被导通
Parameters:
Name | Type | Description |
---|---|---|
moduleIndex |
int | 模块序号 |
channel |
int | 通道号:1~6 |
Returns:
True: 该通道被导通 False: 该通道没有被导通
- Type
- Promise.<bool>
(static) getFirmwareVersion(moduleIndex) → {Promise.<int>}
- Source:
获取当前模块版本号
Parameters:
Name | Type | Description |
---|---|---|
moduleIndex |
int | 模块序号 |
Returns:
- Type
- Promise.<int>
(static) setOnboardRGB(moduleIndex, rgb)
- Source:
设置板载LED的颜色
Parameters:
Name | Type | Description |
---|---|---|
moduleIndex |
int | 模块序号 |
rgb |
int | '红': 1,'绿':2,'蓝':3,'浅蓝':4,'黄':5,'紫':6,'白': 7,'不亮': 8 |
(static) regTouch(moduleIndex)
- Source:
注册触摸组值上传,当触摸组的任意通道发生触摸或触摸放手时会接收到数据,返回类型为list(bool)
Parameters:
Name | Type | Description |
---|---|---|
moduleIndex |
int | 模块序号 |
(static) regMouse(moduleIndex)
- Source:
注册鼠标组值上传,当鼠标组的任意通道发生触摸或触摸放手时会接收到数据,返回类型为list(bool)
Parameters:
Name | Type | Description |
---|---|---|
moduleIndex |
int | 模块序号 |
(static) regKeyboard(moduleIndex)
- Source:
注册键盘组值上传,当键盘组的任意通道发生触摸或触摸放手时会接收到数据,返回类型为list(bool)
Parameters:
Name | Type | Description |
---|---|---|
moduleIndex |
int | 模块序号 |
(static) unregTouch(moduleIndex)
- Source:
注销触摸组值上传
Parameters:
Name | Type | Description |
---|---|---|
moduleIndex |
int | 模块序号 |
(static) unregMouse(moduleIndex)
- Source:
注销鼠标组值上传
Parameters:
Name | Type | Description |
---|---|---|
moduleIndex |
int | 模块序号 |
(static) unregKeyboard(moduleIndex)
- Source:
注销键盘组值上传
Parameters:
Name | Type | Description |
---|---|---|
moduleIndex |
int | 模块序号 |