Traceback (most recent call last):
File "/home/pi/Desktop/lcdtest.py", line 2, in <module>
from RPLCD import CharLCD
ImportError: No module named 'RPLCD'
I already reinstalled it a few times and took the files in the same folder as the programm.
Code: Select all
from RPi import GPIO from RPLCD import CharLCD lcd = CharLCD(pin_rs=7, pin_e=11, pins_data=[21, 22, 23, 24], numbering_mode=GPIO.BOARD, cols=16, rows=2, dotsize=8, charmap='A02', auto_linebreaks=True) lcd.write_string('Hello world')