Skip to content

Commit ad0555d

Browse files
committed
update doc
Signed-off-by: Wooden Chair <hua.zheng@embeddedboys.com>
1 parent 997c2fe commit ad0555d

File tree

5 files changed

+89
-13
lines changed

5 files changed

+89
-13
lines changed

content/docs/about/this-doc.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,14 @@ seo:
2626

2727
安装[nvm](https://github.com/nvm-sh/nvm)
2828
```bash
29-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
29+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
30+
```
31+
32+
重新加载环境变量
33+
```bash
34+
source ~/.bashrc
35+
# 或者
36+
source ~/.zshrc
3037
```
3138

3239
通过nvm安装node
@@ -47,4 +54,4 @@ rm -rf public && npm run build
4754
```bash
4855
rm -rf public && npm run dev
4956
```
50-
访问[localhost:1313](localhost:1313)
57+
访问[localhost:1313](localhost:1313)

content/docs/env-setup/project.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ESP32,Linux平台因为篇幅过长,所以放到了单独的章节中。
2828

2929
- [x] [裸机](#裸机)
3030
- [x] [USB 显示屏(开发中)](#usb-display)
31-
- [ ] [RP2350 LVGL全屏刷新示例](#rp2350-lvgl全屏刷新示例)
31+
- [x] [RP2350 LVGL全屏刷新示例](#rp2350-lvgl全屏刷新示例)
3232
- [x] [EEZ Studio示例工程](#eez-studio-lvgl-示例工程)
3333
- [x] [8080屏模板工程](#8080屏模板工程)
3434
- [x] [FreeRTOS](#freertos)
@@ -223,6 +223,8 @@ git clone https://github.com/embeddedboys/pico_dm_8080_template
223223

224224
#### 驱动支持情况
225225

226+
如果你需要添加新的屏幕或触摸,请参考这片文章 [点我跳转](../../porting/8080模板工程/)
227+
226228
##### 显示驱动
227229
- [x] ST6201
228230
- [x] ST7789V
@@ -256,7 +258,7 @@ git clone https://github.com/embeddedboys/pico_dm_8080_template
256258

257259
### FreeRTOS
258260

259-
与裸机版本不同的是,我们又在其上面添加了FreeRTOS的支持,同时该工程支持SMP,可同时使用RP2040的两个核心处理任务,如果您惯用FreeRTOS开发,可以选择本工程。
261+
与裸机版本不同的是,我们又在其基础上添加了对 FreeRTOS 的支持,同时该工程支持 SMP,可同时使用RP2040的两个核心处理任务。 如果您惯用 FreeRTOS 开发,可以选择本工程。
260262

261263
仓库链接:[https://gitee.com/embeddedboys/pico_dm_qd3503728_freertos.git](https://gitee.com/embeddedboys/pico_dm_qd3503728_freertos.git)
262264

@@ -285,7 +287,8 @@ Linux 显示与触摸驱动,目前计划支持引脚与树莓派Pico兼容的
285287

286288
- [x] `Luckfox Pico`
287289
- [x] `Luckfox Pico Max`
288-
- [ ] `Luckfox Lyra Plus`
290+
- [x] `Luckfox Lyra`
291+
- [x] `Luckfox Lyra Plus`
289292
- [x] `Milk-V Duo`
290293
- [ ] `Milk-V Duo 256M`
291294

@@ -387,7 +390,7 @@ default_timer_id = 0
387390
if usys.platform == 'pyboard':
388391
# stm32 only supports SW timer -1
389392
default_timer_id = -1
390-
393+
391394
if usys.platform == 'rp2':
392395
# rp2 only supports SW timer -1
393396
default_timer_id = -1
@@ -491,7 +494,7 @@ class event_loop():
491494
await uasyncio.sleep_ms(self.delay)
492495
lv.tick_inc(self.delay)
493496
self.refresh_event.set()
494-
497+
495498

496499
def default_exception_sink(self, e):
497500
usys.print_exception(e)

content/docs/porting/8080-template.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,23 @@ seo:
3333

3434
#if LCD_DRV_USE_ILI9488
3535

36-
...
36+
static int tft_ili9488_init_display(struct tft_priv *priv)
37+
{
38+
pr_debug("%s, writing initial sequence...\n", __func__);
39+
priv->tftops->reset(priv);
40+
dm_gpio_set_value(priv->gpio.rd, 1);
41+
mdelay(120);
42+
43+
#if TFT_MODEL_QD3503728
44+
...
45+
#elif TFT_MODEL_ZT350IT008
46+
...
47+
#else
48+
#error "Unknown LCD model"
49+
#endif
50+
51+
return 0;
52+
}
3753

3854
static struct tft_display ili9488 = {
3955
.xres = TFT_X_RES,
@@ -76,7 +92,19 @@ set(LCD_HOR_RES 480)
7692
set(LCD_VER_RES 320)
7793
set(DISP_OVER_PIO 1) # 1: PIO, 0: GPIO
7894
set(PIO_USE_DMA 1) # 1: use DMA, 0: not use DMA
79-
set(I80_BUS_WR_CLK_KHZ 50000)
95+
96+
# TFT 8080 总线 WR 时钟速度设置
97+
if(${LCD_PIN_DB_COUNT} EQUAL 8)
98+
set(I80_BUS_WR_CLK_KHZ 75000)
99+
elseif(${LCD_PIN_DB_COUNT} EQUAL 16)
100+
set(I80_BUS_WR_CLK_KHZ 50000)
101+
endif()
102+
103+
# Panel Model selection 可在此处定义 TFT 面板型号
104+
set(TFT_MODEL_QD3503728 1)
105+
set(TFT_MODEL_ZT350IT008 0)
106+
add_definitions(-DTFT_MODEL_QD3503728=${TFT_MODEL_QD3503728})
107+
add_definitions(-DTFT_MODEL_ZT350IT008=${TFT_MODEL_ZT350IT008})
80108
```
81109

82110
**4. 在src/CMakeLists.txth中添加新的显示屏驱动**
@@ -137,4 +165,4 @@ static struct indev_spec ft6236 = {
137165
}
138166
};
139167

140-
```
168+
```

content/docs/porting/linux.md

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,44 @@ insmod /root/ili9488_fb.ko
252252
```c
253253
```
254254

255-
## (待更新)Luckfox Lyra Plus
255+
## (待更新)Luckfox Lyra & Plus
256256

257257
Luckfox Lyra 主控采用Rockchip RK3506 处理器,该处理器采用 22nm 制程工艺,搭载了4 核 32 位 CPU(包括 3×Cortex-A7 和 1×Cortex-M0),丰富的接口扩展,适用于多种应用领域,包括物联网设备、智能音频、智能显示、工业控制和教育设备等。Luckfox Lyra 支持 Buildroot 和 Ubuntu22.04 系统。
258258

259-
See [https://wiki.luckfox.com/zh/Luckfox-Lyra/Quick-Start](https://wiki.luckfox.com/zh/Luckfox-Lyra/Quick-Start)
259+
### 开发环境搭建
260+
261+
请先参考如下链接中的内容搭建好开发环境:
262+
[https://wiki.luckfox.com/zh/Luckfox-Lyra/SDK](https://wiki.luckfox.com/zh/Luckfox-Lyra/SDK)
263+
264+
官方提供的 SDK 下载链接:[https://pan.baidu.com/s/1KyPieuwh63ynd-O96ChlDA?pwd=mzqk](https://pan.baidu.com/s/1KyPieuwh63ynd-O96ChlDA?pwd=mzqk)
265+
266+
我们开发者使用的系统是 Ubuntu 24.04.2 LTS
267+
268+
解压 Luckfox Lyra SDK 到指定目录
269+
```bash
270+
mkdir -p ~/luckfox/lyra
271+
tar xvf ~/Downloads/Luckfox_Lyra_SDK_250429.tar.gz -C lyra
272+
```
273+
274+
拉取工程
275+
```bash
276+
git clone https://github.com/embeddedboys/pico_dm_qd3503728_linux.git ~/pico_dm_qd3503728_linux
277+
```
278+
279+
修改 SDK 中的内核工程
280+
281+
```bash
282+
cd ~/luckfox/lyra
283+
284+
cp ~/pico_dm_qd3503728_linux/luckfox-lyrark3506g-luckfox-lyra-sd.dts ~/luckfox/lyra/kernel/arch/arm/boot/dts/rk3506g-luckfox-lyra-sd.dts
285+
```
286+
287+
288+
编译驱动 ko 文件
289+
```bash
290+
cd ~/pico_dm_qd3503728_linux/luckfox-lyra
291+
make
292+
```
260293

261294
## (过时的)Milk-V Duo{#milk-v-duo}
262295

@@ -447,4 +480,4 @@ ili9488设备树节点
447480
448481
## FrameBuffer
449482
450-
## DRM
483+
## DRM

hugo_stats.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@
432432
"产品参数",
433433
"从我们的服务器下载",
434434
"使用-gpio-直接驱动",
435+
"修改-sdk-中的内核工程",
435436
"全屏刷新",
436437
"写在前面",
437438
"准备工作",
@@ -447,13 +448,17 @@
447448
"官方版本国产版2",
448449
"家庭智能中控",
449450
"局部刷新",
451+
"开发环境搭建",
450452
"引脚定义",
453+
"待更新luckfox-lyra--plus",
451454
"待更新luckfox-lyra-plus",
452455
"待更新luckfox-pico-max",
453456
"性能优化",
454457
"我在使用git拉取github工程时出现如下错误",
455458
"我在编译工程时出现如下错误",
456459
"所需硬件",
460+
"拉取编译本驱动",
461+
"拉取编译驱动",
457462
"指定电压下的最大时钟速度",
458463
"搭建工程",
459464
"无名科技-pico-核心板",

0 commit comments

Comments
 (0)