I am trying to get an LCD screen to display some text while following a tutorial the only differences between the tutorial code and mine is the text message.
I have also checked my wiring and tested the pins on the pi for functionality. I do not understand why i'm getting this error.
my code:
from time import sleep
import Adafruit_CharLCD as LCD
lcd = LCD.Adafruit_CharLCD(rs=23, en=19, d4=13, d5=6, d6=5, d7=11, cols=16, lines=2)
lcd.clear()
lcd.message('hi\n guy')
sleep(3)
my error
Traceback (most recent call last):
File "lcd3.py", line 4, in <module>
lcd = LCD.Adafruit_CharLCD(rs=23, en=19, d4=13, d5=6, d6=5, d7=11, cols=16, lines=2)
File "/home/pi/Adafruit_CharLCD.py", line 143, in __init__
gpio.setup(pin, GPIO.OUT)
File "/usr/local/lib/python2.7/dist-packages/Adafruit_GPIO/GPIO.py", line 278, in setup
pull_up_down=self._pud_mapping[pull_up_down])
SystemError: error return without exception set