7/23/22, 9:42 PM
Grove - 16x2 LCD - Seeed Wiki
https://wiki.seeedstudio.com/Grove-16x2_LCD_Series/
16/20
Step 4.
Save the
ArduPy-LCD1602.py
in a location that you
know. Run the following command and
replace
<YourPythonFilePath>
with your
ArduPy-LCD1602.py
location.
Step 5.
We will see the results on the Grove - 16 x 2 LCD.
2
import
time
3
4
lcd = grove_lcd1602()
5
6
def
main
():
7
lcd.print(
"hello, world!"
)
8
lcd.is_blink_cursor =
True
9
i =
0
10
while
True
:
11
lcd.set_cursor(
1
,
2
)
#column 1, row 2
12
lcd.print(i)
13
time.sleep(
1
)
14
i = i +
1
15
16
if
__name__ ==
"__main__"
:
17
main()
Note
For more API reference, please refer to
1
aip
shell -n -c
"runfile <YourPythonFilePath>"
2
# Example:
3
# aip shell -n -c "runfile /Users/ansonhe/Desktop/ArduPy-L