Skip to content

Commit 9885e48

Browse files
committed
wiki BC25PA接口说明
1 parent c209d2e commit 9885e48

File tree

2 files changed

+9
-49
lines changed

2 files changed

+9
-49
lines changed

en-us/api/QuecPythonClasslib.md

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -4770,11 +4770,11 @@ usb.setCallback(usb_callback)
47704770

47714771
It provides the USB network adapter function.
47724772

4773-
NOTE:Currently, only the ASR platform and Unisoc supports it.
4773+
NOTE:Currently, only the ASR platform supports it.
47744774

47754775
###### Setting the USBNET working type (Take effect after restart)
47764776

4777-
> **USBNET.set_worktype(type)**
4777+
USBNET.set_worktype(type)
47784778

47794779
- Parameter
47804780

@@ -4786,46 +4786,6 @@ NOTE:Currently, only the ASR platform and Unisoc supports it.
47864786

47874787
Return 0 if the setting is successful, otherwise return -1.
47884788

4789-
4790-
4791-
###### Getting the USBNET working type (Take effect after restart)
4792-
4793-
> **USBNET.get_worktype()**
4794-
4795-
* Parameter
4796-
4797-
None
4798-
4799-
* Return Value
4800-
4801-
Return the USBNET working type if successful, otherwise return -1.
4802-
4803-
1 - ECM type
4804-
4805-
3 - RNDIS type
4806-
4807-
4808-
4809-
###### Getting the USBNET status
4810-
4811-
> **USBNET.get_status()**
4812-
4813-
* Parameter
4814-
4815-
None
4816-
4817-
* Return Value
4818-
4819-
Return the USBNET status if successful, otherwise return -1.
4820-
4821-
status:
4822-
4823-
0 - Not connected
4824-
4825-
1 - connected
4826-
4827-
4828-
48294789
###### Open USBNET
48304790

48314791
> **USBNET.open()**

zh-cn/api/QuecPythonClasslib.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7063,7 +7063,7 @@ if __name__ == '__main__':
70637063

70647064
###### 创建keypad对象
70657065

7066-
> **keypad=machine.KeyPad()**
7066+
> **keypad=machine.KeyPad(row,col)**
70677067
>
70687068
* 参数
70697069
| 参数 | 参数类型 | 参数说明 |
@@ -7075,20 +7075,19 @@ if __name__ == '__main__':
70757075
* 示例:
70767076
> ```python
70777077
> >>>import machine
7078-
> >>>keypad=machine.KeyPad()
7078+
> >>>keypad=machine.KeyPad(2,3) # 矩阵键盘设置为2行3列矩阵键盘
7079+
> >>>keypad=machine.KeyPad() # 不设置,默认设置为4行4列矩阵键盘
7080+
> >>>keypad=machine.KeyPad(2) # 行值设置为2,不设置列值,列值默认为4,2行4列矩阵键盘
70797081
> ```
70807082
>
7081-
>
70827083

70837084
###### 初始化keypad
70847085

70857086
> **keypad.init()**
70867087

70877088
初始化keypad设置。
7088-
70897089
* 参数
7090-
7091-
7090+
>
70927091

70937092
* 返回值
70947093

@@ -10742,7 +10741,8 @@ camCaputre.callback(callback)
1074210741
模块功能:对L76K GPS型号进行数据获取,可以得到模块定位是否成功,定位的经纬度数据,UTC授时时间,获取GPS模块的定位模式,获取GPS模块定位使用卫星数量,获取GPS模块定位可见卫星数量,获取定位方位角,GPS模块对地速度,模块定位大地高等数据信息。
1074310742

1074410743
* 注意
10745-
当前仅ASR和展锐的EC200U/EC600U系列支持该功能。
10744+
BC25PA平台不支持模块功能。
10745+
> 暂时只支持EC600U CNLB
1074610746

1074710747
##### 打开GNSS串口,读取并解析GNSS数据
1074810748

0 commit comments

Comments
 (0)