Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Wind-stormger committed Aug 30, 2023
1 parent 005ef9f commit ae765dd
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/Centi_S3_doc/en/MicroPython/Display_text.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ If you mistakenly delete the font file or erase the Flash, you need to download

### Display text

![](../assets/images/Display_text_1.jpg)

```py
""" BPI-Centi-S3 170x320 ST7789 display """

Expand Down Expand Up @@ -83,6 +85,8 @@ main()

### Use a transparent background and Alpha channel to make shadow fonts

![](../assets/images/Display_text_2.jpg)

The reasonable use of `st7789.TRANSPARENT` as the background color of the text can make the background of the text not change.

By setting the alpha parameter in the text method, the overall transparency of the text can be changed, with a range of 0 ~ 255.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/Centi_S3_doc/zh/MicroPython/Display_text.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ BPI-Centi-S3 出厂固件中有包含两个位图字体文件。

### 显示文本

![](../assets/images/Display_text_1.jpg)

```py
""" BPI-Centi-S3 170x320 ST7789 display """

Expand Down Expand Up @@ -81,6 +83,8 @@ main()

### 使用透明背景与Alpha 通道制作阴影字体

![](../assets/images/Display_text_2.jpg)

合理利用 st7789.TRANSPARENT 作为文本的背景色,可以使文本的背景不发生变化。

再通过设置 text 方法 中的 alpha 参数,可以改变文本整体的透明度,范围为0~255。
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ae765dd

Please sign in to comment.