File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change 25
25
lcd .backlight = True
26
26
# Print a two line message
27
27
lcd .message = "Hello\n CircuitPython"
28
- # Wait 3s
29
- time .sleep (3 )
30
- # Print two line message with cursor set to column 2
31
- lcd .clear ()
32
- lcd .cursor_position (2 , 0 )
33
- lcd .message = "Hello\n CircuitPython"
34
28
# Wait 5s
35
29
time .sleep (5 )
36
30
lcd .clear ()
37
- # Stars across the display one a time on second row from L to R
38
- # using cursor_position
39
- for i in range (16 ):
40
- lcd .cursor_position (i , 1 )
41
- lcd .message = "*"
42
- time .sleep (0.1 )
43
- lcd .clear ()
44
31
# Print two line message right to left
45
32
lcd .text_direction = lcd .RIGHT_TO_LEFT
46
33
lcd .message = "Hello\n CircuitPython"
47
34
# Wait 5s
48
35
time .sleep (5 )
49
- # Print two line R to L message with cursor set to column 3
50
- lcd .clear ()
51
- lcd .text_direction = lcd .RIGHT_TO_LEFT
52
- lcd .cursor_position (3 , 0 )
53
- lcd .message = "Hello\n CircuitPython"
54
- # Wait 3s
55
- time .sleep (3 )
56
- # Stars across the display one a time on second row from R to L
57
- lcd .clear ()
58
- for i in range (16 ):
59
- lcd .cursor_position (i , 1 )
60
- lcd .message = "*"
61
- time .sleep (0.1 )
62
36
lcd .clear ()
63
37
# Return text direction to left to right
64
38
lcd .text_direction = lcd .LEFT_TO_RIGHT
77
51
lcd .blink = False
78
52
lcd .clear ()
79
53
# Create message to scroll
80
- lcd .cursor_position (5 , 0 )
81
54
scroll_msg = '<-- Scroll'
82
55
lcd .message = scroll_msg
83
56
# Scroll message to the left
You can’t perform that action at this time.
0 commit comments