Skip to content

Commit

Permalink
Merge branch 'main' of github.com:sipeed/sipeed_wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed Apr 2, 2024
2 parents 4c652cb + 0c7a3e9 commit 4143c14
Showing 1 changed file with 37 additions and 7 deletions.
44 changes: 37 additions & 7 deletions docs/hardware/zh/lichee/RV_Nano/5_peripheral.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,25 +145,43 @@ cat /sys/class/cvi-saradc/cvi-saradc0/device/cv_saradc

将屏幕的排线接到板子的MIPI接口,注意线序

然后在cvi_mmf_sdk的panel中选择对应的时序设置,(MIPI屏幕初始化代码放在uboot中)
创建或编辑sd卡第一个分区中的uEnv.txt文件,添加或修改panel字段:

然后编译出新的uboot: fip.bin,放在系统SD卡的第一个分区
7寸屏:

LCD会提供framebuffer供用户空间程序访问:
```
panel=zct2133v1
```

5寸屏:

```
panel=st7701_dxq5d0019b480854
```

3寸屏:

```
panel=st7701_d300fpc9307a
```

一些用于测试的demo:
2.8寸屏:

```
fbpattern # 测试LCD时序
fbbar # 在屏幕上显示字符串
panel=st7701_hd228001c31
```

建议使用QT5,SDL1.2,或LVGL进行界面开发,也可以直接写入Framebuffer
如果想用framebuffer功能,则在sd卡第一个分区创建一个文件名为fb的文件:

```
touch /boot/fb
```

## 触摸屏

将触摸屏排线接到板子的触摸屏接口,注意线序


然后执行:

```
Expand Down Expand Up @@ -252,6 +270,18 @@ rm wifi.ap wifi.sta
/mnt/system/usr/bin/sample_vio 6 # 将摄像头画面实时显示到屏幕
```

如果使用70405(内测版)的板子:

```
touch /boot/alpha # 内测版
# rm /boot/alpha # 正式版
cd /mnt/data
cp sensor_cfg.ini.alpha sensor_cfg.ini # 内测版
# cp sensor_cfg.ini.beta sensor_cfg.ini # 正式版
```


## 按键

使用命令查看按键事件:
Expand Down

0 comments on commit 4143c14

Please sign in to comment.