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液晶显示器的工作原理是通过使用液晶精确控制光线来在
42
42
``` wa
43
43
// +---------------------------------------------------------------------+
44
44
// | LCD1602 Module |
45
- // | -----+-------- ---------------+---------------------+-----------------+
45
+ // + -----+-------+ ---------------+---------------------+-----------------+
46
46
// | Pin | Label | Connected To | Description | In Code |
47
- // | -----+-------+---------------+---------------------+-----------------+
47
+ // + -----+-------+---------------+---------------------+-----------------+
48
48
// | 1 | GND | GND | Ground | - |
49
49
// | 2 | VCC | 5V | Power Supply | - |
50
50
// | 3 | VO | Potentiometer | Contrast Control | - |
@@ -214,7 +214,10 @@ global (
214
214
// 初始化液晶屏
215
215
func LCDInit()
216
216
217
- // 在当前位置显示字符
217
+ // 设置光标位置
218
+ func LCDSetCursor(row, col: i32)
219
+
220
+ // 在当前位置开始写字符, 并移动光标
218
221
func LCDWriteChar(ch: rune)
219
222
220
223
// 清空屏幕
You can’t perform that action at this time.
0 commit comments