File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,9 @@ LCD液晶显示器的工作原理是通过使用液晶精确控制光线来在
4242``` wa
4343// +---------------------------------------------------------------------+
4444// | LCD1602 Module |
45- // | -----+-------- ---------------+---------------------+-----------------+
45+ // + -----+-------+ ---------------+---------------------+-----------------+
4646// | Pin | Label | Connected To | Description | In Code |
47- // | -----+-------+---------------+---------------------+-----------------+
47+ // + -----+-------+---------------+---------------------+-----------------+
4848// | 1 | GND | GND | Ground | - |
4949// | 2 | VCC | 5V | Power Supply | - |
5050// | 3 | VO | Potentiometer | Contrast Control | - |
@@ -214,7 +214,10 @@ global (
214214// 初始化液晶屏
215215func LCDInit()
216216
217- // 在当前位置显示字符
217+ // 设置光标位置
218+ func LCDSetCursor(row, col: i32)
219+
220+ // 在当前位置开始写字符, 并移动光标
218221func LCDWriteChar(ch: rune)
219222
220223// 清空屏幕
You can’t perform that action at this time.
0 commit comments