12 lines
304 B
Python
12 lines
304 B
Python
from RPLCD.i2c import CharLCD
|
|
import time
|
|
|
|
# Укажите ваш адрес (0x27 или 0x3F)
|
|
lcd = CharLCD('PCF8574', 0x27, port=1, cols=16, rows=2, charmap='A02')
|
|
lcd.clear()
|
|
lcd.write_string("Hello, World! ")
|
|
lcd.cursor_pos = (1, 0)
|
|
lcd.write_string("1234567890ABCDEF")
|
|
time.sleep(5)
|
|
lcd.clear()
|