Skip to content

Commit

Permalink
update docs.
Browse files Browse the repository at this point in the history
Signed-off-by: iotah <[email protected]>
  • Loading branch information
IotaHydrae committed Nov 4, 2024
1 parent b0293a6 commit 5eb6020
Show file tree
Hide file tree
Showing 4 changed files with 462 additions and 2 deletions.
12 changes: 12 additions & 0 deletions content/docs/env-setup/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,16 @@ PICO_FLASH_SPI_CLKDIV的默认值为2

{{< /callout >}}

相关的cmake 代码如下:
```cmake
if(${SYS_CLK_KHZ} GREATER 266000)
set(PICO_FLASH_SPI_CLKDIV 4)
else()
set(PICO_FLASH_SPI_CLKDIV 2)
endif()
target_compile_definitions(bs2_default PRIVATE PICO_FLASH_SPI_CLKDIV=${PICO_FLASH_SPI_CLKDIV})
```

### LCD 相关

可在此处配置引脚、时钟、是否启用PIO等。
Expand All @@ -403,6 +413,8 @@ set(PIO_USE_DMA 1) # 是否启用DMA 1: use DMA, 0: not use DMA
set(I80_BUS_WR_CLK_KHZ 50000) # 8080 LCD 写信号频率
```

您可以通过修改 `DISP_OVER_PIO``PIO_USE_DMA` 这两个宏来体验 PIO 带来的流畅度提升

### 选择显示驱动
```cmake
# LCD driver type
Expand Down
4 changes: 3 additions & 1 deletion content/docs/env-setup/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ seo:

我们提供了多个版本的工程,本文只列出可用的工程,以及如何下载。

我们会在下个章节中讨论编译及配置问题。
如果您对这些工程的移植过程感兴趣,可以参考[移植教程](../../porting/)中的对应内容

我们会在下个章节中讨论工程的编译及配置问题。

## 基于我们开发的版本

Expand Down
Loading

0 comments on commit 5eb6020

Please sign in to comment.