This commit is contained in:
lyx080
2023-02-14 11:11:34 +08:00
parent 8f8f474f19
commit 1aa131f70c
4 changed files with 14 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 784 KiB

After

Width:  |  Height:  |  Size: 784 KiB

View File

@@ -286,13 +286,13 @@ python3 -c "import os, binascii; os.system('sed -i \'/iface eth0 inet dhcp/ahwad
>注意:新镜像(**20230103**)已提前配置好 `nmtui-connect` 直接可以根据下文进行联网。
>旧镜像使用前需先配置 `nmtui-connect` 才可使用,可点击前往[ 启动 nmtui-connect 图形化联网 ](https://wiki.sipeed.com/hardware/zh/maixIII/ax-pi/basic_usage.html#配置-nmtui-connect-使用图形化联网)查看。
用户修改以下命令行的 `账户密码` 直接在终端运行连接即可,系统会自动保存连接过的 WiFi 账户以及密码。
以下联网命令行已提前放置在开机脚本 `/boot/rc.local` 里,用户可参考示例修改命令行的 `账户 & 密码` 在终端运行联网即可,系统会自动保存连接过的 WiFi 账户以及密码。
```bash
nmcli device wifi connect Sipeed_Guest password qwert123
# 示例
nmcli device wifi connect AXera-Pi password 11111111
# 改动 WiFi 名称以及 pssword 密码
# 改动 WiFi 账户以及 pssword 密码
```
.. details::点击查看修改示例图
@@ -1083,6 +1083,10 @@ echo 1 > /sys/class/gpio/gpio68/value
![io_pin_map](./../assets/io_pin_map.png)
可见排针的 PA0-3 与上图的关系。
![gpio_axpi](./../assets/gpio_axpi.png)
先在 python3 中加载简易封装 gpio 类,使用的是 linux 的 libgpiod 的 python 版本。
```python
@@ -1136,10 +1140,10 @@ GPIO 输出测试:
```python
led0 = gpio(0, gpio_chip=2, line_mode = line_request.DIRECTION_OUTPUT)
led1 = gpio(1, gpio_chip=2, line_mode = line_request.DIRECTION_OUTPUT)
led2 = gpio(2, gpio_chip=2, line_mode = line_request.DIRECTION_OUTPUT)
led3 = gpio(3, gpio_chip=2, line_mode = line_request.DIRECTION_OUTPUT)
led0 = gpio(16, gpio_chip=2, line_mode = line_request.DIRECTION_OUTPUT)
led1 = gpio(17, gpio_chip=2, line_mode = line_request.DIRECTION_OUTPUT)
led2 = gpio(18, gpio_chip=2, line_mode = line_request.DIRECTION_OUTPUT)
led3 = gpio(19, gpio_chip=2, line_mode = line_request.DIRECTION_OUTPUT)
def test():
import time
@@ -1155,7 +1159,8 @@ def test():
led3.set_value(0)
print(time.asctime())
test()
while True:
test()
```

View File

@@ -129,6 +129,8 @@ MaixPy 中的存储介质主要由 `Flash`、`SD` 卡组成,并分为三块区
## 上手运行程序
>要使用 MaixPy IDE 板子需烧录固件,而且版本必须是 `v0.3.1` 以上, 否则 MaixPy IDE 会出现连接不上的现象,使用前请检查固件版本和 IDE 版本,请更新到最新的版本来保障后续使用。
在运行程序前先使用准备的 USB type-c 数据线两端分别接入板子以及电脑端,给板子进行上电操作。
如果是新出厂的开发板的话,上电后会显示红色屏幕。
@@ -143,8 +145,6 @@ MaixPy 中的存储介质主要由 `Flash`、`SD` 卡组成,并分为三块区
![maixpy_run](./mixly_application/accets/k210_usage/maixpy_run.jpg)
- **使用 `MaixPy IDE` 软件进行编辑代码运行。**
### 使用串口终端运行程序
使用前可以先简单的了解 `串口的定义`以及`串口是什么?`方便我们理解后续使用更方便。文档提供了多种串口连接工具供用户使用,有 `MaixPy IDE 终端工具``Mobaxterm``mpfshell-lite` 等在 `Windows` 环境下的工具,以及 `Linux` 下的使用方法。