Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyubiao committed Jun 5, 2019
1 parent 3a6bbcc commit 7904ec6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions source/bpi-mpy/modules/display.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ display 模块

- ``color``
内部预置的颜色有
* ``black`` = [0, 0, 0]
* ``Red`` = [2, 0, 0]
* ``Orange`` = [2, 1, 0]
* ``Yellow`` = [2, 2, 0]
* ``Green`` = [0, 2, 0]
* ``Blue`` = [0, 0, 2]
* ``Indigo`` = [0, 2, 2]
* ``Purple`` = [2, 0, 2]
* ``black`` - [0, 0, 0]
* ``Red`` - [2, 0, 0]
* ``Orange`` - [2, 1, 0]
* ``Yellow`` - [2, 2, 0]
* ``Green`` - [0, 2, 0]
* ``Blue`` - [0, 0, 2]
* ``Indigo`` - [0, 2, 2]
* ``Purple`` - [2, 0, 2]
用户也可以使用自定义的颜色比如color=[7,8,9],列表中的值分别对应红色,绿色,蓝色的颜色值,取值范围都是0-255。
同时color也可以包含多个颜色比如[[0,1,5],[2,2,8],[3,2,1],[4,5,6]],每个字符的颜色就会按照color的颜色显示。
- ``delay`` 字符滚动的速度。
Expand Down

0 comments on commit 7904ec6

Please sign in to comment.